$db = new mysqli($host, $user, $pass, $dbname);
if(mysqli_connect_errno())
{
die('The connection to the database could not be established.');
}
$query = 'SELECT * FROM pages where name="Index"';
$result = $db->query($query);
$total_results = $result->num_rows;
while ($row = $result->fetch_object())
{
echo '<title>';
echo $row->title;
echo '</title>';
}
$result->free();
?>
I'm not sure how to describe it other than that, so attached are 2000 words.
With MySQLI

Without MySQLI

Thanks for any help.

New Topic/Question
Reply



MultiQuote





|