Im trying to fetch some resources from MySQL and then loop it out onto my website! this is what Im doing below.
NOTE: It works, it just doesnt display the very first row in my 'mySQL' database I am also using dreamweaver to connect to my 'MySQL' Database. Im not sure if that has anything to do with it.
<?php
mysql_select_db($database_ok, $ok);
$query_Recordset1 = "SELECT * FROM users LIMIT 0, 10";
$Recordset1 = mysql_query($query_Recordset1, $ok) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<?php
while( $row = mysql_fetch_assoc($Recordset1)) {
echo $row['lastname']." ".$row['firstname']."</br>";
} ;
?>
Lets say that in my database I have 'Joe' in column firstname row 1. And I have Bill in column first name row 2, and so on. It will only display Bill (row2) and down. It wont display Joe. Why?!?!
ABOUT ME:
O yea, Just to introduce myself. My Name is Anthony, I was doing Coldfusion for a little while now Im doing PHP. Im new and I have alot of questions. Reason Im introducing myself is because Im going to be blowing up this forum cause I got tons of questions. See you guys around 😃