I've tried this for hours. I can connect to my data base and insert into it but can't seem to get anything out of it.
// Declarations
$connection = mysql_connect("xxxxxxx", "xxxxxxx", "xxxxxxxx");
mysql_select_db("kettle_test1", $connection);
if (!$connection)
{
die ('Cold not connect: ' . mysql_error());
}
else
{
echo "connected <br> <br>";
}
// INSERT
mysql_query("INSERT INTO bob2 (Danumber)
VALUES ('32234245')");
// QUERY AND DISPLAY
$result = mysql_query("SELECT * FROM bob2");
echo $result;
// if this is commented out I get the 'connected' message above. without it the page is blank,
while ($row = mysql_fetch_assoc($result)) {
echo $row["Danumber"];
}
*/
echo "<br> <br> <br>";