Hi I have a special problem ... I have three values from the database.
Value1 is 1 or 0
Value2 is again 1 or 0
Value3 is remaining time like (24 hours left, 23, ...)
Values are stored in variables:
$value1
$value2
$value3
These values change from the database every time you download from a web page. I also have these meanings inside the echo ""; The php function is already similar:
echo"text text text .................
"Value 1 is:" . $value1 . " and value 2 is:" . $value2 . ""
..................;
I need a function that says different things like
if (value1=0)
echo "Only text"
else
echo "Value 1 is:" . $value1 . " and value 2 is:" . $value2 . "";
it will be in another echo function from the first example, so in my opinion it looks like this:
*Some function*
echo"if (value1=0)
echo "Only text"
else
echo "Value 1 is:" . $value1 . " and value 2 is:" . $value2 . """; // two echo closing
But that will not work. Any help would be appreciated. How to solve this problem? thank.
source
share