-
I have the following problem:
---
<?php
mysql_connect("localhost","username","passw")
or die ("unable to connect to database");
mysql_select_db("db_name")
or die ("unable to select database");
// Query
$sql = "SELECT * FROM medewerker";
$result = mysql_query($sql);
echo "$result";
?>
---
What I get on the page is:
---
Resource id #2
---
I don't understand why I won't show all the records I have in the database.
What am I doing wrong?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks