PDA

View Full Version : is this correct? fetch_array


urgido
12-05-2006, 08:09 AM
I have the following code:

$result = mysql_query("select * from users ORDER by id DESC LIMIT 0,3");

I have this code to show the recently 3 users added to the database I test on my server and it works! but my friend say that in his server this don't work. We use php5 and mysql 5... Can somebody give a hand?

Regards

Tyree
12-05-2006, 04:14 PM
Yes, that should work.

When you say you're using this same code on another server, is it also in the same context? In other words, are you trying to accomplish the exact same thing and is the rest of the code on the page the same as well?

If not, then you should post the code from your friend's page so we can see what's causing it not to work.

Linark
12-05-2006, 06:56 PM
Also the php/mySQL error(s) would be nice...