hello all,
I'm back.... I took a short break from my webpage because of the frustration factor that was following me around and starting to invade my dreams!!! You know its not good when all you dream about is errors popping up on your webpage.
So I'm back.
Again, this is my error. I cannot get this thing to connect.
Could not connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (46)
And I figured I'd throw up the code for the fun of it. 😉
<?php
$con = mysql_connect("localhost","misschristina95","someday");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}// Create database
if (mysql_query("CREATE DATABASE my_db",$con))
{
echo "Database created";
}
else
{
echo "Error creating database: " . mysql_error();
}// Create table in my_db database
mysql_select_db("my_db", $con);
$sql = "CREATE TABLE person
(
FirstName varchar(15),
LastName varchar(15),
Age int
)";
mysql_query($sql,$con);mysql_close($con);
?>
So if someone could tell me what I am doing wrong that would be soooo helpful to me. 🙂
Also, a webpage designer told me that I should look into something called joomla? So I downloaded it but it seems like just as much work as this php thing.... and since I've already started learning php I was wondering if it was worth my time to restart and learn joomla? Anybody use Joomla? Is it worth the time?
Thanks for your help,
Christina