Jump to content

[SOLVED] MySql Fetch Array


zackcez

Recommended Posts

Ok, here's my code:

<tr>
<td class="$bgclass"> 
<table>
<tr>
<td>User Requesting</td>
<td>Site</td>
<td>Approve</td>
<td>Disaprove</td>
<?php
$query = "SELECT * FROM user WHERE request_status='2'"; 
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)){
echo "<td><a href="http://pantheongaming.net/member.php?u='.$row['userid'].'">'.$row['username'].'</a></td>";
echo "<td><a href="'.$row['request_link'].'">'.$row['request_title'].'</a>";
echo "<td><a href="http://pantheongaming.net/approve.php?u='.$row['userid'].'">Accept</a>";
echo "<td><a href="http://pantheongaming.net/decline.php?u='.$row['userid'].'">Decline</a>";	
}
?>
</tr>
</table>

</td>
</tr>

I get this error:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /homepages/43/d240520710/htdocs/pg/modules/admin_aff.php on line 13

Thanks for reading,

zack

Link to comment
https://forums.phpfreaks.com/topic/109064-solved-mysql-fetch-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.