Code: Select all
$No=$_GET['cust']; //gets customer ID as $No
if(isset($_POST['Submit']))
{
$talbum=$_POST['txtalbumname'];
$Date=date("j-m-Y");
$sql=mysql_query("insert Into album(Name,Date,accountNo) values ('$talbum','$Date','$No') ") or die ("error in adding".mysql_error()); //stores $No in MySQL table
}Code: Select all
('$talbum','$Date','$No')Code: Select all
('$talbum','$Date','53')$No is storing the value correctly, I tried
Code: Select all
echo "$No";