Quantcast

Creativebits.org

an All Creative World site
Kyle's picture
8 pencils

mySql craziness

Well, I'm new here, I dont know exactly what these forums are supposed to be used for, but anyway... I'm making this little minisite, and I have a little snip of code goes like this ' SELECT count(*) FROM Deluxe WHERE ManagerID=5 ' and it will not work. if I change the 5 to a 1, it easily counts them. If it goes back to 5, it wont count the '5' ones, even though in the database there are clearly rows with ManageriD of 5... I don't understand at all. Its like it doesnt even exist . When I use the same php in the phpmyadmin sql, it returns exactly how I want it.. I dont understand at alll?? any ideas?

Commenting on this Forum topic is closed.

Juice10's picture
21 pencils

did you do this:
mysql_qeury("SELECT count(*) FROM Deluxe WHERE ManagerID='5'") or die (mysql_error());

cause you should get an error if there is something wrong, if not then you should double check that Deluxe has entrys with ManagerID of 5

Creativebits is a blog about creativity, design and Macs. We also have a critique section where you can post your work to get opinions and a forum to discuss any design related topics.

Recommend us on Google

Latest critique

  • Butterfingers ad campaign
  • Critique for my logo

Marketplace