justsomeguy Posted February 20, 2009 Share Posted February 20, 2009 This is strange:<!--submitted user name: submitted password: database user name: database password: -->It's not showing you what you type in? It should be printing the usernames and passwords that you typed and from the database, it's not printing that? Link to comment Share on other sites More sharing options...
masrawy Posted February 20, 2009 Author Share Posted February 20, 2009 so what is the wrong? Link to comment Share on other sites More sharing options...
masrawy Posted February 20, 2009 Author Share Posted February 20, 2009 is the code above write ?for index.php Link to comment Share on other sites More sharing options...
justsomeguy Posted February 20, 2009 Share Posted February 20, 2009 I thought so, but it's not. The names are incorrect. It should be this: echo 'submitted user name: ' . $_POST['login_username'] . "\n";echo 'submitted password: ' . $_POST['login_userpass'] . "\n";$result = mysql_query("SELECT * FROM hgi_member WHERE member_name='عمرو'") or exit(mysql_error());if ($row = mysql_fetch_assoc($result)){echo 'database user name: ' . $row['member_name'] . "\n";echo 'database password: ' . $row['member_pass'] . "\n";} It should be "login_username" and "login_userpass" instead of "username" and "password", and "member_name" and "member_pass" for the database. Link to comment Share on other sites More sharing options...
masrawy Posted February 20, 2009 Author Share Posted February 20, 2009 this is the sourse i gotsubmitted user name: ط¹ظ…ط±ظˆsubmitted password: 123456database user name: عمروdatabase password: 123456 Link to comment Share on other sites More sharing options...
justsomeguy Posted February 23, 2009 Share Posted February 23, 2009 OK, that's why it's saying the username wasn't found. Try using utf8_encode when you get the username and password. e.g.:echo 'submitted user name: ' . utf8_encode($_POST['login_username']) . "\n";echo 'submitted password: ' . utf8_encode($_POST['login_userpass']) . "\n"; Link to comment Share on other sites More sharing options...
masrawy Posted February 23, 2009 Author Share Posted February 23, 2009 submitted user name: أکآ¹أ™آ…أکآ±أ™آˆsubmitted password: 123456database user name: عمروdatabase password: 123456this is the source dcode sir Link to comment Share on other sites More sharing options...
zachary Posted February 23, 2009 Share Posted February 23, 2009 sir maybe you should send him the script... and a copy of the SQL Link to comment Share on other sites More sharing options...
masrawy Posted February 23, 2009 Author Share Posted February 23, 2009 this is data base encodelatin1_general_ci Link to comment Share on other sites More sharing options...
masrawy Posted February 23, 2009 Author Share Posted February 23, 2009 sure i can send the script and copy of sql sir how can i send itcan i put it in rapidshar and put the linke her ? Link to comment Share on other sites More sharing options...
justsomeguy Posted February 23, 2009 Share Posted February 23, 2009 You may want to check here for help with the text issue:http://www.al-shamaa.com/php/arabic/ Link to comment Share on other sites More sharing options...
masrawy Posted February 23, 2009 Author Share Posted February 23, 2009 they don't help sir Link to comment Share on other sites More sharing options...
masrawy Posted February 23, 2009 Author Share Posted February 23, 2009 and they give us help with money Link to comment Share on other sites More sharing options...
justsomeguy Posted February 23, 2009 Share Posted February 23, 2009 I'm sorry, I don't think I can help you with this, I have never worked with Arabic text before. It would probably go quicker if you could find someone to help who has experience working with Arabic text. The site I linked to does have free classes to use to work with Arabic text between PHP and MySQL. Link to comment Share on other sites More sharing options...
masrawy Posted February 23, 2009 Author Share Posted February 23, 2009 mkae the code with php maker sir and i rty with the arabic user i login but the outprint name not arabic Link to comment Share on other sites More sharing options...
masrawy Posted February 24, 2009 Author Share Posted February 24, 2009 the rabic encode is cp_1256 Link to comment Share on other sites More sharing options...
masrawy Posted February 24, 2009 Author Share Posted February 24, 2009 i think the problem is incoding Link to comment Share on other sites More sharing options...
justsomeguy Posted February 24, 2009 Share Posted February 24, 2009 I'm sure it probably is, but I don't know the solution. Link to comment Share on other sites More sharing options...
masrawy Posted February 24, 2009 Author Share Posted February 24, 2009 what does it mean whene i use php maker progrme with the data base i loged in corect Link to comment Share on other sites More sharing options...
justsomeguy Posted February 24, 2009 Share Posted February 24, 2009 What PHP maker program? Link to comment Share on other sites More sharing options...
masrawy Posted February 24, 2009 Author Share Posted February 24, 2009 http://www.hkvstore.com/phpmaker/this is php maker Link to comment Share on other sites More sharing options...
justsomeguy Posted February 24, 2009 Share Posted February 24, 2009 OK, I've never used that before. What are you asking me about it? Link to comment Share on other sites More sharing options...
masrawy Posted February 24, 2009 Author Share Posted February 24, 2009 can i put he loginpage i make with Link to comment Share on other sites More sharing options...
justsomeguy Posted February 24, 2009 Share Posted February 24, 2009 I don't know what you're asking, if it's a question about the PHP Maker software you'll probably need to ask them. Link to comment Share on other sites More sharing options...
masrawy Posted February 25, 2009 Author Share Posted February 25, 2009 this is arabic characterset character_set_server='cp1256';set names cp1256; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.