خرید بک لینک
Hello All,

I am trying to update from mysql_query to mysqli_query and am having great difficulty. Does the query structure change? I can not locate the solution for any type of mysqli query.

Not one mysqli query is working across 4 websites and too many pages to even count.

I am using PHP 5.6.

Here is a test page that I have created to simplify everything and still can not get the most basic query to work. Can anyone shed some light on this for me?

Thank You

PHP Code:

<?php
//database coection
include $_SERVER['DOCUMENT_ROOT'] . '/includes/database.php';


$result mysqli_query($con,'SELECT * FROM boatesc');
if (
mysqli_num_rows($result) > 0
{
    while(
$row mysqli_fetch_array($result)) 
    {
        echo 
"Manufacturer: " $row["manu"]. "<br>";
    }

else 
{
    echo 
"0 results";
}

mysqli_close($con);
?>

برچسب: نویسنده: آیلین رضوانی تاريخ: سه شنبه 5 دی 1396 ساعت: 14:37

صفحه بندی