Quote:
Originally Posted by bahaa12
!@%#&$ edit this string
you can ? no
because you dont know what it is.
|
hhhhh oky!
look here to see that's only verry easy for un coders !!!
i'm not php coder but it's easy as u will see
let me take example on this script
let's begain with index.php
PHP Code:
<?php
echo "
<form action='login.php' method='POST'>
<table border='1'>
<tr>
<td>Username:</td>
<td><input type='text' name='username'></td>
</tr>
<tr>
<td>Password:</td>
<td><input type='password' name='password'></td>
</tr>
<tr>
<td></td>
<td><input type='submit' name='submit' value='Login'></td>
</tr>
</table>
</form>
";
?>
Now u see (username) string !
in
PHP Code:
<input type='text' name='username'>
Now we finish looking in index.php let us go to login.php as we knowen from this line in index.php
PHP Code:
<form action='login.php' method='POST'>
Now $username is the relation ship between UserName and db of users
(We are take example on username only) so we edit username only
now login.php take it's info from
PHP Code:
require_once("include/Security.php");
require_once("include/sqlConn.php");
Security.php
&
sqlConn.php
let's back to login.php again
@
PHP Code:
$verifyAccount = mssql_num_rows(mssql_query("select * from TB_User where StrUserID = '$username' AND password = '$password'"));
So it's select from database TB_User table
PHP Code:
where StrUserID = '$username
now username will be store at StrUserID
So in TB_User
the column of username is StrUserID
Now if u have user name column named (ex : JID)
so u can change StrUserID to JID so it will be
PHP Code:
$verifyAccount = mssql_num_rows(mssql_query("select * from TB_User where JID = '$username' AND password = '$password'"));
-----------------------
Hah now look it's easy or not?
i think when u read my post u can edit any php script and u learn now how to edit in mints