LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-19-2004, 07:05 PM   #1
nro
Member
 
Registered: Oct 2003
Distribution: Mandrake 9
Posts: 46

Rep: Reputation: 15
PHP mysql_query not processing


I have what seems to be a very small problem, but what an annoyance.
I have a query line in the variable $finalQuery.

I have the following code:
Code:
$finalQuery = "INSERT INTO `manual` VALUES ('0', 'test', 'test');";
mysql_query($finalQuery);
print "Error: " . mysql_error();
The query is not processing and I am getting the following display on the web page:

Error: Query was empty

Any suggestions?

Thanks,
Mike
 
Old 09-19-2004, 09:43 PM   #2
Sadrul
LQ Newbie
 
Registered: Mar 2004
Distribution: Slackware 10.0 (K: 2.4.26)
Posts: 13

Rep: Reputation: 0
mysql-queries should not have semi-colons at the end when you execute them from php.

-- Adil
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Document processing youngri Linux - Software 2 01-18-2005 11:26 PM
Problem with DirectoryIndex and PHP not processing t3kn0lu5t Debian 5 12-02-2004 12:33 PM
mysql_query() Error ghight Programming 2 07-29-2004 02:20 PM
PHP - mysql_query won't work - no feedback! jimieee Programming 1 05-19-2004 05:29 AM
PHP.. not processing? digitaloutsider Slackware 2 04-29-2004 07:45 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration