Jump to content

Archived

This topic is now archived and is closed to further replies.

joecooper

while ($row=mysql_fetch_array($query)){

Recommended Posts

ill try make it simple :).

i have this:

$sql="SELECT * FROM carspage ORDER BY id desc";
$query=mysql_query($sql);
$row=mysql_fetch_array($query);
while ($row=mysql_fetch_array($query)){
// code showing rows from database
}

and it only shows all the rows but not the first one. when i add another entry, it shows all but that one also. and so on...
whats wrong with it?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.