Hi,
What i'm trying to do:
* Using
<SCRIPT LANGUAGE='JavaScript' SRC='http://www.the-url-to-site.com/update.php3'>
</SCRIPT>
to call update.php3.
The update.php3 file will get latest three updates from a database.
Why?
Because I think this way anyone can add: <SCRIPT LANGUAGE='JavaScript' SRC='http://www.the-url-to-site.com/update.php3'>
</SCRIPT> and get my lates three updates displayed on their .html page.(not needing to make them .shtml or something like that)
THE CODE I WANT TO USE:
Connecting to server + choose database
$dbcnx = @mysql_connect("servername", "login", "pass");
mysql_select_db("basename");
$result = mysql_query("Select id, update from basename ORDER BY id desc LIMIT 3");
while ($row =mysql_fetch_array($result)) {
$id= $row["id"];
$update= $row["update"];
print "<font size=2 color=#000000><a href='http://www.the-url-to-site.com/update.php3?id=$id'>$update</a></font><br>";
}
Questions:
Am I wrong about this? Am I doing it the wrong way?
How will the syntax on the update.php3 page be for this to work with the Java?
best regards,
Alex Butcher