Hi!
Can I use this code to show data of column of a certain database
on the page which I create by writing the following code?
<?php
$open = mysql_connect(" localhost", "user", "password") ;
$data = mysql_db_query( "nameofthedatab ase", "SELECT * FROM nameofthetable
WHERE nameofthecolumn 1 ORDER BY namneofthecolum n2");
while ($rad = mysql_fetch_arr ay ($data)) {
print "<B>";
print $rad["nameofthecolum n1"];
print " ";
print $rad["nameofthecolum n2"];
print "</B><BR>";
print "City:";
print " ";
print $rad["City"];
print "<P>";
}
?>
--
Luigi ( un italiano che vive in Svezia)
Can I use this code to show data of column of a certain database
on the page which I create by writing the following code?
<?php
$open = mysql_connect(" localhost", "user", "password") ;
$data = mysql_db_query( "nameofthedatab ase", "SELECT * FROM nameofthetable
WHERE nameofthecolumn 1 ORDER BY namneofthecolum n2");
while ($rad = mysql_fetch_arr ay ($data)) {
print "<B>";
print $rad["nameofthecolum n1"];
print " ";
print $rad["nameofthecolum n2"];
print "</B><BR>";
print "City:";
print " ";
print $rad["City"];
print "<P>";
}
?>
--
Luigi ( un italiano che vive in Svezia)
Comment