Page 1 of 1

Another php code gone bad...

Posted: Thu Jun 05, 2003 6:46 pm
by I3lade
Ok this code is supposed to allow them to edit their profile, i did something wrong with update i bet, help fix this please:

Code: Select all

<?php
session_start(); 
if($logged==1)&#123; 
?> 

<? 
mysql_connect("localhost","bladegames", "**"); 
mysql_select_db("bladegames");
echo "<table>
<tr><td>Number</td><td>Username</td><td>Email</td></tr>
";
$query = mysql_query("SELECT * FROM members ORDER BY id");
while($row=mysql_fetch_array($query))

&#123;
echo "<tr><td>$row&#1111;id]</td><td>$row 
<a href="lookup.php?id=<?=row->id>" target="right"> $row&#1111;login] </a></td><td>
$row&#1111;email] </td></tr>";
&#125;
&#125;else&#123; 
printf("Your not logged in, plz login again");  
&#125;;
?>
I would appericate it if u helped me thanks.

Posted: Thu Jun 05, 2003 7:13 pm
by patrikG
What error-message do you get?

Posted: Fri Jun 06, 2003 1:46 am
by delorian
You have error here, php open-close tags inside the php :?:

Code: Select all

<a href="lookup.php?id=<?=row->id>" target="right"> $row&#1111;login] </a>
I don't get it...