MySqlTalk.com  

Go Back   MySqlTalk.com > Programming Languages and MySQL > PHP
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread
Old 10-09-2004, 06:50 AM   #1
coolest
Junior Member
 
Join Date: Oct 2004
Posts: 1 coolest is on a distinguished road
SQL Syntax Near Error

Hi guys,

I have this problem on my php script.

Quote:
Could not query You have an error in your SQL syntax near '' at line 1

But the line 1 is only <?php>...

anybody had encountered this problem before?

thanks
coolest is offline   Fork this post Reply With Quote
Old 10-20-2004, 02:01 PM   #2
Azkaban
Senior Member
 
Join Date: Jul 2004
Posts: 167 Azkaban is on a distinguished road
Re: SQL Syntax Near Error

That doesn't look right to me. Should be

<?php

?>

Also, when testing out if programs are working well it's nice to first compile, as above. Then try output

<?php
echo "hello world";
?>

then input

<?php
//From url expecting http://url.com?var=yournamehere
echo "hello $var";
?>
Azkaban is offline   Fork this post Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is th error caupena Java 4 04-30-2005 06:21 AM
error 1064 ?? Louppy General 10 02-25-2005 01:36 PM
Error on my Message Board toprobroy General 4 02-07-2005 05:29 PM
Help w/SQL syntax awdang99 SQL syntax 4 11-09-2004 01:50 PM
Learn how to migrate MS SQL to MySQL through an easy-to-use GUI tool NavicatGuy Articles 0 09-06-2004 04:33 AM



All times are GMT -4. The time now is 07:03 PM.



Powered by: vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Google
  Web http://www.mysqltalk.com
DISCLAIMERS:
1. We have no commercial interest in this site.
Banner Ads and Subscriptions will only be used to help pay for hosting and maintenance costs.
2. MySQLTalk.com is NOT affiliated with MySQL AB in any way.
3. MySQLTalk.com is NOT endorsed by MySQL AB in any way.
4. Please do not post any content that is harmful to MySQL or MySQL AB, meaning no misleading or obsolete information will be tolerated.
Well-founded constructive criticism meant to help the community is permitted.
5. This website is founded with the goal of improving the MySQL community.
We not only tolerate newbies, we encourage them.
Please do not ask newbies to "read the manual".