Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > PHP

Reply
 
LinkBack Thread Tools Display Modes
Old 05-02-2004, 11:18 AM   #1 (permalink)
monicao
Registered User
 
Join Date: May 2004
Posts: 1
monicao is on a distinguished road
Can't see MySql database records in Mozilla

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.
monicao is offline   Reply With Quote
Old 05-02-2004, 11:37 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,487
sde is on a distinguished road
can u post us some examples of your code? php/mysql doesn't care what browser is viewing it .. php just spits out text.

with this in mind, then your problem is more likely in the html that you are outputting.

sometimes ie is more forgiving than other browsers.

look at things like:
make sure you are closing all your html tags.
make sure you are closing all quotes
make sure you closed the <head> tag
make sure you closed the <style> tag

things like that .. or just post a bit of your code that is relevent to this question.
__________________
Mike
sde is offline   Reply With Quote
Old 05-02-2004, 03:58 PM   #3 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
most likely reason: your html contains bad tables.
joe_bruin is offline   Reply With Quote
Old 05-02-2004, 05:19 PM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,487
sde is on a distinguished road
she pm'ed me the code. i requested we continue the thread here. here is what she sent me anyway. it seems to look fine and i request that she post the 'view source' along with this:
PHP 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">
</form>
</body>
</html>
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
open another mysql database using phpMyAdmin infinite_root PHP 5 04-28-2004 08:04 PM
Methods of moving a database... DarkTwilkitri PHP 8 11-19-2003 05:02 AM
and on to mysql .. sde Linux / BSD / OS X 2 01-18-2003 07:39 PM
permissions in MySQL trevor PHP 3 01-10-2003 01:47 PM


All times are GMT -8. The time now is 02:23 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting