Jump to content
xisto Community

sylvanasp

Members
  • Content Count

    13
  • Joined

  • Last visited

About sylvanasp

  • Rank
    Newbie [Level 1]
  1. ty man ill never forget thisthanx to u i got an Awish u luck*cheeers
  2. ops ops opssry for triple postinsry bennet i changed setup.php in my document not in www folder it works like a charm thnx again
  3. Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\wamp\www\setup.php on line 10 Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\setup.php on line 11 Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in C:\wamp\www\setup.php on line 11 Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\login.php on line 33 Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in C:\wamp\www\login.php on line 33 Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\login.php on line 36 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\wamp\www\login.php on line 36 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\wamp\www\login.php on line 38 Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in C:\wamp\www\setup.php on line 16 --------------------------- my setup php is like this <?php// Open database connectionfunction opendb(){ global $mysqlconnection; // Input your database details here $confighost = 'localhost'; $configuser = 'root'; $configpass = '123'; $configdb = 'test'; $mysqlconnection = mysql_connect($confighost, $configuser, $configpass); mysql_select_db($configdb);}// Close database connectionfunction closedb($connection){ mysql_close($connection);}?>i used user name: admin and password : password to login
  4. OMGtytytytytytytytytytytytytytytytytytytytyur my heroooooooowoooooooowwww tanx for those great comments tooman i owe u alot
  5. i love u manu saved mei dont need it in 3-4 daysso take ur time,dont waste 10h in one day for mety ty ty ty ty ty tyi owe u BIG TIME
  6. THANX A BUNCH MAN,thank ufor the recordit doesnt matter anything,not even use md5 for coding passwordsjust a REALLY simple login page wit 3 account in data base,1user/1admin/1guestand wen each one of these 3 logedin they go to their main pageand a registration form to put first name,last name,username,pass to the DB as usersthen i think i can do the restand if u could make a page that have pictures NAME, that i have in C://wamp/www/images/ in itand a up load button too would be GREAAAAT FAVOR to meill owe u my passed exam after thisits not a problem if u dont make the upload thingur doing a HUGE favor tome for doing that access login page thing
  7. security isnt a problemand im not going to upload it to a web hosti just wana get it together and use WAMP to show it to my teacherhe just wana see if it works or not,then ill pass my examits not a FINAL university projectthose files i uploaded wer toooo pro for my project,and i couldnt find a simple one on then net thats why im here asking someone to help
  8. look at it this way:my DB tabels are firstname/lastname/username/password/ACCESSand this access tabel can get 3 diffrent int numbers 3for admins/2 for users/ 1for guestto 3 diffrent main pages and a registration form to add given data to DB firstname/lastname/username/password/i really need this for my projectbut cant find a rdy code about it on the net
  9. i had this login script,i lowerized its functions a little bitbut cant do more it too complicated for a newb like mecan some one help me delete the activation throu email codes in these files,and those extra fields on registration form and their DB's fields for me plz?all i want from this script is that i want to login wit 3 different user access
  10. this thing worth 12/20 of one of my final exams
  11. woooowww man thanx a bunch but these samples are tooo pro,our teacher will find out that i didnt wrote themi want a login page wit 3 access,admin,user,guestfor a simple news site,that each one can do different things wit a welcome user/admin/guest thinglike admin can add,view,delete,edit news and upload,view,delete in pic section guest can only view news/picusers can only view news and upload pics in gallery section and view picsUSING sessions for each and a logout button.if u know a sample look like this ill be so glad if u tell where to find?need a simple registeration too that only wants Fname , Lname , username , password to resgister users
  12. hey guys im new here and to this php and db codescan u guys help me do this little project of mine that needs:make a loginthan wen u put user and passdiffrent user TYPE see different pageslike if we have 3 access levels wat should i do?php codes DB codes
  13. hello huys im new here and to php and data base connections i have a question,i have this page as my login page >>> login.php <html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Login</title><link href="loginmodule.css" rel="stylesheet" type="text/css" /></head><body><p> </p><form id="loginForm" name="loginForm" method="post" action="login-exec.php"> <table width="300" border="0" align="center" cellpadding="2" cellspacing="0"> <tr> <td width="112"><b>UserName</b></td> <td width="188"><input name="UserName" type="text" class="textfield" id="login" /></td> </tr> <tr> <td><b>Password</b></td> <td><input name="password" type="password" class="textfield" id="password" /></td> </tr> <tr> <td> </td> <td><a href="Index.html"><input type="submit" name="Submit" value="Login" /></a></td> </tr> </table></form></body></html>how do i check user name and passwords to see if they are in my DB then it guide the user wit SESSIONS to the index page >>> index.php wat i need to do for that sry if im too noob i have username , password , first name , last name , ACCESS , uid , email tabels in my sql now another question is how to make different users to different index pages?
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.