Jump to content

Why This error in Linux Server????


chanchelkumar

Recommended Posts

<?php 
$usrid=$_GET['usrid'];
$sessionvar=$_SESSION['usid'];
connect_to_db();
$block="select * from cw_blocklists where blkd_userid=$sessionvar and blker_usid=$usrid";
$result=mysql_query($block)or die (mysql_error());
$rows=mysql_num_rows($result);

if($rows>0)
{
?>
<script language="javascript">
alert("You are a Blocked user");

history.go(-1);//for go to just back of the page 
</script>
<?php
//header ("Location:client/blocked_message.php");
}
else
{
**********my code goes here****

}

Try this

 

<?php 
$usrid=$_GET['usrid'];
$sessionvar=$_SESSION['usid'];
connect_to_db();
$block="select * from cw_blocklists where blkd_userid=$sessionvar and blker_usid=$usrid";
$result=mysql_query($block)or die (mysql_error());

if (mysql_num_rows($result)) {
{
?>
<script language="javascript">
alert("You are a Blocked user");

history.go(-1);//for go to just back of the page 
</script>
<?php
//header ("Location:client/blocked_message.php");
}
else
{
**********my code goes here****

}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.