Php Code

  legendcrest 12:53 09 Jul 2008
Locked

i have this code but its not returning anything
?php
// Connects to your Database
mysql_connect("localhost", "adonaine_searchm", "my_passwprd") or die(mysql_error());
mysql_select_db("adonaine_wee") or die(mysql_error());
$cscsno=$_POST['cscsno'];
$data = mysql_query("SELECT * FROM balance WHERE chno ='$cscsno'") or die(mysql_error());
Print " table border cellpadding=3>";
while($info = mysql_fetch_array( $data ))
{
Print " tr>";
Print " th>CSCS NO: /th> td>".$info['CSCSNO'] . " /td> ";
Print " th>ACCT NO: /th> td>".$info['ACCT NUMBER'] . " /td> /tr>";
Print " th>SYMBOL CODE /th> td>".$info['SYMBOL CODE'] . " /td> ";
Print " th>UNIT: /th> td>".$info['UNIT'] . " /td> /tr>";
Print " th>BROKER: /th> td>".$info['BROKER'] . " /td> ";
}
Print " /table>";
?>

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Alienware 17 R4 2017 review

These brilliant Lego posters show just what children's imaginations are capable of

Mac power user tips and hidden tricks

Comment réinitialiser votre PC, ordinateur portable ou tablette Windows ?