franciccio wrote:
Eve Atley ha scritto:
Platform: Redhat Linux Enterprise WS 3
PHP installed: 4.3.2
MySQL installed: 4.0.21
Apache installed: 2.0.46
When setting up PhpMyAdmin today, I got the error:
Cannot load mysql extension,
Please check PHP configuration
My phpinfo() shows:
Lots of people told me about the quote issue. Thanks!
One more thing, how do you encrypt a string into the password. In the
mysql database it is interperated as a password, so it is a different
combination than the actual password. How do I do this in php?
--
PHP Database Mailing List
I have a form that display's a checkbox if the value is NULL. The form
is in a do... while loop, so the user may check multiple checkboxes.
I am trying to pass the variable of each checkboxes to an update
statement in MySQL. THe problem is I am only getting one of the
checkboxes, even if all
Probably all you need to do is name your checkboxes as an array thusly:
name=completed[]
Then you can access the array on your update page and do whatever you wish
with it.
Hope this helps.
Rich
-Original Message-
From: Craig Hoffman [mailto:[EMAIL PROTECTED]
Sent: Friday, January 21,
I've tried that and it still doesn't bring over the other checkboxes
that have been checked. Plus when I echo it out I get
Array instead of the variable name.
On Jan 21, 2005, at 3:14 PM, Hutchins, Richard wrote:
Probably all you need to do is name your checkboxes as an array thusly:
You can't just echo out an array. You have to either use print_r() or
iterate over it with a while or for...next loop. But if you just want to see
what's in the array, print_r() it.
As to why it doesn't bring over the other checkboxes...
If you have (pseudocode)
html
form name=myform method=post
women/girls deserve a little more leaway when entering this little
world. if only because men have been jacking them around for the last
5000 years - which has only brought us war religion ;-)
ROTFL!! Too funny. :)
I got the issue somewhat resolved. I was being a slacker and wanted to
Eve Atley wrote:
women/girls deserve a little more leaway when entering this little
world. if only because men have been jacking them around for the last
5000 years - which has only brought us war religion ;-)
ROTFL!! Too funny. :)
thanks. :-)
I got the issue somewhat resolved. I was being a
Great - Thanks. That worked fine. Now the next question. ;)
How can I update MySQL with the array values I just generated?
Basically if you checked two checkboxes, that represents two rows in
MySQL. How can I update those two rows in the DB?
code snippet
Array: Array ( [0] = Done (completed)