Php > Arrays
Create a grid out of INPUT TYPE=TEXT then saving to a database. Uses
Create a grid out of INPUT TYPE=TEXT then saving to a database. Uses use this bit of code to create a grid for($r=1;$r<=$NoRows;$r++){ echo"
"; for($c=1;$c<=$NoCols;$c++){ echo"
"; echo"
"; } echo"
"; } ?> now put in the database like this for($i=1;$i<=$NoRows;$i++){ $sql="INSERT INTO RateTable".$TableName." VALUES(".$i; for($j=1;$j<=$NoCols;$j++){ $sql=$sql.",".($Field["[$i][$j]"]); } $sql=$sql.")"; echo"
".$sql."
"; if(!mysql_db_query("wilrus",$sql)){ echo"
Major problem, sorry
"; }else{ echo"
Row ".$i." created.
"; } } ?>
Php Codes
Algorithms
Arrays
Authentication
Calendar
Code Snippets
Programs
Content Manage
Contest Related
Cookies
Credit Cards
DBase Related
Databases
Date Time
Directories
E-Mail
Errors
File
File System
Forms
Handling
Graphics
HTML and PHP
Informix
Ingres
InterBase
LDAP
Look and Feel
Miscellaneous
MySQL
Other
PHP Classes
Searching
Navigation
Statistics
Strings
User Manage