Jump to content

Dingbats

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Dingbats's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for your quick replies. I had tried (I just didn't mention it for brevity) checking for $_POST["submit"] and using name instead of id, but it never worked. Now, for some totally inexplicable reason, when I tried exactly the same thing again, it works. I'm amazed and confused. Thanks again, consider this solved.
  2. I have this form: <form action="index.php?loc=buy" method="POST"> <p><input type="text" id="email" value="Your e-mail address" /> <textarea id="message">What do you want?</textarea> <input type="hidden" id="submitcheck" value="1" /> <input type="submit" id="submit" value="Send" /></p> </form> At the top of the file, I'm checking to see if anything's been posted, I've tried both if (isset($_POST["submitcheck"])) and if (array_key_exists("submitcheck", $_POST)). Both always return false. var_dump($_POST) returns "array(0) { }". From a quick Google search I get the impression that this is probably some kind of problem with the configuration, and not the code. However, I'm completely lost when it comes to fixing it. I should mention that GET works fine. Any ideas?
  3. Yeah ok... but I put 'root' in the username field. What should I do instead?
  4. When I try to login to phpMyAdmin using the username 'root' and the password I have set for it, it fails and gives me this error: The weird thing is that my PHP scripts can connect to the database just fine, and I can login to MySQL from the command line without problems. I have reset the password from the command line several times without it changing anything. I have searched on the net around for a few days now, but haven't found anything that has helped me solve this problem. I'm running MySQL 5.0.38 and phpMyAdmin 2.9.1.1 on Ubuntu 7.04. Any help is very appreciated!
  5. I got help in another forum with this, so now it's solved. The thing was that I had to make a link that directs all accesses to /var/mysql/mysql.sock to point to /tmp/mysql.sock. Now it works and I'm happy! :)
  6. I've searched the forum for this but all threads with someone having this problem are basically just answered with "read [url=http://dev.mysql.com/doc/refman/5.0/en/can-not-connect-to-server.html]this[/url]". So I read that page thoroughly but it still doesn't solve my problem. So the thing is I'm trying to connect to the MySQL server with [code]$con = mysql_connect("localhost", "root", "");[/code] I get the error message "Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) in /Library/WebServer/Documents/dictionary/list.php on line 2". I'm on Mac OS X 10.4.8. The MySQL server is running. The socket file is in /tmp/mysql.sock, and /etc/my.cnf also points the socket to that folder, so it's weird that it says that it can't connect through /var/mysql/mysql.sock. When I change my.cnf to point the socket to the folder the error message says it should be in the MySQL server won't start. Can someone tell me something more useful than "read the manual" to help me solve this problem? Thanks a lot :)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.