ziedinjsh Posted August 22, 2009 Report Share Posted August 22, 2009 (edited) Sveiki, Lgon sistēmā pie config.php faila ir: $config_username = 'demo'; $config_password = 'demo'; Ielogoties tikai var ar username:demo password:demo kā varētu viņu piesaistīt pie mysql un lai viņš lāsītu no mysql lai var ielogoties ar email un pass ? Pie attachments ir visi faili :) login.zip Edited August 22, 2009 by ziedinjsh Quote Link to comment Share on other sites More sharing options...
Indian Posted August 22, 2009 Report Share Posted August 22, 2009 kas tieši nav skaidrs? pats mēģināji kaut ko uztaisīt? neviens bezmaksas neko netaisīs tavā vietā. $sql = sprintf("SELECT * FROM users WHERE user = '%s' AND pass = '%s'",$user,$pass); if (mysql_num_rows(mysql_query($sql)) > 0) $logged_in = 1; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.