Database value problems

A

Anonymous

Guest
This one is throwing me for a loop; and I have stared at the code and output for about 3 hours now... Cant figure it out so I figured that I would see if someone else would like to take a crack at it. This is the problem.

I get some information from a database. Based on this information, I display a drop down box with some other information in it (so they can update the values). My problem is the function at the bottom of the page that gets the current value and displays the drop down box wont select the right one. I keep on getting ERROR (which is in my default). But as you can see, I output what Im testing against; and it outputs "No". Then the kicker... after the select statement, it says that my variable is empty 8O ????

I am completely confused... I have provided the source code and a sample screen shot of what I see (exactly). Any help is greatly appreciated. Thank you

Links
-------
Source Code
Screen Shot (I made it low resolution but you can see the output)

Will
 
elitecodex said:
This one is throwing me for a loop; and I have stared at the code and output for about 3 hours now... Cant figure it out so I figured that I would see if someone else would like to take a crack at it. This is the problem.

I get some information from a database. Based on this information, I display a drop down box with some other information in it (so they can update the values). My problem is the function at the bottom of the page that gets the current value and displays the drop down box wont select the right one. I keep on getting ERROR (which is in my default). But as you can see, I output what Im testing against; and it outputs "No". Then the kicker... after the select statement, it says that my variable is empty 8O ????

I am completely confused... I have provided the source code and a sample screen shot of what I see (exactly). Any help is greatly appreciated. Thank you

Links
-------
Source Code
Screen Shot (I made it low resolution but you can see the output)

Will

Hi Will again!
i see your script, and i think what you need carefuly see at your variable $id_of_page in one place it's arrage in other place it's simple variable.
And more i'll be limit your "comments_20" in html for 20 char or check lenth in PHP.
And once more, I'm be place next at your script:
Code:
<?php
session();
............
destroy_session();
?>
for more security....
 
Back
Top