In the process of converting an old web application I did from MYSQL to MYSQLi and am a bit lost with echoing a result,
This code works in the old app with Mysql:
<textarea name="dump" style="width:300px; height:400px;">
<?php
include ("../connect.php");
$content = mysql_query("SELECT $field FROM customer WHERE cusid = '$cusid'") ;
echo mysql_result ($content,0);
?>
</textarea>
This code does not with Mysqli, i know the syntax is wrong, just dont know were.. thanks
<textarea name="dump" style="width:300px; height:400px;">
<?php
include ("../connect.php");
$content ='SELECT $field FROM customer WHERE cusid = "$cusid"';
$content = $db->query($content);
echo mysqli_result ($content);
?>
</textarea>