note 102777 deleted from control-structures.for by danbrown

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: jcarpizo at ymail dot com 

----

<?php
include ("Mysql.php");
$obj = new Mysql(); // my class mysql connection;
$query = $obj->Sql("SELECT * FROM cds");
$field = $obj->numFields($query); // return mysql_num_fields($arg);

$default = 0;

  echo "<table border=1>";
  echo "<tr>";
for($z = $default; $z<$field; $z++) {
	  
   echo  "<td>".$obj->tblFieldname($query,$z)."</td>"; // return mysql_field_name($arg,$int);
	  
 }
   echo "</tr>";
while ($val = $obj->fetchSql($query)){ // return mysql_fetch_array($arg, MYSQL_NUM);
	
   echo "<tr>";
			
	  for($i = $default; $i< count($val); $i++) {
	 
	  
	  echo "<td>".$val[$i]."</td>"; // return values;

	  }
	  
   echo "</tr>";
}
   echo "</table>";
?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.