php – delete title from sql database

<?php
//delete_from_sql
//Written by David Kull 07042008
require_once(“config.php”); //php file the contains host, user, pwd, table, database

$one =tiny_mce_marker

GET[‘MovieTitle’];

$linkID = mysql_connect($host,$user,$pwd) or die(“DK, I Could not connect to {$host}.”);
mysql_select_db($database, $linkID) or die(“DK, I Could not find database : {$database}.”);

echo (“Deleting {$one}.”);
$query = “DELETE FROM {$table} WHERE Title = ‘{$one}'”;
$resultID = mysql_query($query, $linkID) or die(“Data not found. {$table} {$title} “);
?>

Tags: , ,

Leave a Reply

You must be logged in to post a comment.

My Latest Video
Weather forecast in San Bernardino
My Photos on Pond 5
Royalty-Free Stock Video at Pond5
Posts
Speedtest 2014 B
Speedtest.net Mini requires at least version 8 of Flash. Please update your client.
Speed Test
Recent Posts
    Sponsers
    Your IP Info
    Login