PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Iron Speed
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old September 8th, 2002, 04:06 PM
littleblackdog littleblackdog is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Anchorage
Posts: 118 littleblackdog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Netscape and php?

I have been unable to see any of my php results on Netscape...is it a problem on the server? Is it in my code? Is it from the client's settings in Netscape?
Help.
__________________
bow wow!

Reply With Quote
  #2  
Old September 8th, 2002, 04:18 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Can you post a piece of code... This is the first I've heard of this. It won't be the client's settings as PHP is a server-side language which means it's parsed and converted to HTML before sent to the browser. So all the user receives is pure HTML.

Do you use a lot of Javascript? That may be a problem... but a code snippet would help.
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #3  
Old September 8th, 2002, 06:33 PM
littleblackdog littleblackdog is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Anchorage
Posts: 118 littleblackdog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Here is some code:

Here is some code to check. The pages look fine in netscape but the php is not showing up, no errors, just no output from mysql database that I can see in Netscape. Works great in IE. Think its a server setting? It's not my server.
Thanks.



<?php
$db = mysql_connect ( "name", "user", "password");
mysql_select_db("database", $db);
$result = mysql_query("SELECT * FROM table ", $db);
if ( $myrow = mysql_fetch_array($result))
{
echo "<table border =1>\n";
echo "<tr><td><b>Assignment Name</b></td><td><b>Book</b></td><td><b>Date Assigned</b></td><td><b>Date Due</b></td><td><b>Message</b></td></tr>\n";
do {
printf ("<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\n",
$myrow[assign_name], $myrow[level], $myrow[date_assigned], $myrow[date_due], $myrow[message]);
}
while ($myrow = mysql_fetch_array($result));
echo "</tabel>\n";
}
else {
echo " Sorry, no records were found.";
}
?>
</p>
</body>
</html>

Reply With Quote
  #4  
Old September 8th, 2002, 07:40 PM
Kiwi Kiwi is offline
Guru-in-training
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Not where I want to be...yet!
Posts: 38 Kiwi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Re: Here is some code:

Quote:
Originally posted by littleblackdog
Here is some code to check. The pages look fine in netscape but the php is not showing up, no errors, just no output from mysql database that I can see in Netscape. Works great in IE. Think its a server setting? It's not my server.
Thanks.



<?php
$db = mysql_connect ( "name", "user", "password");
mysql_select_db("database", $db);
$result = mysql_query("SELECT * FROM table ", $db);
if ( $myrow = mysql_fetch_array($result))
{
echo "<table border =1>\n";
echo "<tr><td><b>Assignment Name</b></td><td><b>Book</b></td><td><b>Date Assigned</b></td><td><b>Date Due</b></td><td><b>Message</b></td></tr>\n";
do {
printf ("<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\n",
$myrow[assign_name], $myrow[level], $myrow[date_assigned], $myrow[date_due], $myrow[message]);
}
while ($myrow = mysql_fetch_array($result));
echo "</tabel>\n";
}
else {
echo " Sorry, no records were found.";
}
?>
</p>
</body>
</html>


Only obvious error here is the misspelling of </table>. Perhaps NS is less forgiving than IE on this ?

Reply With Quote
  #5  
Old September 8th, 2002, 10:56 PM
littleblackdog littleblackdog is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Anchorage
Posts: 118 littleblackdog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Smile Thank you!

Thank you , I'll give it a try.

Reply With Quote
  #6  
Old September 9th, 2002, 06:48 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
php is never incompatiable with any browser, its either your html or javascript

since php is server side and now client side

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > Netscape and php?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway