Im in need of a lil help here.
atm ive been learning up with php and sql, tho im stuck with the connection between allowing to delete.
i went on a google hunt and found this:
Im looking for something like that, tho with a form which shows all the ID,s and titles with a tick box next to them. so its easier to delete them without having to keep changing it an uploading via ftp then going to the script.PHP Code:<?PHP
$dbuser="gamer_simple";
$dbpass="*******";
$dbname="gamer_simplephp"; //the name of the database
$chandle = mysql_connect("localhost", $dbuser, $dbpass)
or die("Connection Failure to Database");
mysql_select_db($dbname, $chandle) or die ($dbname . " Database not found. " . $dbuser);
$mainsection="forum_question"; //The name of the table where web links are stored
$idno=1;
$query1="delete from " . $mainsection . " where id = " . $idno;
mysql_db_query($dbname, $query1) or die("Failed Query of " . $query1);
echo "Forum Question with ID " . $idno . " has been deleted as requested.<br>";
?>
ive posted here before and u didnt let me down. i hope this trip is the same![]()



Reply With Quote


Bookmarks