No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
[php] <?php /* declar some relevant variables */ $Host = "localhost"; //location of mySQL on server $User = "michael"; //my username $Pass = "koolaide"; //my password $Name = "phpaccess"; //name of the database to be used $Table = "info"; //name of the table within the database mysql_connect ($Host, $User, $Pass, … |
|
Re:
Hello I want to pass the database retrieved username after user logs on & hence to check login correctness I am using php & jsp [code=php] <?php $conn= mysql_connect("localhost", "root", ""); if(!$conn){ exit("Error in SQL"); } mysql_select_db("college", $conn); $val1=$_REQUEST['login1']; $val2=$_REQUEST['password1']; $sql = "SELECT * FROM tlogin WHERE tid='$val1' AND tpasswd='$val2'"; … |