PHP/MySQL oddity
Posted: 2005-06-17 02:58am
Can anyone tell me why this code:
Produces this:
?
Code: Select all
<html>
<head>
<title>Oi!</title>
</head>
<body>
<?
$conn = mysql_connect("localhost", "root", "*****");
mysql_select_db("lanman", $conn);
$result = mysql_query("select id, name from test, $conn);
list($id, $name) = mysql_fetch_row($result);
?>
<center>
<p>Hello <? echo $name; ?>!<br>
Your id is <? echo $id; ?>
</center>
<?
// mysql_free_result($result);
?>
</body>
</html>
Code: Select all
<html><body></body></html>