I changed servers and now I am having trouble inserting items.
The new mysql that I am using is 4.1.19 and has the collation field, the old did not.
I can go and edit any record through my script, but for some reason I now cannot add any records, I am using the same php pages so it appears to be the mysql collation, it is now set on "latin1_swedish1_ci.
Here is my insert file that did work on the old but not on the new:
<?php
if ($submit) {
//Database Connection
include "db.inc.php";
$sql = "INSERT INTO jokes (title,content,category) VALUES ('$title','$content','$category')";
$result = mysql_query($sql);
echo "Thank you! Information entered.\n <a href='http://www.blondesandrednecks.com/admin'>Continue</a>";
} else{
// display form
?>
<img src="http://www.blondesandrednecks.com//barlogo.jpg" align="center">
<br>
<table border="0" width="100%">
<tr>
<td width="25%" align="left"><a href="index.php">Return to Administration</a></td>
<td width="75%" align="left"><h2><u>Enter New Joke</u></h2></td>
</tr></table>
<hr>
<center><table width="90%" border="0">
<tr><td valign="top">
<form method="post" action="<?php echo $PHP_SELF?>">
Title: <textarea name="title" rows="1" cols="70"></textarea><br>
Content: <textarea name="content" rows="14" cols="70"></textarea><br>
Category: <?php include_once("category.php"); ?>
<br>
<br>
<input type="Submit" name="submit" value="Enter information">
</form>
</td>
<td valign="top">
</td></tr>
</table></center>
<?php
} // end if
?>
Please help.