i have a basic php file that is trying to select information from a
mysql database.
echo "<br>";
include("dbConn ect.inc");
$query = "SELECT * FROM client";
$result = mysql_query($qu ery) or die("no select");
$row = mysql_fetch_arr ay($result,MYSQ L_ASSOC);
while ($row = mysql_fetch_arr ay($result))
{
extract($row);
echo "Welcome ".$fName." ".$lName." - ".$deptID."<br> ";
}
this works, but it doesnt return the first record from the table. when
i add a WHERE statement, nothing is returned. im using phpMyAdmin to
administer mysql. i can get all of the rows from the client table when
i browse from phpMyAdmin.
also, i can use PEAR database abstraction layer and it retrieves all
records and WHERE works in the select. is there a mysql or php setting
im missing?
im using mysql 4.01 and php 4.3
mysql database.
echo "<br>";
include("dbConn ect.inc");
$query = "SELECT * FROM client";
$result = mysql_query($qu ery) or die("no select");
$row = mysql_fetch_arr ay($result,MYSQ L_ASSOC);
while ($row = mysql_fetch_arr ay($result))
{
extract($row);
echo "Welcome ".$fName." ".$lName." - ".$deptID."<br> ";
}
this works, but it doesnt return the first record from the table. when
i add a WHERE statement, nothing is returned. im using phpMyAdmin to
administer mysql. i can get all of the rows from the client table when
i browse from phpMyAdmin.
also, i can use PEAR database abstraction layer and it retrieves all
records and WHERE works in the select. is there a mysql or php setting
im missing?
im using mysql 4.01 and php 4.3
Comment