insert works in firefox but not i.e.

This is a discussion on "insert works in firefox but not i.e." within the PHP Forum section. This forum, and the thread "insert works in firefox but not i.e. are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 16th, 2007, 06:11
SuperMember

SuperMember
Join Date: Apr 2007
Location: Brisbane, Australia
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Question insert works in firefox but not i.e.

I have a query to insert a product record into MySql database. Some products have flavours, some do not. On the form I have
PHP: Select all

if ($flav_exist !=  "y")  {
    
$flavour "";

The insert query works fine in Firefox, but fails in Internet Explorer, without giving error message. Any ideas please.

Last edited by karinne; Aug 16th, 2007 at 12:27. Reason: Please use [ php ]...[ /php ] tags when displaying code.
Reply With Quote

  #2 (permalink)  
Old Aug 16th, 2007, 06:25
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
Re: insert works in firefox but not i.e.

PHP runs on a server and is not dependent on the client browser....

PHP --> server side - generates HTML and sends it the the client browser.
HTML / Javascript --> client side.
Reply With Quote
  #3 (permalink)  
Old Aug 16th, 2007, 06:43
SuperMember

SuperMember
Join Date: Apr 2007
Location: Brisbane, Australia
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: insert works in firefox but not i.e.

I understand PHP runs on the server, but the query does not work. All I get is a blank screen.
Reply With Quote
  #4 (permalink)  
Old Aug 16th, 2007, 08:25
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
Re: insert works in firefox but not i.e.

OK, maybe you could post a bit more code....
Reply With Quote
  #5 (permalink)  
Old Aug 16th, 2007, 12:10
Junior Member
Join Date: Aug 2007
Location: London
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Re: insert works in firefox but not i.e.

Impossible to say without more code, however what you might do is verify that your HTML is not faulty. Any difference seen on the server side when submitting a form could be as a result of faulty form construction being interpreted differently by the client having a more or less forgiving parser, and resulting in data being posted differently. The result would be that your PHP script could behave differently if it wasn't getting some of the posted data. Similarly although less likely, after submitting the form you may have some page content returned but it's just not rendering.

Simple but effective debugging can be achieved by inserting some calls to var_dump() for any variables whose value affects program flow, as well as for $_POST or $_GET.
Reply With Quote
  #6 (permalink)  
Old Aug 21st, 2007, 14:40
Up'n'Coming Member
Join Date: Aug 2007
Location: Bicester
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Re: insert works in firefox but not i.e.

Hi Gecko

If you are getting a blank screen from a PHP script that suggests a fatal error in the PHP script before it is ouptting any html.

There are a number of things which you can do:

Set PHP to output errors. You can set the display_errors to 1 in the php.ini and error_reporting to E_ALL. This will output all errors to the browser. The script may still fail but at least you will know why.

If you use shared hosting and cannot edit php.ini you can use ini_set in your script as in
Code: Select all
ini_set("display_errors", "1"); 
error_reporting(E_ALL);
This time hopefully you will see the error.

Justin
Reply With Quote
  #7 (permalink)  
Old Aug 22nd, 2007, 05:06
SuperMember

SuperMember
Join Date: Apr 2007
Location: Brisbane, Australia
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: insert works in firefox but not i.e.

Thanks guys. I'm debugging script using "echo" and var_dump(), and displaying errors. Hopefully the error will show up soon.
Reply With Quote
Reply

Tags
browsers, mysql insert, php

Thread Tools

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
flash movie works in IE but not in firefox forry Web Page Design 8 May 19th, 2008 15:01
Floating works fine in firefox but not IE ! marSoul Web Page Design 13 Dec 18th, 2007 18:37
Flash only works in Firefox fosfora Flash & Multimedia Forum 33 Jul 12th, 2007 16:53
IE issues with my layout, works fine in Firefox :[ st3ady Web Page Design 6 Aug 18th, 2006 21:18
Firefox CSS problem with hebrew (works ok on IE) offco Web Page Design 6 Aug 5th, 2006 17:06


All times are GMT. The time now is 07:35.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43