2 problems:
ADD CODE - this creates a new row in the table, but all the variables are blank :S.so i effectively get an empty row created.
VIEW CODE - this outputs the row correctly (i manually entered one in phpmyadmin to test this), but it complains about an error that i have tracked down to being in the while loop where i copy the contents of each cell over to its own variable so i can echo it later in the loop.any help will be really appreciated, i've been stuck on this for 2 hours now!
thanks!
ADD code:
$date = addslashes($POST['adddate']);
$opponents = addslashes($POST['addopponents']);
$venue = $POST['addvenue'];
$result = addslashes($POST['addresult']);
$sql = "INSERT INTO badgresults2003 (date, opponents, venue, result) VALUES ('$date', '$opponents', '$venue', '$result') ";
$result = mysql_query($sql, $cid);
RETRIEVE CODE:
$query = "SELECT * FROM badgresults2003";
$result = MySQL_query($query);
while( $row = MySQL_fetch_array($result) ) {
$date = $row['date'];
$opponents = $row['opponents'];
$venue = $row['venue'];
$result = $row['result'];
//Output in loop
echo (" $date $opponents $venue $result ") ;
}