I have Old WAP chat script of 2wap.net and everything is working fine... but some SQL tables not working like when I use Admin Panel to Create/Delete Rooms and like some other options .....
//////////////////// HERE is Part from Admin.php ///////////////////////
case 'delroom':
if(empty($act)) {
print $lang['room']."
<select name=\"name\">";
$q = @mysql_query("select * from `".$px.$stable."` where mod='room';");
while ($dbdata = @mysql_fetch_array($q)) {
print "<option value=\"".$dbdata['var']."\">".$dbdata['val1']."</option>"; }
print "</select>
<anchor>".$lang['delete']."<go href=\"?act=del&id=$id&pass=$pass&mod= $mod\" method=\"post\"><postfield name=\"name\" value=\"$(name)\"/></go></anchor>
";
} else {
//¤¥« ¥¬ § ¯à®á ¢ ¡¤
if(@mysql_query("delete from `".$px.$stable."` where var='$name' and mod='room';")) print $lang['done'];
}
break;
////////////////////////////////////////////////////////////////////////
This part working fine in my Local Web server(I m using PhpDev) but this part not showing Created room to delete in Online WEB SERVER(http://wap.karachione.net)Hosted by (http://netfirms.ca) I m Confused to much.
Plz I really need help abt this problem
////////////////////////////////
Thanks ya all in Advance
//////////////////////////////
//////////////////// HERE is Part from Admin.php ///////////////////////
case 'delroom':
if(empty($act)) {
print $lang['room']."
<select name=\"name\">";
$q = @mysql_query("select * from `".$px.$stable."` where mod='room';");
while ($dbdata = @mysql_fetch_array($q)) {
print "<option value=\"".$dbdata['var']."\">".$dbdata['val1']."</option>"; }
print "</select>
<anchor>".$lang['delete']."<go href=\"?act=del&id=$id&pass=$pass&mod= $mod\" method=\"post\"><postfield name=\"name\" value=\"$(name)\"/></go></anchor>
";
} else {
//¤¥« ¥¬ § ¯à®á ¢ ¡¤
if(@mysql_query("delete from `".$px.$stable."` where var='$name' and mod='room';")) print $lang['done'];
}
break;
////////////////////////////////////////////////////////////////////////
This part working fine in my Local Web server(I m using PhpDev) but this part not showing Created room to delete in Online WEB SERVER(http://wap.karachione.net)Hosted by (http://netfirms.ca) I m Confused to much.
Plz I really need help abt this problem
////////////////////////////////
Thanks ya all in Advance
//////////////////////////////
Comment