wortmann;11033111 wrote:I dont know how i can use the print syntax.
Well... printing output to the user is one of the most basic operations you should have learned on day #1 of learning PHP (or just about any programming language). You might want to start (or go back to) learning the basics of PHP before going anywhere near SQL and DBMSes.
wortmann;11033111 wrote:But i have taken the error handlign out and i now got rid of the first problem.
Surely you don't believe that... right? You didn't get "rid" of any problem... you only removed the helpful output that was telling you a problem occurred.
If a fire sets off the fire alarm in a building, turning off the alarm doesn't extinguish the fire.
wortmann;11033111 wrote:However i now get the following error:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\php_test\display_data.php on line 36
Line 36: <?php while ($row = mysql_fetch_array($query)) { ?>
... which you're getting because there is an error in your SQL query that caused [man]mysql_query/man to return boolean FALSE rather than a resource.