Heya, im a rookie at PHP and have never actully learnt how to update a data base how would I do it in this script?
<?php
require_once('test.css');
$link = mysql_connect("localhost", "root", "");
mysql_select_db("name", $link);
$qry = mysql_query("SELECT nws FROM news ORDER BY nws DESC", $link);
$update = mysql_query("UPDATE nws into news", $link);
?><?php
if (mysql_num_rows($qry) > 0) {
for ($j = 0; $j<mysql_num_rows($qry); $j++) {
?><?php
for ($k = 0; $k<mysql_num_fields($qry); $k++) {
echo "<html><div align=center><textarea cols=40 rows=10>". mysql_result($qry, $j, $k) ."</div></textarea><input type=submit value=$update><br><br><br><br></html>"; } ?>
?><?php
}
}
?>
Please reply and god bless you for helping rookies 😃