Can you beleive I'm still struggling with this?..🙂
<html>
<body>
<?php
$db = mysql_connect("localhost", "root");
mysql_select_db("mydb",$db);
$result = mysql_query("SELECT * FROM employees",$db);
//next line is the second fix from phpbuilders
printf ("First: ". mysql_result($result,0,'first')."<br>\n");
// next line is the first fix from phpbuilders
//echo "First: ". mysql_result($result,0,'first')."<br>\n";
//echo("First: %s<br>\n", mysql_result($result,0,"first"));
//echo("Last: %s<br>\n", mysql_result($result,0,"last"));
//echo("Address: %s<br>\n", mysql_result($result,0,"address"));
//echo("Position: %s<br>\n", mysql_result($result,0,"position"));
?>
</body>
</html>
What am I doing wrong?