![]() |
|
#1
|
|||
|
|||
Problem with php/mysql script during runtimeFollowing message is shown
beside the html dokument: Input new title for the mylibrary database Notice: Undefined variable: formSubmit1 in d:\programme\apache group\apache\htdocs\bibli\input.php on line 707 Notice: Undefined variable: formSubmit2 in d:\programme\apache group\apache\htdocs\bibli\input.php on line 727 Input new title (stage 1) Title: * Subtitle: Edition: Authors: * Publisher: Category: Notice: Undefined variable: formCategory in d:\programme\apache group\apache\htdocs\bibli\input.php on line 770 (choose)All books Children's books Computer books Databases MySQL Object-oriented databases Relational Databases SQL LaTeX, TeX Programming Perl PHP Literature and fiction Publishing year: Language: Notice: Undefined variable: formLanguage in d:\programme\apache group\apache\htdocs\bibli\input.php on line 777 (choose)deutschenglishnorsksvensk ISBN: Comment/Keywords: No idea what to do in order to fix this, happens with other scripts to. Would be great if somebody could help, matthias |
|
#2
|
||||
|
||||
|
your error_reporting is set to E_ALL, leave it like that :)
to fix you problem use PHP Code:
and repeat it for the other strings... that should fix some things, if you supply a bit code we can look and fix everything if you want to become a good PHP coder you should always put error_reporting(E_ALL); in your scripts, and fix all errors you see |
|
#3
|
||||
|
||||
PHP error_reporting() settingsHello Matthias,
This is a common problem with every PHP script that I write. Like Allowee has already said, it's your error_reporting default value set in the php.ini file. The good news is that you can overwrite this setting - this is good news ONLY if you didn't write the script yourself, you don't know PHP well enough to go fixing everything AND you want a quick fix. Go to the top of this script and just add this line: PHP Code:
But like Allowee also mentioned, it is recommended that you fix the 'real' problems instead. Here's an example why: PHP Code:
This piece of script will send out the same kind of error notice like what you described. Notice the spelling error for the variable; $text instead of $test! If you understand the snippet of code above, you'll realise why most PHP coders prefer to develop their PHP codes with error_reporting() set to E_ALL. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#4
|
|||
|
|||
Thank you, i got it fixedHallo Guys,
it was exactly what you assumed. Thanx |
Recent GIDBlog
NARMY by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Redirect multiple URLs to one script, masking true URL | Maccaday | Apache Web Server Forum | 1 | 10-Dec-2003 08:34 |
| JavaScript Tutorial Part 1 | pcxgamer | Web Design Forum | 2 | 01-Dec-2003 09:16 |
| problem with php5 cgi installation | fab13 | Apache Web Server Forum | 3 | 19-Nov-2003 09:11 |
| Why does javascript cause sound problem to website | rhino1616 | Web Design Forum | 8 | 06-May-2003 16:25 |
| A very good sitemap script | jrobbio | MySQL / PHP Forum | 3 | 03-Mar-2003 01:07 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The