943,762 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 4342
  • PHP RSS
Apr 29th, 2004
0

Can't see mysql records using php in any browser

Expand Post »
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
monicao is offline Offline
9 posts
since Apr 2004
Apr 30th, 2004
0

Re: Can't see mysql records using php in any browser

Could we see the code for this report?
Team Colleague
Reputation Points: 63
Solved Threads: 6
Supreme Evil Overlord
Roberdin is offline Offline
282 posts
since Feb 2003
May 2nd, 2004
0

Re: Can't see mysql records using php in any browser

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">&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp
<br><br>
<input type="submit" name="consel" value="Tipareste BE Conselectrom"> &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp
<br><br>
<input type="submit" name="consel_la" value="Tipareste BE M.P. la Conselectrom">&nbsp &nbsp &nbsp &nbsp
</form>
</body>
</html>
</code>
Reputation Points: 10
Solved Threads: 0
Newbie Poster
monicao is offline Offline
9 posts
since Apr 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: PHP email problem
Next Thread in PHP Forum Timeline: phpBB thread archive





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC