SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php | |
| 2 | function GetMasterData($memberno){
| |
| 3 | $select = array("no","name", "name2", "address", "address2", "postcode", "city", "telephone", "email", "mobilphone", "socialsecurityno","bankreg","bankaccount");
| |
| 4 | $table = array("Contact");
| |
| 5 | $where = "no = '".$memberno."'"; | |
| 6 | $order = array("no");
| |
| 7 | $result = mysql_select_array($select,$table,$where,$order,"no"); | |
| 8 | ||
| 9 | /*while($row = mysql_fetch_assoc($result)) | |
| 10 | {
| |
| 11 | $newarray[]=$row; | |
| 12 | } | |
| 13 | return $newarray;*/ | |
| 14 | return $row = mysql_fetch_assoc($result); | |
| 15 | } | |
| 16 | ||
| 17 | ?> |