$PHP_SELF; hmmmmm
Posted: Wed Feb 26, 2003 10:29 am
im trying to do this
i have windows xp pro, installed php using the installer program on php.net, installed mysql using an installer program on its site.
but when i try to do echo $PHP_SELF; i get this error:
Thanks
Tom
Code: Select all
<?php
$db = mysql_connect("localhost", "root");
mysql_select_db("mydb",$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ї"first"], $myrowї"last"]);
} while ($myrow = mysql_fetch_array($result));
} else {
echo "Sorry, no records were found!";
}
?>but when i try to do echo $PHP_SELF; i get this error:
can anyone help me here?Notice: Undefined variable: PHP_SELF in E:\Tom\php work\index.php on line 17
Thanks
Tom