I'm trying to make a simple crud using PHP?

Randel

New member
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<h1>View Records</h1>
<?php
include('connect-db.php');

if($result = $mysqli ->("SELECT * FROM USER ORDER by id"))
{

if($result -> num_rows > 0)
{

echo"<table border='1' cellpadding='10'>";
echo"<tr><th>ID</th><th>Username</th><th>Email</th></tr>";




while($row = $result -> fetch_object())
{
echo"<tr>";
echo"<td>".$row-> . id . "</td>";
echo"<td>".$row-> . uname . "</td>";
echo"<td>".$row-> . email . "</td>";
echo"</tr>";

}
echo"</table>";

}
else
{
echo "No errors to display";
}


}


else
{
echo "Errors:" .$mysqli-> error;
}


$mysqli -> close();




?>
</body>
</html>

========================================================================
Here is the error message the I received



Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'{'' or `'$'' in C:\wamp\www\crud\view.php on line 13


Can someone help me out :D
Thanks.
 
Back
Top