GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   MySQL question (https://gfy.com/showthread.php?t=598801)

poe 04-16-2006 06:04 PM

MySQL question
 
i am displaying the contents of a database on my site..

now i would like to tell my script to only display data if the value of one of the rows is 1, and not 0.

is that doable?

thanks! :thumbsup

poe 04-16-2006 06:04 PM

to only display that entry if the value in the "approve" row is 1

i-Affiliate_com 04-16-2006 06:06 PM

select [fieldlist] from [tablename] where fieldname = 1

poe 04-16-2006 06:09 PM

wow, that was easy :)

thanks dude!

poe 04-16-2006 06:46 PM

another question:

how do i display the total number of entries in a table? (e.g. 340)

poe 04-16-2006 06:50 PM

figured it out!


All times are GMT -7. The time now is 12:45 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123