jamesxg1 Posted April 8, 2009 Share Posted April 8, 2009 <?php session_start(); ini_set('display_errors', 1); error_reporting(E_ALL); include 'Database/Connection.php'; include 'Database/Utility.php'; isloggedin(); accessneeded("C") $userid = $_SESSION['userid']; $count = 0; $query = mysql_query(sprintf("SELECT * FROM contacts WHERE holder = '$userid'")) or die(mysql_error()); while ($row = mysql_fetch_object($query)) { if ($count!=0){echo "<hr>";} print "First Name: <font color=red>$row->firstname</font><br>"; print "Last Name: <font color=red>$row->lastname</font><br>"; print "Address: <font color=red>$row->address</font><br>"; print "Postcode: <font color=red>$row->postcode</font><br>"; print "Email: <font color=red>$row->email</font><br>"; print "Phone Number: <font color=red>$row->pnumber</font><br>"; $count++; } ?> Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\family\ContactsOverview.php on line 12 Link to comment https://forums.phpfreaks.com/topic/153225-help-with-error/ Share on other sites More sharing options...
PFMaBiSmAd Posted April 8, 2009 Share Posted April 8, 2009 You have already got one thread for this same problem, don't start a second thread. Link to comment https://forums.phpfreaks.com/topic/153225-help-with-error/#findComment-804923 Share on other sites More sharing options...
kenrbnsn Posted April 8, 2009 Share Posted April 8, 2009 Double post. Locked. Link to comment https://forums.phpfreaks.com/topic/153225-help-with-error/#findComment-804943 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.