[RESOLVED] Add " quote mark
PHP Code:
<?php
$db = mysql_connect("", "", "");
mysql_select_db("MeltdownMySql",$db);
$result = mysql_query("SELECT * FROM meltdown_links ORDER BY priority",$db);
echo("<ul>");
while ($myrow = mysql_fetch_row($result)) {
printf("<li><a href=%s>%s</a></li>", $myrow[1], $myrow[0]); [B]<----[/B]
}
echo("</ul>");
?>
Right then the line indicated works great, but how do i add a quote mark like this " ?
As obviously adding one simply stops the string.
Re: [RESOLVED] Add " quote mark
Re: [RESOLVED] Add " quote mark
For further reference you use escape characters, so " would be \". For more info about escape characters check out
http://uk.php.net/manual/en/language.types.string.php
Re: [RESOLVED] Add " quote mark
You should use single quotes for normal strings and double quotes around escape sequences.