Mysql Table Problems :(

Started on the old forum in March 2007 · view the original in the archive · old links redirect here

4 replies · 709 views · started 19 years ago · 1 min read

Guest #1

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 .....External image (may be gone) //////////////////// 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&amp;id=$id&amp;pass=$pass&amp;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) External image (may be gone) I m Confused to much. Plz I really need help abt this problem

//////////////////////////////// Thanks ya all in Advance //////////////////////////////

Guest #3

I believe i have helped you, or d'you need further assistance? @ Most Wanted

RegulasAKi #4

I believe i have helped you, or d'you need further assistance? @ Most Wanted

I m ALSO FACING PROBLEMS WID THIS SQL TABLES WHT SHUD BE DONE ABT THAT SHUD I POST THE ERROR CODES HERE WILL U PPL HELP ME ..

Zombie #5

Look at the script carefully,If its not showing created successfully that means the code/query in the if statement never executed.This error can be due to the fact that the $name never got posted to the query part External image (may be gone) as it needs $name=name of room which you want to delete to execute

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close