| | |
MySQL Query Problem
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
This query doesn't work. What have I dont wrong?
Heres the whole page if it makes things clearer.
php Syntax (Toggle Plain Text)
mysql_query("INSERT INTO list (title, url, description) VALUES ('$title', '$addtolist', '$description') DELETE FROM spider WHERE url='$addtolist'");
Heres the whole page if it makes things clearer.
php Syntax (Toggle Plain Text)
<?php include('includes/config.php'); $addtolist = $_GET['add']; $open = file_get_contents($addtolist); $title = get_inner_string($open, '<title>', '</title>'); $description = get_inner_string($open, '<meta name="description" content="', '" />'); mysql_query("INSERT INTO list (title, url, description) VALUES ('$title', '$addtolist', '$description') DELETE FROM spider WHERE url='$addtolist'"); header('Location: moderation.php'); ?>
Try
php Syntax (Toggle Plain Text)
mysql_query("INSERT INTO `list` (`title`, `url`, `description`) VALUES ('$title', '$addtolist', '$description')"); mysql_query("DELETE FROM `spider` WHERE url='$addtolist'");
AJAX is not a programming language, scripting language or any other sort of language.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
![]() |
Similar Threads
- simple php/mysql query not working as I want it to (PHP)
- PHP/MySQL errors:-mysql_num_rows(): and mysql_fetch_array(): (PHP)
- PHP Variable in mySQL query (PHP)
- Double MySQL Query (PHP)
- MySQL++ query question (C++)
- MySQL query's (MySQL)
- MySql multiple table query problem.... (MySQL)
Other Threads in the PHP Forum
- Previous Thread: fitting image in image placeholder!help
- Next Thread: phploginform
Views: 426 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery js limit link login loop mail mediawiki menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql stored structure subdomain syntax system table tutorial update updates upload url validation validator variable video web xml youtube





