$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)){
?>
<table border=1>
<?php
while($row = mysql_fetch_array($result)){
?>
<tr>
<?php
foreach($row as $col){
?><td><?php
print $col;
?></td><?php
}
?>
</tr>
<?php
}//while($row = mysql_fetch_array($result));
//}else {print "Sorry, no record were found!";
//}
.
.
.
$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)){
?>
<table border=1>
<?php
while($row = mysql_fetch_array($result)){
?>
<tr>
<?php
foreach($row as $col){
?><td><?php
print $col;
?></td><?php
}
?>
</tr>
<?php
}//while($row = mysql_fetch_array($result));
//}else {print "Sorry, no record were found!";
//}
.
.
.
Zuletzt bearbeitet: