note 116298 added to function.mysql-fetch-array
| From: | emerson dot basoalto at gmail dot com | Date: | Mon, 08 Dec 2014 21:47:01 +0000 |
| Subject: | note 116298 added to function.mysql-fetch-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-201091@lists.php.net to get a copy of this message | ||
Dear
I a have problem with this BD consult
$sql_productos = "SELECT p.quantity, pr.price, pl.name FROM co_cart_product as p,
co_product_lang as pl, co_product as pr where p.id_cart='$TBK_ORDEN_COMPRA' and
p.id_product=pl.id_product and p.id_product=pr.id_product and pl.id_lang=5 order by p.id_cart";
$result_pfinales = mysql_query($sql_productos, $conexion);
$z=0;
while($myrow_not = mysql_fetch_array($result_pfinales))
{
$z++;
echo "<table width='550px' align='center'> ";
echo "<th width='200px' align='left'>";
print utf8_encode($t_producto=$myrow_not[name]);
echo "</th>";
echo "<th width='73px' align='left'>";
print round($t_producto=$myrow_not[quantity]);
echo "</th>";
echo "<th width='85px' align='left'>";
print '$'; print' '; print
number_format($t_producto=$myrow_not[price],0,',','.');
echo "</th>";
echo "</th>";
echo "<th width='385px' align='left'>";
print '$'; print' '; print
round(($t_producto=$myrow_not[price])*$t_producto=$myrow_not[quantity]);
echo "</th>";
echo "</table>";
This code do not print the info of the BD, i need help please
Thanks.
----
Server IP: 72.52.91.14
Probable Submitter: 190.45.165.52
----
Manual Page -- http://php.net/manual/en/function.mysql-fetch-array.php
Edit -- https://master.php.net/note/edit/116298
Del: integrated -- https://master.php.net/note/delete/116298/integrated
Del: useless -- https://master.php.net/note/delete/116298/useless
Del: bad code -- https://master.php.net/note/delete/116298/bad+code
Del: spam -- https://master.php.net/note/delete/116298/spam
Del: non-english -- https://master.php.net/note/delete/116298/non-english
Del: in docs -- https://master.php.net/note/delete/116298/in+docs
Del: other reasons-- https://master.php.net/note/delete/116298
Reject -- https://master.php.net/note/reject/116298
Search -- https://master.php.net/manage/user-notes.php