\n"; foreach ($line as $col_value) { print "\t\t\n"; } print "\t\n";
    }
    print "</table>\n";

    mysql_close($link);
?>

but the page comes back saying

"Can't connect to local MySQL server through socket /var/run/mysql/mysql.sock". this file does exist, it is in that location

can anyone suggest anything. a google search for that error statement just brings up loads of websites that have that error on the page :o(

thanks

_scott Received on Sat Nov 30 13:11:06 2002

Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

struggling with 3.2

From: scott <scott(at)sporticia.com>
Date: Sat Nov 30 2002 - 13:09:42 EST


hi

I've just installed a new i386 based OpenBSD 3.2 box, and I'm having some difficulties

I don't seem to be able to get apache/php and mysql to work together any more

I installed from the packages mysql server and client, and php4 core and mysql. I have used phpxs -s and then phpxs -a mysql, and it echoed that it had activated the mysql extension

I tried a test page to confirm funtionality with the following code (which works ok on my OpenBSD 3.1 box)

<?php

    $link = mysql_connect("localhost", "user", "password")or die("Could not connect");

    print "Connected successfully";
    mysql_select_db("mysql") or die("Could not select database");

Do you need help?X

    $query = "SELECT * FROM user";
    $result = mysql_query($query) or die("Query failed");

    print "<table>\n";
    while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {

        print "\t
$col_value
Do you need more help?X

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:31:48 EDT

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library