Nieuw lid |
|
ik heb alles gelezen, maar ik heb een hele waslijst als ik het zo moet doen. gaat het niet gewono anders?
<?php
mysql_connect('localhost','....','....');
mysql_select_db('....') or die (mysql_error());
$res = mysql_query("SELECT * FROM orders,orders_products");
while ($obj = mysql_fetch_object($res)) { ?>
<table border="1" width="4000">
<tr>
<td bgcolor="#efefef" width="15"><?echo $obj->orders_id."";?></td>
<td bgcolor="#efefef" width="200"><?echo $obj->customers_name."<br />"; ?></td>
<td bgcolor="#efefef"><?echo $obj->customers_company."<br />"; ?></td>
<td bgcolor="#efefef"><?echo $obj->customers_street_address."<br />"; ?></td>
<td bgcolor="#efefef"><?echo $obj->customers_city."<br />"; ?></td>
<td bgcolor="#efefef"><?echo $obj->customers_postcode."<br />"; ?></td>
<td bgcolor="#efefef"><?echo $obj->customers_state."<br />"; ?></td>
<td bgcolor="#efefef"><?echo $obj->customers_country."<br />"; ?></td>
<td bgcolor="#efefef"><?echo $obj->customers_telephone."<br />"; ?></td>
<td bgcolor="#efefef"><?echo $obj->customers_email_address."<br />"; ?></td>
<td bgcolor="#ffffee"><?echo $obj->delivery_name."<br />"; ?></td>
<td bgcolor="#ffffee"><?echo $obj->delivery_company."<br />"; ?></td>
<td bgcolor="#ffffee"><?echo $obj->delivery_street_address."<br />"; ?></td>
<td bgcolor="#ffffee"><?echo $obj->delivery_city."<br />"; ?></td>
<td bgcolor="#ffffee"><?echo $obj->delivery_postcode."<br />"; ?></td>
<td bgcolor="#ffffee"><?echo $obj->delivery_state."<br />"; ?></td>
<td bgcolor="#ffffee"><?echo $obj->delivery_country."<br />"; ?></td>
<td bgcolor="#ffffvv"><?echo $obj->billing_name."<br />"; ?></td>
<td bgcolor="#ffffvv"><?echo $obj->billing_company."<br />"; ?></td>
<td bgcolor="#ffffvv"><?echo $obj->billing_street_address."<br />"; ?></td>
<td bgcolor="#ffffvv"><?echo $obj->billing_city."<br />"; ?></td>
<td bgcolor="#ffffvv"><?echo $obj->billing_postcode."<br />"; ?></td>
<td bgcolor="#ffffvv"><?echo $obj->billing_state."<br />"; ?></td>
<td bgcolor="#ffffvv"><?echo $obj->billing_country."<br />"; ?></td>
<td><font size="3"><?echo $obj->payment_method."<br />"; ?></td>
<td><?echo $obj->last_modified."<br />"; ?></td>
<td><font size="1"><?echo $obj->date_purchased."<br />"; ?></td>
<td><?echo $obj->orders_status."<br />"; ?></td>
<td><?echo $obj->orders_date_finished."<br />"; ?></td>
<td><?echo $obj->products_name."<br />"; ?></td>
<td><?echo $obj->products_quantity."<br />"; ?></td>
</tr>
<?
}
mysql_free_result($res);
?>
<?php $res = mysql_query("SELECT * FROM orders,orders_products"); <table border="1" width="4000"> <tr> <td bgcolor="#efefef" width="15"> <? echo $obj->orders_id."";? ></td> <td bgcolor="#efefef" width="200"> <? echo $obj->customers_name."<br />"; ?></td> <td bgcolor="#efefef"> <? echo $obj->customers_company."<br />"; ?></td> <td bgcolor="#efefef"> <? echo $obj->customers_street_address."<br />"; ?></td> <td bgcolor="#efefef"> <? echo $obj->customers_city."<br />"; ?></td> <td bgcolor="#efefef"> <? echo $obj->customers_postcode."<br />"; ?></td> <td bgcolor="#efefef"> <? echo $obj->customers_state."<br />"; ?></td> <td bgcolor="#efefef"> <? echo $obj->customers_country."<br />"; ?></td> <td bgcolor="#efefef"> <? echo $obj->customers_telephone."<br />"; ?></td> <td bgcolor="#efefef"> <? echo $obj->customers_email_address."<br />"; ?></td> <td bgcolor="#ffffee"> <? echo $obj->delivery_name."<br />"; ?></td> <td bgcolor="#ffffee"> <? echo $obj->delivery_company."<br />"; ?></td> <td bgcolor="#ffffee"> <? echo $obj->delivery_street_address."<br />"; ?></td> <td bgcolor="#ffffee"> <? echo $obj->delivery_city."<br />"; ?></td> <td bgcolor="#ffffee"> <? echo $obj->delivery_postcode."<br />"; ?></td> <td bgcolor="#ffffee"> <? echo $obj->delivery_state."<br />"; ?></td> <td bgcolor="#ffffee"> <? echo $obj->delivery_country."<br />"; ?></td> <td bgcolor="#ffffvv"> <? echo $obj->billing_name."<br />"; ?></td> <td bgcolor="#ffffvv"> <? echo $obj->billing_company."<br />"; ?></td> <td bgcolor="#ffffvv"> <? echo $obj->billing_street_address."<br />"; ?></td> <td bgcolor="#ffffvv"> <? echo $obj->billing_city."<br />"; ?></td> <td bgcolor="#ffffvv"> <? echo $obj->billing_postcode."<br />"; ?></td> <td bgcolor="#ffffvv"> <? echo $obj->billing_state."<br />"; ?></td> <td bgcolor="#ffffvv"> <? echo $obj->billing_country."<br />"; ?></td> <td><font size="3"> <? echo $obj->payment_method."<br />"; ?></td> <td> <? echo $obj->last_modified."<br />"; ?></td> <td><font size="1"> <? echo $obj->date_purchased."<br />"; ?></td> <td> <? echo $obj->orders_status."<br />"; ?></td> <td> <? echo $obj->orders_date_finished."<br />"; ?></td> <td> <? echo $obj->products_name."<br />"; ?></td> <td> <? echo $obj->products_quantity."<br />"; ?></td> </tr> <? } ?>
|