Ok, thank you for the additional info.
I use the following code and if I remove the first .= the result will only show one article instead of many...
"Only" thing that I have changed is the query and I am not selecting *, that did not work either.
Once again, thank you for your efforts!
//Johan Beijar
Code:
// Retrieve info
$result = mysql_query("SELECT brandid, productname, price, currency, recpriceretail, productnumber, productid FROM products WHERE username='$session->username' ORDER BY brandid") or die(mysql_error());
// Format of table
echo "<table border='1' bordercolor='#cccccc' cellspacing='0' cellpadding='3'>";
echo "<tr bgcolor='#cccccc'><td>Brand</td>
<td>Prod name</td><td>Prod number</td><td>Price</td><td>Retail Price</td> <td>Currency</td> <td>Update</td></tr>";
// get the rows from the query
while($row = mysql_fetch_array( $result ))
{
//print $results at end
$results .= "<tr>";
$results .= '<td>'.$row['brandid'].'</td>';
$results .= '<td>'.$row['productname'].'</td>';
$results .= '<td>'.$row['productnumber'].'</td>';
$results .= '<td>'.$row['price'].'</td>';
$results .= '<td>'.$row['recpriceretail'].'</td>';
$results .= '<td>'.$row['currency'].'</td>';
$results .= '<td><a href="prodinfo.php?productid='.$row['productid'].'">Upd</a></td>';
$results .= "</tr>";
}
echo $results;
echo "</table>";
?>
Bookmarks