note 102777 added to control-structures.for

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
<?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>";
?>
----
Server IP: 69.147.83.197
Probable Submitter: 125.60.241.28
----
Manual Page -- http://www.php.net/manual/en/control-structures.for.php
Edit        -- https://master.php.net/note/edit/102777
Del: integrated  -- https://master.php.net/note/delete/102777/integrated
Del: useless     -- https://master.php.net/note/delete/102777/useless
Del: bad code    -- https://master.php.net/note/delete/102777/bad+code
Del: spam        -- https://master.php.net/note/delete/102777/spam
Del: non-english -- https://master.php.net/note/delete/102777/non-english
Del: in docs     -- https://master.php.net/note/delete/102777/in+docs
Del: other reasons-- https://master.php.net/note/delete/102777
Reject      -- https://master.php.net/note/reject/102777
Search      -- https://master.php.net/manage/user-notes.php
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.