ravi L
2011-07-02 23:15:39 UTC
Suppose the Link 1. sends the Parameter "Rose" and link 2. sends the parameter "Mango". now whats going on, when i click on link 2. it works fine the Mango goes as a parameter and value got saved, but when i click on the First link then it also sends the parameter "Mango" while it should send the "Rose", now it doesn't matter what link i click, it just sends only one parameter and that is "Mango". Can anybody pls tell me what i m doing wrong.
Pls help me in this i wasted a long time................... on this puzzle.
The Code is shown below-
--------------------------------------------------
PHP FUNCTION---->
function ChangeSaveDefaultView($NewView)
{
$con = mysql_connect("localhost","root");
mysql_select_db("filehost", $con);
$users = $_SESSION['MM_Username'];
$sql = "update useraccounts set useraccounts.DefaultView ='$NewView' where useraccounts.Email='$users'";
if (!mysql_query($sql,$con)){
die('Error: ' . mysql_error());}
mysql_close($con);
}
--------------------------------------------------------------------------------------------------------------
Hyper Link 1.
-------------------------------------
">
Hyper Link 2.
-------------------------------------
">