[PHP-DB] Connecting to more than 2 databases from a single PHP script.

2007-08-15 Thread Suamya Srivastava
Hello, In a single PHP code, I want to connect to two mysql databases with totally different authentication information. Is it possible? Right now snippet of my code looks something like this: Database . "\n"; } ?> However when I try to list all the databases in host2, it instead lists the datab

[PHP-DB] Passing variables to a PHP script on clicking a hyperlink

2007-08-23 Thread Suamya Srivastava
Hello, How can I pass variables on clicking a hyperlink to a PHP script? I have 5 hyperlinks, all pointing to the same PHP script. However, on clicking each hyperlink a different value of the variable needs to be passed to the PHP script. i.e. I have 5 databases from which I want to obtain inform

Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Suamya Srivastava
Thank you all for the help. I did not want to use dropdown box..that was the very reason i was wondering if I can pass the variables through a hyperlink. I used $_GET and it worked fine. However, as mentioned in the posts its not advisable to use $_REQUEST. Could you please elaborate on the reason?

Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Suamya Srivastava
use cookies. > session.use_cookies = 1 > session variable is saved here if the user have cookies turned off it will > still work if your have trans-sid turn on. > BTW you don't have to use a dropdown radio buttons or tick box will work > as > well > Johan > "&qu

[PHP-DB] Sending multiple values from a form having same field names.

2008-03-14 Thread Suamya Srivastava
Hi, How can I send multiple values from a form to be stored in a database, as name of the fields is the same? For example: "; } elseif ($datatype=="textarea") { echo ""; } echo ""; } ?> This creates a form with field names and text box or textarea box next to