View Single Post
  #10 (permalink)  
Old 03-18-04, 09:06 AM
Infinite_Hackers's Avatar
Infinite_Hackers Infinite_Hackers is offline
Coding Addict
 
Join Date: Dec 2003
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
If the script below doesn't work, could you please show us your $result and the script you use to connect to mysql ;D


PHP Code:

<form action="removeteach.php" method="post">

<?php
...
while (
$row mysql_fetch_row($result)) {
         
$get_info[] = $row;
}
          
print 
"<tr>\n";
foreach (
$get_info as $field) {
print 
"\t<td><input type=\"checkbox\" name=\"remove[]\" value=\"" $field['teachid'] . "\" /></td>\n";
print 
"\t<td> What goes here ?? we need some variable.. you can't put ' field'</td>\n";

...
?>
What goes here ?? we need some variable.. you can't put ' field'
you cannot put $field there... you need $field['some row name']

Last edited by Infinite_Hackers; 03-18-04 at 09:11 AM.
Reply With Quote