🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #220125

Re: [newbie] SHOW TABLES i wyniki w przeglądarce.

#220125
From: jab0lWYTNIJTO
Date: Tue, 11 Aug 2009 20:31
25 lines
1569 bytes
$query1 = "SHOW TABLES";
$tables_query = mysql_query($query1, $connection) or die (mysql_error());
//$row_tables = mysql_fetch_array($tables_query);
$totalRows= mysql_num_rows($tables_query);

?>

<form method="post" action="change.php" >
<select name="choice" id="first" >

  <?php
  $i=0;
  while ($row_tables = mysql_fetch_array($tables_query)) {
    $i++;
    echo ('<option value='.'"'.$i.'">'.$row_tables[0]." ".$i.'</option>');
  }
  ?>

</select>
<input type="submit" value="zrób" />
</form>


-- 
Wysłano z serwisu OnetNiusy: http://niusy.onet.pl
Technical Details
Message-ID: <51d9.000002ad.4a81d52f@newsgate.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsgate1.onet.pl!niusy.onet.pl
References: <h5rtoi$6og$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsgate1.onet.pl!niusy.onet.pl
From: jab0lWYTNIJTO@poczta.onet.pl
Newsgroups: pl.comp.lang.php
Subject: Re: [newbie] SHOW TABLES  i wyniki w przeglądarce.
Date: Tue, 11 Aug 2009 22:31:43 +0200
Organization: Onet.pl
Lines: 25
Sender: korbka@newsgate1.test.onet.pl
Message-ID: <51d9.000002ad.4a81d52f@newsgate.onet.pl>
References: <h5rtoi$6og$1@inews.gazeta.pl>
NNTP-Posting-Host: newsgate1.onet.pl
Mime-Version: 1.0
X-Trace: newsgate1.test.onet.pl 1250022704 995 213.180.130.17 (11 Aug 2009 20:31:44 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Tue, 11 Aug 2009 20:31:44 +0000 (UTC)
X-Mailer: http://niusy.onet.pl
X-Forwarded-For: 91.123.216.97, 10.174.28.60
X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.0.13)   Gecko/2009073022 Firefox/3.0.13 FirePHP/0.3
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit