[PHP] Mysterious gap

2003-01-30 Thread Lightfirst
Hello All, I am hoping someone can help me with a problem I am having with PHP (3.23.49) and mysql (4). My objective is to fill a table with data from a database. My problem is that I cannot figure out why I get a gap (noticeable with about 20 records) at the top of the page (just below the text l

[PHP] Baffling output

2003-01-02 Thread Lightfirst
Can someone explain to me why the loop that counts to 99 appears before the 5 by 5 grid in the following php code? Thanks! "; for ($r=0; $r<5; $r++){ for ($c=0; $c<7; $c++){ if ($c==0 || $c%7==0) echo ""; else if ($c%6==0) echo ""; else { echo "

[PHP] display edited field in table

2002-12-19 Thread Lightfirst
I am using Php/MySql and I am trying to display a table and have one of the fields (answer) editable. What I would like is to have the user edit the field and then click update. The result- display the table along with the updated field. What am I doing wrong? He is my code:

[PHP] display edited field in table

2002-12-19 Thread Lightfirst
I am using Php/MySql and I am trying to display a table and have one of the fields (answer) editable. What I would like is to have the user edit the field and then click update. The result-display the table along with the updated field. What am I doing wrong? He is my code:

[PHP] Passing text info using $PHP_SELF

2002-12-15 Thread Lightfirst
I am using PHP and MySql and wanted to know if it possible to pass the value inserted in a text box back to the page using PHP_SELF. Bellow is the snipped of code. The part that is not working is &q=input. Any ideas? Thanks. while($query_data = mysql_fetch_array($result)) { $id = $query_data [