Hi there,
I have an example string that goes like this for instance:
The variables $text1 and $text2 haven't been set yet and will be set later from a mysql query like this:
How can I make it so that when it's echoing the string that it puts the variables in, as I want to be able to use the string in lots of different statements and queries.
I hope i explained this properly.
Thanks.
I have an example string that goes like this for instance:
Code:
$str = '34' . $text1 . '34' . $text2 .'23';
The variables $text1 and $text2 haven't been set yet and will be set later from a mysql query like this:
Code:
$str = '34' . $text1 . '34' . $text2 .'23';
$text1=mysql_result($sql,$i,"text1");
$text2=mysql_result($sql,$i,"text2");
echo $str;
How can I make it so that when it's echoing the string that it puts the variables in, as I want to be able to use the string in lots of different statements and queries.
I hope i explained this properly.
Thanks.