04.05.2014, 19:49
Loop is not the best way to check the ID. It's the worst if you ask me.
If you set ID field as AUTO_INCREMENT then rather than doing loop you can SELECT *.
and then use:
while(db_num_rows) {
mysql_fetch_row(data);
and use sscanf to seperate details.
}
( while loop )
and then mysql_free_result();
with this you can set every ID in your DB to true in script.
If you set ID field as AUTO_INCREMENT then rather than doing loop you can SELECT *.
and then use:
while(db_num_rows) {
mysql_fetch_row(data);
and use sscanf to seperate details.
}
( while loop )
and then mysql_free_result();
with this you can set every ID in your DB to true in script.