$connection = @mysql_connect("......org:33066", "JPsp", "gerhard");
$table = "jps_values_f1";
mysql_select_db("jpcollect");
if(!$connection){
echo "Connection not Established!\n";
exit;
}
$get = "SELECT CName, JName, Value FROM $table WHERE JName = 'cp'";
//$result = mysql_db_query($dbname, $get, $connection);
$result = mysql_query($get, $connection);
.
.
.
//if($row = mysql_fetch_array($result)){
?>
<?php while($row = mysql_fetch_array($result)){ ?>
<?php foreach($row as $col){ ?><?php } ?>
<?php
}//while($row = mysql_fetch_array($result));
//}else {print "Sorry, no record were found!";
//}
.
.
.
<?php print $col; ?> |