Jump to content

Kaisuo

Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Kaisuo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. its just me, I\'m not too familar with: COUNT(*) AS number Is there any tutorial or references on mysql_query as in stuff like SELECT COUNT FROM WHERE .... Stuff like that? Could be really useful for me.
  2. [php:1:1d5cc4ec0c]<?php checkuser($user,$pass) { $conn = mysql_connect($conn_host, $conn_user, $conn_pass) or die(mysql_error()); $checked = mysql_query(\"SELECT * FROM katima_members WHERE username = \'$user\' AND password = \'$pass\'\"); if($checked) { $checking == \"ok\"; } else { $checking == \"error\"; } mysql_close($conn) return $checking; } ?>[/php:1:1d5cc4ec0c] Would this return \"ok\" if the user is in the database and the username and password are correct?
×
×
  • 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.