Hi, sorry, this is one of the code snippets I've tried. It is part of a tutorial by Kevin Yank from his book "Building a Database-Driven Web Site Using PHP and MySQL".
Code:
<HTML>
<BODY>
<?php
// If the user wants to add a joke
if (isset($addjoke)):
?>
<FORM ACTION="<?php echo($PHP_SELF); ?>" METHOD=POST>
<P>Type your joke
Connected to mySQL through PhP but can't retrieve, add or delete records
Pls help! I'm new to PHP and MySQL and I'm having a problem when working with my database (I am using IIS6). When using PHP I can connect to the database without any problems, I can even add new tables to the database but when I try to retrieve, add or delete records nothing happens. No error messages, nothing. I can run the queries successfully through phpMyAdmin and mySQL administrator. I don't think it's the php coding that I'm using because...
Leave a comment: