Code:
stock gSQL_GetVar(column[],table[],where[],is)
{
MySQLCheckConnection();
new
sqlcmd[128+64]="MySQL sunucu hatasi.";
if(mysql_ping()!=(-1)) {
format(sqlcmd, sizeof(sqlcmd), "SELECT `%s` FROM `%s` WHERE `%s` = '%d' LIMIT 1;",column,table,where,is);
mysql_query(sqlcmd);
mysql_store_result();
if (!mysql_num_rows()) {
format(sqlcmd,sizeof(sqlcmd),"%dx%d HATASI",where,is);
return sqlcmd;
}
mysql_fetch_row(sqlcmd);
mysql_free_result();
return sqlcmd;
}
return sqlcmd;
}
Aucun commentaire:
Enregistrer un commentaire