Another php code gone bad...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
I3lade
Forum Commoner
Posts: 70
Joined: Wed Jun 04, 2003 4:20 pm

Another php code gone bad...

Post 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.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

What error-message do you get?
User avatar
delorian
Forum Contributor
Posts: 223
Joined: Sun May 04, 2003 5:20 pm
Location: Olsztyn, Poland

Post 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...
Post Reply