I am trying to pull back some information from a database. Below is my phptest.php file
<html>
<body>
<?php
$db = mysql_connect ("localhost", "root");
mysql_select_db("delivery",$db);
$result = mysql_query("SELECT * FROM employees",$db);
printf("Company: %s<br>\n", mysql_result($result,0,"company
printf("Address: %s<br>\n", mysql_result($result,0,"address
printf("Phone: %s<br>\n", mysql_result($result,0,"phone"));
?>
</body>
</html>
however, in my browser this is what i am recieving:
\n", mysql_result($result,0,"company")); printf("Address: %s
\n", mysql_result($result,0,"address")); printf("Phone: %s
\n", mysql_result($result,0,"phone")); ?>
Any suggestions? Thanks