I would like to know how to use mysql_result
in mysqli
I'm not getting it, I was looking at the php.net
site and the only thing I saw was mysqli_data_seek
if anyone can help me ...
Code I'd like to pass to mysqli
:
$sql = mysqli_query($link, "SELECT * FROM produtos WHERE id_produto = $id");
if($id!=""){
$descricao = mysql_result($sql,0,"descricao");
$nome = mysql_result($sql,0,"nome");
$preco = mysql_result($sql,0,"preco");
$img = mysql_result($sql,0,"img");
}