Posted: Mon Apr 19, 2004 6:29 am
We just seem to be going from one problem to the next. To be honest I think you need to do some more reading and learning of the basics before we go any further.
After looking at your script in a bit more detail I note that the individual sections are written using different techniques, which suggests that you are merely adapting different examples you have come across to suit your needs and attempting to tie them together. Essentially there is nothing wrong with that but it does lead to two problems. 1. You don't fully understand the code and what is going on, and 2. Due to problem 1 you don't have the knowledge/ability to aid you in working out where your problems lie.
A couple of things you need to search on (probably answered within the forum but you should also try the search engines).....
'Working with register globals off' (at a rough guess this is most likely why you are inserting blank rows to your database).
'Basic SQL query debuging' (you can implement a 'poor mans' debug system with simple echo statements and using mysql_error() etc).
'Basic SQL query handling and manipulating results'
While working on your scripts you should also consider configuring PHP to display all errors (including notices), this will alert you to undefined variables etc... (very handy)
After looking at your script in a bit more detail I note that the individual sections are written using different techniques, which suggests that you are merely adapting different examples you have come across to suit your needs and attempting to tie them together. Essentially there is nothing wrong with that but it does lead to two problems. 1. You don't fully understand the code and what is going on, and 2. Due to problem 1 you don't have the knowledge/ability to aid you in working out where your problems lie.
A couple of things you need to search on (probably answered within the forum but you should also try the search engines).....
'Working with register globals off' (at a rough guess this is most likely why you are inserting blank rows to your database).
'Basic SQL query debuging' (you can implement a 'poor mans' debug system with simple echo statements and using mysql_error() etc).
'Basic SQL query handling and manipulating results'
While working on your scripts you should also consider configuring PHP to display all errors (including notices), this will alert you to undefined variables etc... (very handy)