Jump to content

help with error


jamesxg1

Recommended Posts

<?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

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.