This is my first project digging into PHP and mySQL databases, and it's been a steep learning curve so far. I'm near the end of a Wordpress project and could use some help on if...else statements, which have been stumping me for a while. It uses custom fields.
Essentially I need the below flow, where "c01-sp-a" is a one word text variable and "c01-sp-v" is a number. I put variables in [] to clarify:
if ([c01-sp-a] = null)
[text of c01-sp-v]
else
<a href="http://www.example.com/[text of c01-sp-a]" title="[text of c01-sp-a]" target="_blank">[text of c01-sp-v]</a>
I'd have to repeat this a few times, but I'd imagine having a good example for me would get me going.
Thanks!