Parase Error
Posted: Thu Mar 18, 2004 5:04 pm
I am getting a stupid parase error and I don't know why.
What have I done wrong?
Any help would be great thx.
Cheers;
Moe
Here's the code:Parse error: parse error, unexpected $ in /web/intranet/admin/test.php on line 39
Code: Select all
<?php
// Connect to the DB
$db = mysql_connect("localhost", "root");
mysql_select_db("makdap",$db);
if($_GETї'delete'] == "yes"){ // Check if we want to delete something
//$sql = "DELETE FROM internalphone WHERE id=".$_GETї'id'];
//mysql_query($sql);
//echo $_GETї'id']." record deleted";
//echo "<meta http-equiv="Refresh" content="3; url=test.php">";
}else{ // We dont so show the list
$result = mysql_query("SELECT * FROM internalphone where id=1",$db);
?>
<center>
<table width="65%" border="0" bgcolor="#336699">
<tr>
<?
print("<td width="15%"><b><font color="white">First Name</td><td width="15%"><b><font color="white">Last Name</td><td width="15%"><b><font color="white">Extension</td><td width="15%"><b><font color="white">Action</td>");
while($myrow = mysql_fetch_array($result)) {
echo "<tr>";
printf("<td bgcolor=#CDDBEB><font color=#006699>%s</td><td bgcolor=#CDDBEB><font color=#006699>%s</td><td bgcolor=#CDDBEB><font color=#006699>%s</td><td bgcolor=#CDDBEB><font color=#006699><a href="%s?id=%s&delete=yes">Delete</a></td>",$myrowї"FirstName"],$myrowї"LastName"],$myrowї"Extension"],$PHP_SELF,$myrowї"id"]);
echo "</tr>";
}
echo '</table>';
mysql_close($db);
?>Any help would be great thx.
Cheers;
Moe