If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > help with phpmyadmin and mysql

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-03-09, 18:00
siddmon siddmon is offline
Registered User
 
Join Date: May 2009
Posts: 2
help with phpmyadmin and mysql

i create a database in mysql and when im trying to browse the content i get this error

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2
SELECT *
FROM `example`
LIMIT ,


i get this error in all the tables that i have created before.

if someone knows how to solve, please post the solution

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 05-03-09, 19:45
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
Quote:
Originally Posted by siddmon
LIMIT ,
there's your error right there

the correct syntax requires one or two numbers --
Code:
LIMIT [offset,] row_count
so, for example, you could have LIMIT 4 to return 4 rows, or LIMIT 9,37 to return 37 rows after skipping 9

but LIMIT , is invalid syntax

get it?

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 05-03-09, 21:06
siddmon siddmon is offline
Registered User
 
Join Date: May 2009
Posts: 2
thaks for your answer

but how i can solve that

i'm not writing the query, when i click in the browse of the table to view the content, phpmyadmin create that query and show the error
Reply With Quote
  #4 (permalink)  
Old 05-03-09, 21:39
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,260
so write your query to do waht you want

because you are using PhPMyAdmin you are havinbg problems

to start with try select * from mytable
..or wahtever your table is called
try using a query tools such as heidi SQL, or MySQL Query browser (available form MySQL as a free download

if i remember correctly on the PHPMyAdmin table admin page there is a box which allows you to limit the number of records..set the value to say 999999 ad see what happens, or set it to 25.......
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On