| | |
Can't see mysql records using php in any browser
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2004
Posts: 7
Reputation:
Solved Threads: 0
Hy, I have a PHP raport and I'm using a MySQL database. That raport have to show me information from database. These information from database I only can see them with Internet Explorer (I'm using it to show me the output from my PHP program). If I want to see information from my database with Mozilla or Opera or Netscape or other browser...the browser doesn't show me those information from MySQL database. Can anyone tell me why? Thanks.
•
•
Join Date: Apr 2004
Posts: 7
Reputation:
Solved Threads: 0
Of course, the code is:
<code>
<html>
<body>
<form action="be.php" method="POST">
<select name="cod">
<?
mysql_connect("localhost","root","");
mysql_select_db("posta1");
$sql="select * from firme order by cod asc";
$resursa=mysql_query($sql);
while($row=mysql_fetch_array($resursa))
{print "<option value='".$row['cod']."'> ".$row['cod']."</option>";}
?>
</select>
<br><br>
Valoare colet in cifre: <input type="text" name="valoare"><br>
Valoare colet in litere: <input type="text" name="valoarelit"><br>
Ramburs colet in cifre: <input type="text" name="ramburs"><br>
Ramburs colet in litere: <input type="text" name="ramburslit"><br>
<BR><BR>
<input type="submit" name="unicas" value="Tipareste BE Unicas">
<br><br>
<input type="submit" name="unicas_la" value="Tipareste BE M.P. la Unicas">                       
<br><br>
<input type="submit" name="consel" value="Tipareste BE Conselectrom">                        
<br><br>
<input type="submit" name="consel_la" value="Tipareste BE M.P. la Conselectrom">       
</form>
</body>
</html>
</code>
<code>
<html>
<body>
<form action="be.php" method="POST">
<select name="cod">
<?
mysql_connect("localhost","root","");
mysql_select_db("posta1");
$sql="select * from firme order by cod asc";
$resursa=mysql_query($sql);
while($row=mysql_fetch_array($resursa))
{print "<option value='".$row['cod']."'> ".$row['cod']."</option>";}
?>
</select>
<br><br>
Valoare colet in cifre: <input type="text" name="valoare"><br>
Valoare colet in litere: <input type="text" name="valoarelit"><br>
Ramburs colet in cifre: <input type="text" name="ramburs"><br>
Ramburs colet in litere: <input type="text" name="ramburslit"><br>
<BR><BR>
<input type="submit" name="unicas" value="Tipareste BE Unicas">
<br><br>
<input type="submit" name="unicas_la" value="Tipareste BE M.P. la Unicas">                       
<br><br>
<input type="submit" name="consel" value="Tipareste BE Conselectrom">                        
<br><br>
<input type="submit" name="consel_la" value="Tipareste BE M.P. la Conselectrom">       
</form>
</body>
</html>
</code>
![]() |
Similar Threads
- how to retrive image file from mysql databse using php (PHP)
- updating data in mysql database using php forms (PHP)
- Cannot get MySQL to talk to .php file (MySQL)
- Php code confusion. Not sure how to describe (PHP)
- Update entire Mysql DataBase with PhP (PHP)
- Can't see MySql records using PHP with any browser (MySQL)
Other Threads in the PHP Forum
- Previous Thread: PHP email problem
- Next Thread: phpBB thread archive
| Thread Tools | Search this Thread |
apache api array beginner beneath binary broadband broken button cakephp checkbox class cms code countingeverycharactersfromastring crack cron curl database date display dynamic echo email error fcc file files folder form forms freelancing function functions google href htaccess html image include incode insert integration ip javascript joomla limit link login mail match menu method mlm mod_rewrite multiple mysql oop pageing pagerank paypal pdf php problem query radio random recursion recursiveloop remote script search server sessions sms smtp soap source space sql strip_tags subversion support! survey syntax system table template tutorial undefined update upload url validator variable video virus web window.onbeforeunload=closeme; youtube





