It doesn't all quite work yet. I have created a MYSQL databse and in it..a Table with 3 fields. I am especially proud that I found how to do an AutoNumber on its key field.....check the nearly invisible box that says AutoIncrement....
I have got PHP running as well, I made a PHP page that delivered "HELLO WORLD" as a web page after two days before I learned it has to be in a specified MySQL folder.
Anyway, after another educational week, I still cannot connect PHP to MYSQL, I have searched the internet for all like problems and have followed lots of instructions and advice and have modified PATHS and ini files and all sorts but..still no connection! I would be so glad for some help from an experienced solver of nightmares.
Thanks again
I attach a pic of the PHP config info....the php.ini file IS in the 'Windows' folder neverthless will not register.
Code: Select all
<?php
$link = mysql_connect('localhost:3306', 'root','pass');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
?>
This error is raised:
Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\testconnect.php on line 2
And this jpg describes the state of PHP.
Thanks again,
Zocker