So, this is a problem that is bugging me for a while now.
I've got a query I want to run with PHP, but it Always fails, even if it's very simple.
This problem only occures at one table, all other tables just work fine so it isn't a problem with connecting to the database.
Here is the code:
<?php
// Start the session
session_start();
?>
<html>
<head>
<title>Chat room</title>
</head>
<body>
<?php
include 'opendb.php';
$query = "SELECT id
FROM chat";
$resultaat = mysql_query($query, $connectie) or die('Error, query failed 1');
include 'closedb.php';
?>
<p><?php echo $user?><?php echo $text?></p>
</form>
</body>
</html>
Yes, this actually fails, here's a link to the adress: http://ln99030804.haperen.eu/chat.php
Here's a picture showing my table on phpMyAdmin.
I also need to tell that I took some code away just to make it less chaotic, but it didn't have anything to do with the part crashing.
could anybody please help me with this?