Hey people how's it goin... I have a MAJOR PROBLEM... and would love for you experts to help me.. I know ur experts because I"ve been reading the posts...
Currently I'm trying to remove multiple rows of data with checkboxs and well... it's not working... 🙁 So I went out on the net and got some information on doing this... since I've got like more then a lil bit of PHP And SQL under my wing... butI still need help... here's the code Im using...
member.php:
<form name=sa_table_del action="list_delete.php" method=post>
echo "<td><input type=\"checkbox\" name=\"delete_list[]\" value=\"$listid\"></td></tr>";
echo "<tr><td colspan=2 align=center><input type=\"submit\" name=\"delete_list[]\" value=\"Delete\"></td></tr>";
delete_list.php:
$delete = "'" . implode( "', '", $delete_list );
$delete = substr( $delete, 0, ( strlen( $delete ) - 3 ) );
echo "$delete";
if(!($result = mysql_db_query($DB_CONNECT, "DELETE FROM SENT_ITEMS WHERE ID= '$delete'")))
{
DisplayErrMsg(sprintf("internal error %d:%s\n",
mysql_errno(), mysql_error()));
mysql_close($link);
exit();
}
Now here's the "CRAP" that I get back...
'', '', '', '', '', '', '', 'Del
Warning: MySQL Connection Failed: Access denied for user: 'ODBC@localhost' (Using password: NO) in d:\program files\apache group\apache\htdocs/list_delete.php on line 16
Warning: MySQL: A link to the server could not be established in d:\program files\apache group\apache\htdocs/list_delete.php on line 16
Fatal error: Call to undefined function: displayerrmsg() in d:\program files\apache group\apache\htdocs/list_delete.php on line 18
HELP ME PLEASE!!! I've read through the archives and I'm still stumped... Anymore information needed get ahold of me on AIM, I check it at 730pm EST... Thanks Alot! I hope someone can help me on this perdicament...