Can't see mysql records using php in any browser

Reply

Join Date: Apr 2004
Posts: 7
Reputation: monicao is an unknown quantity at this point 
Solved Threads: 0
monicao monicao is offline Offline
Newbie Poster

Can't see mysql records using php in any browser

 
0
  #1
Apr 29th, 2004
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 282
Reputation: Roberdin will become famous soon enough Roberdin will become famous soon enough 
Solved Threads: 6
Team Colleague
Roberdin Roberdin is offline Offline
Supreme Evil Overlord

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

 
0
  #2
Apr 30th, 2004
Could we see the code for this report?
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 7
Reputation: monicao is an unknown quantity at this point 
Solved Threads: 0
monicao monicao is offline Offline
Newbie Poster

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

 
0
  #3
May 2nd, 2004
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>
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC