Can somebody please tell me what I did wrong in the code below?
Also, I would like to paginate the result.
$link = mysql_connect("localhost", "yvens47", "tij43gt") or die("unable to connect to database");
$data = mysql_select_db("phppractice", $link) or die("no such database");
$display = "SELECT * FROM phppractice(Name,Email,Phone)";
while($row = mysql_fetch_array($display)) {
echo $row['name'];
}
mysql_
; it’s deprecated in PHP 5.5. Try PDO or MySQLi instead. – minitech♦ Dec 27 '12 at 19:09