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
I3lade
Forum Commoner
Posts: 70 Joined: Wed Jun 04, 2003 4:20 pm
Post
by I3lade » Thu Jun 05, 2003 6:46 pm
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){
?>
<?
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))
{
echo "<tr><td>$rowїid]</td><td>$row
<a href="lookup.php?id=<?=row->id>" target="right"> $rowїlogin] </a></td><td>
$rowїemail] </td></tr>";
}
}else{
printf("Your not logged in, plz login again");
};
?>
I would appericate it if u helped me thanks.
patrikG
DevNet Master
Posts: 4235 Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK
Post
by patrikG » Thu Jun 05, 2003 7:13 pm
What error-message do you get?
delorian
Forum Contributor
Posts: 223 Joined: Sun May 04, 2003 5:20 pm
Location: Olsztyn, Poland
Post
by delorian » Fri Jun 06, 2003 1:46 am
You have error here, php open-close tags inside the php
Code: Select all
<a href="lookup.php?id=<?=row->id>" target="right"> $rowїlogin] </a>
I don't get it...