Hello, anyone can help me??
i have a table called customer with fields:
customer_id, customer_name, address, phone_no. And how can i just display customer_id, address only if i sql command is "select * from customers"...??
my coding is :
include(".\include\connectTonedb.inc");
// select database
$sql="Select * From customers";
$query = mysql_query( $sql ) or die ("Invalid query!!");
$yrec = mysql_fetch_array($sql_yquery);
while ($yrec) {
echo $yrec['customer_id'];
echo $yrec['address'];
echo "<br>";
}
while ($yrec) {
echo $yrec['customer_name'];
echo $yrec['phone_no'];
echo "<br>";
}
but it's not working at all.. can anyone help me to check this coding??
thank you so much..
joseph