Jump to content

Raichu

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Raichu's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, back in March I tried to setup a webserver on my computer. Standard Apache, PHP and MySQL. The only problem was MySQL. Everytime I would try and user it, it would not do anything and say the following: So, I talked to some people I know at another forum and they sent me here: http://dev.mysql.com/doc/mysql/en/old-client.html That didn't work either so I finally just gave up. Well, I'd really like ot setup a server now... I'm using the latest version of MySQL 4.1, Apache 2, PHP 4.4 and PHPMyAdmin and it is still giving me that error! If you could, please tell me how to fix this. If you need more info, just ask, I will give it too yah. Thank you, Christopher
  2. No, I reccomend something like this: <?php mysql_connect("localhost", "user", "pass"); mysql_select_db(name of database); $verify = mysql_query("SELECT COUNT(*) AS number FROM member WHERE user=\'{$HTTP_POST_VARS[\'user\']}\' AND pass=\'{$HTTP_POST_VARS[\'pass\']}\'"); $result = mysql_fetch_array($verify); if( $result[\'number\'] < 1) { echo " Incorrect username or password"; exit(); } ?> Log in complete! Just edit the user pass and database name also edit the values for the name in your form
×
×
  • 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.