Hi All,
($i = 0; $i < $tableno; $i++)
just trying to understand this code... is $i just a counter?
John
User Profile
Collapse
-
Thanks dlite922 much appreciated and this was (believe it or not) self inflicted homework as I felt it was high time I got to grips with some development work.
page 2 now give me this error; Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in C:\pathname\cre atetable.php on line 16
line 16 is;
echo "<td height="26">Tab le ", $i, "><input type='text' name='tableName[]'...Leave a comment:
-
php / mysql / array
My intention;
create 3 pages of code;
Page 1: two questions are asked
a. What is the database name ($dbname)
b. How many tables to create ($tableno)
and passed onto P2 using $_GET
Page 2: creates (using a while loop) the chosen number of txt boxes (given by $tableno) and creates a unique label for each table needed.
passes onto P3
...
No activity results to display
Show More
Leave a comment: