Hi...
I am a newbie so please... HELP ME... I am a bit desperate because I did 1000 changes and nothing works...
I have this code working fine:
mysql_select_db("tlibros_shop", $link);
$ventas = mysql_query("SELECT orders_id, customers_name, customers_country FROM orders WHERE orig_reference LIKE '%" . $url . "%'", $link);
if ($row = mysql_fetch_array($ventas)){
echo "<table border = '1'> \n";
echo "<tr> \n";
echo "<td><b>Nº de Venta</b></td> \n";
echo "<td><b>Nombre del Cliente</b></td> \n";
echo "<td><b>Total de la Venta</b></td> \n";
echo "</tr> \n";
do {
echo "<tr> \n";
echo "<td align=center>".$row["orders_id"]."</td> \n";
echo "<td>".$row["customers_name"]."</td>\n";
echo "<td>".******."</td>\n";
echo "</tr> \n";
} while ($row = mysql_fetch_array($ventas));
echo "</table>";
echo "</table> \n";
} else {
echo '<div class="Estilo3"><strong>¡ No se ha registrado ninguna venta proveniente de tu URL !</strong></div>';
}
Now, I want to show where i placed the "*****" the price of the sale that its save in another table, the query should be like this:
$result = mysql_query("SELECT text FROM orders_total WHERE orders_id = '" . $row["orders_id"] . "', title = 'Total:', $link);
and place the ONLY one result that it will get in the first table where i placed *****...
But I don't know how to do this...
PLEASE HELP ME
Fede