Still not having any luck.
Code:
<?php
if ($_POST['submit']) {
mysql_connect("freshsql.com:3306","","");
mysql_select_db("");
$entrytext=$_POST['entrytext'];
$entrytime=$_POST['entrytime'];
$query ="INSERT INTO hmr entrytext,entrytime VALUES $entrytext, $entrytime";
$result=mysql_query($query);
?>
<div align="center">Post Successful. If you followed our rules, it will be visible on the main page soon!
<p>
<?php
}
?>
Thats the code to add to the database...to GET to that page, i use this form.
Code:
<form method="POST" action="addentry.php">
<table width="143" border="0" align="center" cellpadding="3" cellspacing="3">
<tr>
<td width="131"><p align="left">
text here
<textarea name="entrytext" cols="45" rows="5" wrap="physical" id="entrytext"></textarea>
<input type="submit" name="submit" value="Submit">
</td>
</tr>
</table>
</form>
Still no luck adding anything to the database.
Bookmarks