-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.php
More file actions
22 lines (22 loc) · 834 Bytes
/
test.php
File metadata and controls
22 lines (22 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
include "connect.inc.php";
$querycustomer = mysql_query("Select * from customer");
$queryperson = mysql_query("Select * from person");
while($rowc = mysql_fetch_array($querycustomer))
{
//echo "<tr>";
//echo '<td align="center">'. $rowc['customer_id'] . "</td>";
$customer_id = $rowc['customer_id'];
$sql = "SELECT f_name,l_name FROM `person` WHERE `person_id` = '$customer_id'";
$name=mysql_query($sql);
$row = mysql_fetch_array($name);
echo $row['f_name'];
if($name){
echo $name['f_name'];
echo "string";
}
else{
die(mysql_error());
}
}
?>