[SOLVED] upgraded now code wont work
Posted: Sat Jan 08, 2005 5:45 pm
first off here's my code
this program used to work but now i get an error stating:
feyd | Help us, help you. Please use
Code: Select all
<html>
<body>
<?php
$db = mysql_connect("localhost", "root");
mysql_select_db("test",$db);
$result = mysql_query("SELECT * FROM employees",$db);
if ($myrow = mysql_fetch_array($result)) {
do {
printf("<a href="%s?id=%s">%s %s</a><br>\n", $PHP_SELF, $myrow["id"], $myrow["name"], $myrow["bio"]);
} while ($myrow = mysql_fetch_array($result));
} else {
echo "Sorry, no records were found!";
}
?>
</body>
</html>someone please help me figure this one outNotice: Undefined variable: PHP_SELF in c:\program files\easyphp\www\example4.php on line 19
feyd | Help us, help you. Please use
Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]