Hello all, I was hoping someone has the answer to this for me. I currently have a php script that uses a username and password to connect to the MySQL Server as such:
$dbcnx = mysql_connect('localhost', $username, $password);
My question is this:
the value stored in $dbcnx, how can I pass the value in the following scenerio - After connecting to the MySQL server, I SELECT some data and present it as a <A HREF> like such:
<TD><A HREF="component.php?PID=1">Component</A></TD></TR>
Since the user is going to click on a HYPERLINK and is going to pass the PID=1 argument to the component.php script, is there a way to somehow also pass the $dbcnx variable to the component.php script as well?
It appears that <A HREF="component.php?PID=1&dbcnx=$dbcnx">Component</A> does not work. I get the PID=1 in my component.php by using $_GET["PID"], but I cannot get the value of $dbcnx. Is there another way to pass it as hidden with a HYPERLINK? Thanks in advance.