Search
Left Quote    It is possible to store the mind with a million facts and still be entirely uneducated.
- Alec Bourne    
Right Quote
 
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply


        Viewing Topic: Warning: mysql_num_rows( ): supplied argument is not a valid
  This user is offline  putra
  Subject: "Warning: mysql_num_rows( ): supplie..." Posted: @ 4:33 am on Dec 29 2005   
Member #: 126
Rank: User - (2)
Since: 12/29/05
Posts: 2

hello...
friends, i need your help...
i have create web using php and uploaded already..
but i get error when try to access the other page from login page...
for your information i use the correct username(bio_no tentera)
& password(bio_pa ss)..

<<sample code>>

<?php require_once('C onnections/inta ke.php'); ?>
<? session_start() ;

if (isset($HTTP_PO ST_VARS['bio_no tentera']) && isset($HTTP_POS T_VARS['bio_pas s']))
{
// if the user has just tried to log on
$bio_notentera = $HTTP_POST_VARS ['bio_notentera '];
$bio_pass = $HTTP_POST_VARS ['bio_pass'];
include 'dbase.php';

$query = "SELECT * FROM biodata
WHERE bio_notentera = '$bio_notentera '
AND bio_pass = '$bio_pass'&quo t;;

$result = mysql_db_query( 'intake',$query );

if ( mysql_num_rows( $result) > 0 )
{
include 'intake.php'; // if they are in the database register the user id
$HTTP_SESSION_V ARS['valid_admi n'] = $bio_notentera;
}

if ( isset($HTTP_SES SION_VARS['vali d_admin']))
{
echo "<scrip t language='Javas cript'>
location.href =
'maklumat_diri4 .php?bio_notent era=$bio_notent era';
</scrip t>";
}

}
?> Bold Text Here


    Viewed: 2,997 Times | Reply to This | To top
Viewing Page: 1 of 1



You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank