Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
If statement support.
Old 11-10-2007, 01:10 PM If statement support.
Red_X_'s Avatar
Extreme Talker

Posts: 158
Location: Houston
Trades: 0
PHP Code:
<if condition="$post['field6']">
Gender$post[field6]
<else />
</if>
</
div
Ok thats the code. Now what i want to do, is have the condition, check field6 and if the text in it, is "Disable" display nothing on the line.

Thank you,

X
__________________
"Good News Everyone, by reading this your hearing my voice."
Red_X_ is offline
Reply With Quote
View Public Profile Visit Red_X_'s homepage!
 
 
Register now for full access!
Old 11-10-2007, 01:15 PM Re: If statement support.
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
What code ?
At best, this is pseudo-code.

http://www.php.net/manual/en/language.variables.php
and
http://www.php.net/manual/en/languag...structures.php
and
http://www.php.net/manual/en/function.echo.php

Try to read about your subject, before asking such basics questions.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 11-10-2007, 01:17 PM Re: If statement support.
Red_X_'s Avatar
Extreme Talker

Posts: 158
Location: Houston
Trades: 0
Quote:
Originally Posted by tripy View Post
What code ?
At best, this is pseudo-code.

http://www.php.net/manual/en/language.variables.php
and
http://www.php.net/manual/en/languag...structures.php
and
http://www.php.net/manual/en/function.echo.php

Try to read about your subject, before asking such basics questions.
its .tpl code for vBulletin. Custom field area, and calling it. psuedo-code :P I don't mess with fake code.
__________________
"Good News Everyone, by reading this your hearing my voice."
Red_X_ is offline
Reply With Quote
View Public Profile Visit Red_X_'s homepage!
 
Old 11-10-2007, 04:12 PM Re: If statement support.
Foundationflash's Avatar
Ultra Talker

Posts: 410
Name: Harry Burt
Location: Colchester, Essex, England
Trades: 0
Why's it in the PHP forum then?
__________________
Foundation Flash tutorials :
Please login or register to view this content. Registration is FREE


New Dreamed Up Web Design:
Please login or register to view this content. Registration is FREE
Foundationflash is offline
Reply With Quote
View Public Profile Visit Foundationflash's homepage!
 
Old 11-11-2007, 03:31 AM Re: If statement support.
Red_X_'s Avatar
Extreme Talker

Posts: 158
Location: Houston
Trades: 0
Quote:
Originally Posted by Foundationflash View Post
Why's it in the PHP forum then?
I guess, I was assuming it was PHP related. And with other code. -shrugs- If its in the wrong section, a MOD can move it.
__________________
"Good News Everyone, by reading this your hearing my voice."
Red_X_ is offline
Reply With Quote
View Public Profile Visit Red_X_'s homepage!
 
Old 11-11-2007, 06:22 PM Re: If statement support.
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
PHP Code:
<if condition="$post['field6'] != 'Disabled'">
Gender$post[field6]
</if> 
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to If statement support.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.49492 seconds with 12 queries