Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
$saved = "<style type='text/css'>\n";
$saved .= " .title { background: red; }\n";
$saved .= "</style>\n";
$saved .= "<table><tr><td class='title'><a href='go.php?$d->id' title='in/out - $d->hitsin/$d->hitsout' target='$d->id'>$url</a></td></tr></table>";
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Just a test page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="sheet1.css" rel="stylesheet" type="text/css" media="screen">
</head>
<body>
<?php
$saved = "";
$saved .= "<table><tr>";
$saved .= "<td class=\"classname\"><a href=\"go.php?$d->id\" title=\"in/out - $d->hitsin/$d->hitsout\" target=\"$d->id\">$url</a></td>";
$saved .= "</tr></table>";
?>
</body>
</html>
Vragabond said:My solutions used double quotes to delimit string in php and single quotes to delimit attribute values in html and so no escaping (putting backslash in front of it) was needed. Code is easier to read that way.