Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-16-2006, 06:04 PM   #1
poe
Confirmed User
 
Join Date: Mar 2004
Posts: 455
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!
__________________
poe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2006, 06:04 PM   #2
poe
Confirmed User
 
Join Date: Mar 2004
Posts: 455
to only display that entry if the value in the "approve" row is 1
__________________
poe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2006, 06:06 PM   #3
i-Affiliate_com
So Fucking Banned
 
Join Date: Apr 2006
Posts: 181
select [fieldlist] from [tablename] where fieldname = 1
i-Affiliate_com is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2006, 06:09 PM   #4
poe
Confirmed User
 
Join Date: Mar 2004
Posts: 455
wow, that was easy

thanks dude!
__________________
poe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2006, 06:46 PM   #5
poe
Confirmed User
 
Join Date: Mar 2004
Posts: 455
another question:

how do i display the total number of entries in a table? (e.g. 340)
__________________
poe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2006, 06:50 PM   #6
poe
Confirmed User
 
Join Date: Mar 2004
Posts: 455
figured it out!
__________________
poe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.