Current location: Hot Scripts Forums » Other Discussions » Database » MySQL Select working in Firefox but not in IE


MySQL Select working in Firefox but not in IE

Reply
  #1 (permalink)  
Old 12-22-06, 02:28 PM
greymoose greymoose is offline
Newbie Coder
 
Join Date: May 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
MySQL Select working in Firefox but not in IE

Hi all,

I've got the following script set up to get the address of the website for advertisers on my site from a MySQL database.

Code:
$advnum = param('advname');	    	

	$dbh = DBI->connect($databaseName, $databaseUser, 
   	$databasePw) || die "Connect failed: $DBI::errstr\n";

#Get style of page for this advertiser
	$stmt = "SELECT advwww FROM advertisers WHERE advnum = ?";

	# Prepare and execute the SQL query
		$sth = $dbh->prepare($stmt) || die "prepare: $stmt: $DBI::errstr";
		$sth->execute($advnum) || die "execute: $stmt: $DBI::errstr";
		$sth->bind_columns( undef, \$advwww);
		$sth->fetchrow();
It works fine in Firefox, Galeon and Konqueror but MSIE doesn't pick up the value from the database. When I get it to print the value of $advwww after this script it comes up empty.

The real life version is here: http://www.martoncentral.co.nz/comp.html (click on the sponsors name).

I'm picking there is some IE bug I'm not aware of (not that I'm discounting mistakes on my part). Can anyone see what I am doing wrong?

Cheers,

Phil
Reply With Quote
  #2 (permalink)  
Old 12-23-06, 04:17 PM
jfulton's Avatar
jfulton jfulton is offline
Community VIP
 
Join Date: Apr 2006
Location: Los Angeles, CA
Posts: 660
Thanks: 0
Thanked 0 Times in 0 Posts
php is processed on the server and has nothing to do with a user's web browser. Make sure your output is formatted correctly in the page source. There's probably an error in it that IE can't parse, but the other browsers can. Could you post the output? What it's supposed to produce, and what it actually does produce?
Reply With Quote
  #3 (permalink)  
Old 12-23-06, 06:19 PM
greymoose greymoose is offline
Newbie Coder
 
Join Date: May 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jfulton
There's probably an error in it that IE can't parse, but the other browsers can.
I followed that line of thought and found that I hadn't allowed for an IE bug in the form sending the data to the script. It works fine now.

Thanks for your excellent insight.

Have a great festive season.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help 2 create more efficiently coded dynamic MySQL SELECT pages from PHP/HTML? pilch PHP 2 05-17-06 05:30 AM
Hi & Myphpadmin getting started help php_guru_besar New Members & Introductions 4 03-19-06 11:06 PM
onChange with 2 values not working in FireFox dooby JavaScript 2 07-09-05 12:05 PM
how to weigh mysql select results bugalyzer PHP 1 02-28-05 12:38 PM
IE and Firefox not working together stuboo CSS 2 11-29-04 02:49 AM


All times are GMT -5. The time now is 04:56 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.