Jump to content

cswells

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

cswells's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I just found this.... :'(
  2. $sql_check_e = "SELECT * FROM `tbl` WHERE `email`='".$email."'"; $res_check_e = mysql_query($sql_check_e) or die(mysql_error()); if(mysql_num_rows($res_check_e) == 0){ echo "The email you supplied does not exist, please regiester <a>here</a>\n"; }else{ $sql_password = "SELECT * FROM `tbl` WHERE `email`='".$email."' AND `password`='".md5($password)."'"; $res_password = mysql_query($sql_password) or die(mysql_error()); if(mysql_num_rows($res_password) == 0){ echo "Email or password is invalid"; }else { //at this point login is successful $user_data = mysql_fetch_array($res_check_e); <says error is here $username = $userdata['username']; setcookie($username,$email,time()+3600); I have the user login with Email and Password, but i want the Cookie to store the Username, and email. The error i get is "Notice: Undefined variable: userdata" Any help would be key. I am probably making a mistake thats right in front of me and yet don't get it.
  3. Ohh... found a good tutorial for chatroom http://css-tricks.com/jquery-php-chat/ if any one is interested.
  4. I am new to programming, but if i can find a tutorial i can figure most stuff out. What i want to do i cant quite find the resources i am looking for and i figure it will be a combination between 2 different things i quite know the name for. (i know i will need Pagination of some sort) What i want to do is set up a forum that works like a chat room, except the rooms would work like a fourm layout. <General Topic> <<more pacific>> <<<the room title>>> [chat room] I am not sure whether to use MySQL database to handle this or some other type of database. because i plan to have the rooms removed after they have been inactive when all users have left the room. i would also like the information to appear as the user is viewing it and not have to refresh. would this have to be a java-applet? or could i get the same effects with php and javascript?
×
×
  • 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.