I have just shifted the code from mysql to mysqli, following lines are selected from the code, it not a complete file. Tested the connection, its working fine. "$totalRows"
this variable is showing a count, that means there is no problem with a query. But "$row = mysqli_fetch_row($result);"
line is making a trouble. When the execution comes to this point it throws an error message:
"Warning: mysqli_fetch_row() [function.mysqli-fetch-row]: magic_quotes_runtime are deprecated since PHP 5.3"
The same code was working fine while i was using mysql. I would be very thankful to get a quick reply.
$query = "SELECT -------
WHERE
product.productid =" . $productid;
$productid = mysqli_real_escape_string(linkDb(), $productid);
$result = mysqli_query(linkDb(), $query);
$totalRows = mysqli_num_rows($result);
$DetailsHTML = "";
if ($totalRows > 0) {
$productid = mysqli_real_escape_string(linkDb(), $productid);
$row = mysqli_fetch_row($result);