zackcez Posted June 6, 2008 Share Posted June 6, 2008 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 More sharing options...
raku Posted June 6, 2008 Share Posted June 6, 2008 echo "<td><a href="http://pantheongaming.net/member.php?u='.$row['userid'].'">'.$row['username'].'</a></td>"; change to echo '<td><a href="http://pantheongaming.net/member.php?u='.$row['userid'].'">'.$row['username'].'</a></td>'; Link to comment https://forums.phpfreaks.com/topic/109064-solved-mysql-fetch-array/#findComment-559523 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.