/var/www/onesolution.com.hk/support/getcustomer.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php require("configure.php"); ?>
<table border="0" cellpadding="1" cellspacing="1" width="800">
<?php
$sql 
"SELECT * ";
$sql .= "FROM CM_CUSTOMER_HDR ";
$sql .= "where custid = "$_GET['q'];

$result mysql_query($sql);
while (
$row mysql_fetch_array($result,MYSQL_ASSOC))
{
?>
<tr><td width="150" class='content' align="left" width="150">Address:</td>
    <td class='content'><?=$row{'address'}?></td><tr>
<tr><td class='content' align="left">Contact Person:</td>
    <td class='content'><?=$row{'contactperson'}?></td><tr>
<tr><td class='content' align="left">Tel no:</td>
    <td class='content'><?=$row{'telno'}?></td><tr>
    <?
}
mysql_close($dbh);
?>
</table>