MySQL loop issue.
#2

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.
Reply


Messages In This Thread
MySQL loop issue. - by TheSy - 04.05.2014, 18:41
Re: MySQL loop issue. - by [WSF]ThA_Devil - 04.05.2014, 19:49
Re: MySQL loop issue. - by TheSy - 17.05.2014, 13:15
Re: MySQL loop issue. - by TheSy - 17.05.2014, 20:06

Forum Jump:


Users browsing this thread: 2 Guest(s)