I have 2 to 3 tables in MYSQL and otherthing is working fine but one issue is creating the problem.
When I'm closing the request from select row its showing database not selected.
Here is the code:
<a href="viewRequest.php?reqId=<?=$row_rsRequests['reqId'];?>&action=4" onclick="return confirm('Are you sure you want to close ?')">Close</a>
in Action code is:
if($_GET['reqId'] && $_GET['action']==4)
{
$sqlClose="update vnd_requests set status=4,updateBy='".$_SESSION['MM_Username']."',updateOn='".time()."',updateByIP='".getRealIpAddr()
."' where reqId=".$_GET['reqId'];
mysql_query($sqlClose, $myB2b) or die(mysql_error());
}