Web Hosting Talk







View Full Version : PHP, MySQL and If Statements (Echo)


smellybob
07-06-2007, 03:39 PM
Hi,

Just wondering if anyone can help,

Is it possible to include a IF Statement when using the echo function to display text etc. If so how would i go about it.

Cheers

Martin

stuffradio
07-06-2007, 06:55 PM
I don't get your question, but


if (//Your condition here) {
echo "Whatever it is you want to echo";
}