הרשם שאלות ותשובות רשימת חברים לוח שנה הודעות מהיום

חזור   הוסטס - פורום אחסון האתרים הגדול בישראל > עיצוב גראפי, תכנות על כל שפותיו וקידום ושיווק אתרים > פורום תיכנות

   
|!|

 
 
כלים לאשכול תצורת הצגה
Prev הודעה קודמת   הודעה הבאה Next
ישן 06-07-07, 12:36   # 3
ddd789
חבר בקהילה
 
מיני פרופיל
תאריך הצטרפות: Jun 2006
הודעות: 166

ddd789 לא מחובר  

זה הבעיה שמראה
PHP קוד:
Warningmysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/**/domains/***/public_html/log.php on line 13
bad 
וזה הקוד
PHP קוד:
<?
$link 
mysql_connect("localhost" "***" "**") or die(mysql_error()); 
mysql_select_db("***",$link) or die(mysql_error()); // Change "daniel_pool" 

$username strip_tags($_POST["username"]); // From form
$password strip_tags($_POST["password"]); // From form

$query mysql_query("SELECT * FROM `users` WHERE `username` = {$username} AND `password` = {$password} AND `level` = '1'"); // Select user details from database

mysql_real_escape_string($username); // Protect Query
mysql_real_escape_string($password); // Protect Query

$results mysql_num_rows($query); // Check the details (0 = no user/level 1, 1 = user with level 1)

if( $results )
echo 
"תודה אתה מחובר";
else
echo 
"פרטים שגוים";

?>
ניסתי את מה שאמרת לא הצליח
  Reply With Quote
 

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 


חוקי פירסום
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


כל הזמנים הם GMT +2. הזמן כעת הוא 02:23.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ