There was a problem with the tutorial I was using, I found this test script for just testing if the MySQL connection works. I then just kept adding components until it was usefull[php]<?php $link = mysql_connect
('localhost','r oot','mysecretp assword');
if (!$link) {
die ('Could not connect to MySql: ' . mysql_error() );
}
echo 'Connection you little beauty it works;'
mysql_close($li nk);
...
User Profile
Collapse
-
onclick event - post and execute function?
I have a page that I want to collect some simple data to send to a MySQL database, and execute a javascript function on the page. At the moment it works - but only with 2 buttons - one button's onclick event starts the function, and the other button 'posts' the data. Does anyone know what code will start a function and post data to the MySQL server in the one hit? -
http 500 internal server error - installation problem only on MySQL
Can anyone help.
I try to run a simple MySQL script within PHP on my computer using it as a local host - and I keep getting http 500 internal server error. My computer will run the php script if I take out the MySQL instructions.
I have set up my computer with php 5.2.5, Apache 2.0.63, MySQL 5.0. I can access all the files under locahost and it can run php scripts - so Apache and php must be OK. I can run MySQL from...
No activity results to display
Show More
Leave a comment: