Code: Select all
<html>
<body>
Hello, my name is <a href="http://www.link1.com">Xion</a>, and I'm trying to program in <a id="link" href="http://www.php.net">PHP</a>
</body>
</html>
What it would do is to save those two links in a database, into something like
Code: Select all
+------------------+------------------------------+
| Link_id | LINK |
+------------------+------------------------------+
| 1 | http://www.link1.com |
+------------------+------------------------------+
| 2 | http://www.php.net |
+------------------+------------------------------+
And then swap the site with:
Code: Select all
<html>
<body>
Hello, my name is <a href="1">Xion</a>, and I'm trying to program in <a id="link" href="2">PHP</a>
</body>
</html>
IM STUCK!!! Can anybody help me? Thanks!