Okay, so I\'ve made one php file to output the images this is the sample code for the output page:
mysql_connect (\" \",\" \",\" \") or die(mysql_error()); mysql_select_
There are some illogical things in this script.
You select EVERYTHING from store (* equals all fields). This is very, very expensive. If you want to use this you should use SELECT COUNT(id) FROM store.
You use the count, to LIMIT. But the limit will always be the same as the amount of rows. Which makes LIMIT irrelevant?
You should not use addslashes for escaping your values. Use mysql_real_escape_string instead. Check it out here.
I am not sure what values are in your database, perhaps you could post some? Perhaps you need to perform strip slashes, since you probably save values with slashes in your database?