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.
|
|
|
|
|
![]() |
||
insert works in firefox but not i.e.
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
I have a query to insert a product record into MySql database. Some products have flavours, some do not. On the form I have
Last edited by karinne; Aug 16th, 2007 at 12:27. Reason: Please use [ php ]...[ /php ] tags when displaying code. |
|
|
|
||||
|
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.
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
|||
|
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.
|
|
||||
|
Re: insert works in firefox but not i.e.
OK, maybe you could post a bit more code....
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
|||
|
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. |
|
|||
|
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
Justin |
|
|||
|
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.
|
![]() |
| Tags |
| browsers, mysql insert, php |
| Thread Tools | |
|
|
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 |