Welcome Guest, Not a member yet? Register   Sign In
PHP loop within an sql (mysql) query
#6

[eluser]ditch[/eluser]
Thanx for your help guys, i fixed my issue <-- most likely the long way around it but it is working, this is how:

An if & elseif (4 deep) statement to only insert the amount of images selected into the database, this way all empty fields in the database are NULL.

Then when calling the images, SELECT * from the database then do a for loop with an is_null statement to skip the null values. All in all, I now get only the uploaded imaged to show on my screen without any empty spaces <-- just what I was after.

Would have been struggling for another week without your help <--cheers--&gt;


Messages In This Thread
PHP loop within an sql (mysql) query - by El Forum - 11-25-2007, 01:14 AM
PHP loop within an sql (mysql) query - by El Forum - 11-25-2007, 11:48 PM
PHP loop within an sql (mysql) query - by El Forum - 11-26-2007, 12:46 AM
PHP loop within an sql (mysql) query - by El Forum - 11-26-2007, 10:10 AM
PHP loop within an sql (mysql) query - by El Forum - 11-26-2007, 12:47 PM
PHP loop within an sql (mysql) query - by El Forum - 11-26-2007, 04:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB