okay this is what comes up
Notice: Undefined index: db_host in /homepages/34/d167972958/htdocs/here/connect.php on line 3Notice: Undefined index: db_user in /homepages/34/d167972958/htdocs/here/connect.php on line 3Notice: Undefined index: db_pass in /homepages/34/d167972958/htdocs/here/connect.php on line 3Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /homepages/34/d167972958/htdocs/here/connect.php on line 3Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
this is my connect page
<?php$db = mysql_connect ($_POST['db_host'], $_POST['db_user'], $_POST['db_pass']) or die(mysql_error());if(!$db)die("no db");if(!mysql_select_db ($_POST['db_name'],$db))[quote][/quote]die(mysql_error());if(!get_magic_quotes_gpc()){$_GET = array_map('mysql_real_escape_string', $_GET);$_POST = array_map('mysql_real_escape_string', $_POST);$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);}else{$_GET = array_map('stripslashes', $_GET);$_POST = array_map('stripslashes', $_POST);$_COOKIE = array_map('stripslashes', $_COOKIE);$_GET = array_map('mysql_real_escape_string', $_GET);$_POST = array_map('mysql_real_escape_string', $_POST);$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);}mysql_query("CREATE TABLE forumtutorial_posts (postid BIGINT(20) NOT NULL AUTO_INCREEMT,author VARCHAR(255) NOT NULL default '',title VARCHAR(255) NOT NULL default '',post MEDIUMTEXT NOT NULL,showtime VERCHAR(255) NOT NULL default '',realtime BIGINT(20) NOT NULL default '0',lastposter VARCHAR(255) NOT NULL default '',numreplies BIGINT(20) NOT NULL default '0',parentid BIGINT(20) NOT NULL default '0',lastrepliedto BIGINT(20) NOT NULL default '0',PRIMARY KEY (postid)");$result = mysql_query($query);echo "Table Created!"; ?>
Xamppive tried twice to install this and had some kind of error each time..Okay i just installed Xampp and i got an error with apache
could you help me figure out what to do?