I'm trying to get a script that can be called via java on a .html site.(not shtml or something like that)
This is what i got......
UPDATE.PHP3
<?php
// Koble til database server
$dbcnx = @mysql_connect("xxxxx");
// Velg database
mysql_select_db("xxxx");
$result = mysql_query("Select id, from dbase ORDER BY id desc LIMIT 3");
while ($row =mysql_fetch_array($result)) {
$id= $row["id"];
$update= $row["update"];
print "document.write(\"<a href='http://www.the-url-to-site.com/update.php3?id=$id'>$update</a><br>\")";
}
?>
This gives me this when running the update.php3 page:
document.write("New test
")document.write("Testing the script
")document.write("Hope this works
")
When I'm trying to get this with:
<SCRIPT SRC="'http://www.the-url-to-site.com/update.php3"></SCRIPT>
I get an error:
Done, but with errors on page.
What am I doing wrong?
Isn't it possible to get the update.php3 page with the <SCRIPT>?