How can I convert a "<!--" so that it doesn't comment out the rest of my page when it returns as a query result?
What is the PHP equivalent of a wildcard? IE: * or % I want to write a function that states:
if VariableName1 = $Variable1 AND VariableName2 = $Variable2 etc. but I want to use the same syntax even if I don't have a Variable specified so if
$Variable1= specific $Variable2= %
the statement will skip basically skip over the wildcard and process the variables that have specific criteria defined.
Thanks in Advance.
I'll give it a shot.
Questions:
You could use htmlentities or htmlspecialchars to convert any text to HTML entities.
Ok, it too earily. I ain't got a clue. If you got a variable and no value then I guess you have two chooses:
$variable = '';
or
wait till got a value. Wildcard? No idea.
I need coffee. Hope I helped on question one.
Search and replace the <!-- before output:
$output=ereg_replace("<!"," < ! ",$output);
For wildcards:
if($var1=="testing" && $var2!=""){