[PHP] mysqli_connect problem
I am a newbie. The following script works but the second one (below) loads the variables from an html form and then fails. The connection commands in the second sript are identical as the first script was copied from the first. Only the variable values have been changed. #!/usr/bin/php # The following program successfully loads the variables from an html form and then fails. The echo entries confirm the variables a have been loaded from an html form. The program just stops after the echo entries - no die message, nothing in /var/log/mysql.err or mysql.log. My system is Debian Squeeze, 64 bit. I have php5 version 5.3.1-5, php5-mysql version 5.3.1-5, mysql-client-5 and mysql-server-5 version 5.1.41-3 installed. Any suggestions? Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mysqli_connect problem
I am a newbie. The following script works but the second one (below) loads the variables from an html form and then fails. The connection command in the second sript are identical as the first script was copied from the first. Only the variable values have been changed. #!/usr/bin/php # The following program successfully loads the variables from an html form and then fails. The echo entries confirm the variables a have been loaded from an html form. The program just stops after the echo entries - no die message, nothing in /var/log/mysql.err or mysql.log. I believe the problem is a permissions problem. I had to make the first script executable so of course I also made the second executable but this did not help. My system is Debian Squeeze, 64 bit. I found I had to install php5-mysql to use the mysqli_connect command. Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php