Hi,

I think that your problem is because you do not enter your root MySQL password in your 
connection to it.
$db = mysql_connect("localhost", "root");
Try with this:
$db = mysql_connect("localhost", "root", "your_root_mysql_password") or die("Could not 
connect: " . mysql_error());


Best Regards,
Boris Penchev
----- Original Message ----- 
From: "Tyler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 2:21 AM
Subject: MySQL-PHP-Apache2


> Hey.. I've got a wierd problem.  I'm following the guide as per WebMonkey
> which has worked for me before, when I ran my servers on a Win32 box, but
> now I've got this problem (running linux)...
> 
> I cant seem to do any editing to my DB from the webpage.  I've used a couple
> different scripts, confirmed the right user/pass/sock but everytime I try
> the script, nothing happens in my DB, I cant delete, add, nor edit via the
> page.
> 
> p.s. if anyone knows about the 'configure' command to most progs, before you
> comple, coudl you email me in private? I"m trying to re-configure my PHP to
> have mysql support, however I'm not sure how to do it.  I've already built
> it.  could this be the problem?
> 
> heres a script I used to enter data, to no avail:
> 
>                     <?php
>                     if ($submit) {
>                       // process form
>                       $db = mysql_connect("localhost", "root");
>                       mysql_select_db("mydb",$db);
>                       $sql = "INSERT INTO employees
> (first,last,address,position) VALUES
> ('$first','$last','$address','$position')";
>                       $result = mysql_query($sql);
>                       echo "Thank you! Information entered.\n";
>                         } else{
>                       // display form
>                          ?>
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to