|
||||
do you have any script that written properly cause i'm new in php...
__________________
<embed src="http://www.geocities.com/paranoidz02/new.swf" WIDTH=400 HEIGHT=55 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>® |
|
||||
Quote:
the error refer hereprintf("Successfully Logged In!<a href="report/report.php?">Click Here</a>");
__________________
<embed src="http://www.geocities.com/paranoidz02/new.swf" WIDTH=400 HEIGHT=55 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>® |
|
||||
<?php
function print_form() { ?> <form action="chk_pass.php3" method="post"> <h3>Please Login</h3> Username : <input type="text" name="user_name"> Password : <input type="password" name="user_pass"> <input type="submit" name="submit" value="login"> </form> <? } if(isset($submit)); if(!$db = mysql_connect("localhost","root")): print("<h1>Database Connection Failed</h1>\n"); else: mysql_select_db("users",$db); endif; $sql = "select * from users where user_name = '$user_name'"; $result = mysql_query($sql); $row_count = mysql_num_rows($result); if($row_count == 0): ?> <h3>Wrong Username</h3> <? print_form(); else: $row = mysql_fetch_array($result); if($password != $row["user_pass"]): ?> <h3>Invalid Password</h3> <? print_form(); else: ?> <h3>Password Accepted</h3> <? endif; endif; else: <---------------------error asyik kat sini... print_form(); endif; ?> aku modified script tu kasik lowert skit...n dapat error nie...
__________________
<embed src="http://www.geocities.com/paranoidz02/new.swf" WIDTH=400 HEIGHT=55 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>® |
|
||||
PHP Code:
camner nie ye
__________________
<embed src="http://www.geocities.com/paranoidz02/new.swf" WIDTH=400 HEIGHT=55 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>® Last edited by paranoidz; 12-05-2004 at 10:37 AM. |
|
||||
PHP Code:
__________________
<embed src="http://www.geocities.com/paranoidz02/new.swf" WIDTH=400 HEIGHT=55 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>® Last edited by paranoidz; 12-05-2004 at 12:59 PM. |
|
||||
did u mean like this...i try 1st...if still cannot i give my other script but i need to do a cookies for this script n it did not work as i wanted...tomorrow i post it here... PHP Code:
|












, like this