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 > simple query code with if statement

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-06-09, 11:19
hscorp hscorp is offline
Registered User
 
Join Date: Mar 2009
Posts: 11
simple query code with if statement

what i need
i got field in the database with 0 or 1 content

what i want is simple code

if 0 do nothing if 1 make a redirect

in php page
Reply With Quote
  #2 (permalink)  
Old 11-06-09, 12:07
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,258
is this...
a MySQL problem?
or
a PHP problem?
or
an HTML problem?

what are you struggling with

getting the value from the db and working out what to do
writing the appropriate PHP code
or understanding how to redirect to another HTML/PHP page.
__________________
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