just getting started - db querying


I’ve just gotten PHP and MySQL up and running for a company intranet site I’m working. I know they’re set up properly because I’m running a Phorum message board that is working and interacting with the database just fine. phpinfo(); works and outputs all sorts of stuff.

But for whatever reason, I can’t insert/view anything in my database when I try to write some of my own PHP scripts. I’ve tried a few different methods, most recently this tutorial:


It just doesn’t work. I get no output, and when I look at my database, nothing is inserted. I feel like I’m just missing something really basic and it’s driving me crazy. Any help would be much appreciated!

  • Sarah -

Do you get any errors? If no, have you used ‘error_reporting(E_ALL);’ to make sure? If yes, please copy them here so we can take a look at it.
The fact that phpinfo(); works and that your forum script works means that your environment is setup correctly and that most probably there’s a problem in the script(s) you’ve tried to write yourself.

Sponsor our Newsletter | Privacy Policy | Terms of Service