Fwd: [PHP-DB] mysql check boxes

2005-06-24 Thread Globalvoice101
When  I neter this coe, it gives following error.


Parse error: parse error, unexpected T_VARIABLE, expecting ',' or ';' in /home2/wwwabcde/public_html/select.php on line 22

--- Begin Message ---
I was confused for a moment about the use of the "two" checkboxes in your
request -- now I understand that you actually use the word "checkbox" for
two different items in your post.  1) is for the field in the table where
binary data is fetched and 2) is for an actual HTML form checkbox that is to
precede each row of data.

Your script only displays #1 -- the data from the database.  Here is what
you need to do to see the checkbox before the data in each row.

echo "   $id
$checkbox $testField ";

I am assuming a couple of things with the above code -- but this should get
you to the place where you can work it out.


Mark Cain


- Original Message -
From: <[EMAIL PROTECTED]>
To: 
Sent: Friday, June 24, 2005 5:25 AM
Subject: [PHP-DB] mysql check boxes


Dear Friends,

I have mysql database and php script.

Script pulls all the data with their serial number in html form, from
database however, I want each field pulled to be preceeded by a check box.

I created field in table and entered array for check boxes in php script,
still check boxes aren't displayed.at the same time rest of the data with
serial
number is displayed.

--
--
Php script

--
--
";
}
?>
---
mysql table structure
---
   Field TypeAttributes   NullDefault Extra
Action
id int(11)   No   auto_increment

checkbox char(2) BINARY   No []
emailvarchar(150)  No

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] mysql check boxes

2005-06-24 Thread Mark Cain
I was confused for a moment about the use of the "two" checkboxes in your
request -- now I understand that you actually use the word "checkbox" for
two different items in your post.  1) is for the field in the table where
binary data is fetched and 2) is for an actual HTML form checkbox that is to
precede each row of data.

Your script only displays #1 -- the data from the database.  Here is what
you need to do to see the checkbox before the data in each row.

echo "   $id
$checkbox $testField ";

I am assuming a couple of things with the above code -- but this should get
you to the place where you can work it out.


Mark Cain


- Original Message -
From: <[EMAIL PROTECTED]>
To: 
Sent: Friday, June 24, 2005 5:25 AM
Subject: [PHP-DB] mysql check boxes


Dear Friends,

I have mysql database and php script.

Script pulls all the data with their serial number in html form, from
database however, I want each field pulled to be preceeded by a check box.

I created field in table and entered array for check boxes in php script,
still check boxes aren't displayed.at the same time rest of the data with
serial
number is displayed.

--
--
Php script

--
--
";
}
?>
---
mysql table structure
---
   Field TypeAttributes   NullDefault Extra
Action
id int(11)   No   auto_increment

checkbox char(2) BINARY   No []
emailvarchar(150)  No

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] mysql check boxes

2005-06-24 Thread Globalvoice101
Dear Friends,

I have mysql database and php script.

Script pulls all the data with their serial number in html form, from 
database however, I want each field pulled to be preceeded by a check box.

I created field in table and entered array for check boxes in php script, 
still check boxes aren't displayed.at the same time rest of the data with 
serial 
number is displayed.
--
--
Php script
--
--
";
}
?>
---
mysql table structure
---
     Field TypeAttributes   NullDefault Extra
Action   
 id int(11)    No    auto_increment 

 checkbox  char(2) BINARY   No  []      
 email    varchar(150)    No