Jump to content

query returns...empty


jimfog

Recommended Posts

I have a table, with one row in it, one of the columns is named bus_userstype this specific column at this specific row has a value of 1. I am trying to retrieve that value with the below query:

SELECT *FROM busines_usersWHERE bus_userstype =1

I am writing the above query not within a PHP script but from with PHPMyAdmin. The message I get though(from PHPMyAdmin) does not make sense:

MySQL returned an empty result set (i.e. zero rows). ( Query took 0.0005 sec )

How can it return an empty result set if there is a value of 1 as I mention above?

Link to comment
Share on other sites

Well...the query was wrong after all-its syntax I mean,the 1 had to be enclosed in quotation marks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...