Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I retrieve/add records to MySQL through PHP?

Status
Not open for further replies.

OverByte

Programmer
Oct 4, 2002
7
US
I'm somewhat new to the following so please bear with me. I have Apache configured w/PHP and MySQL. I'm able to use PHP's functionality through Apache. I'm also able to create databases and tables sucessfully through MySQL using standard means. But, when I try to retrieve or add records from MySQL through PHP via HTML forms, I'm having no luck. I've tried numerous examples/ways of doing this.

I'm trying this on a localhost, Linux box using the following versions:
RedHat Linux 2.4.18-3
Apache 1.3.26
PHP 4.2.3
MySQL 3.23.52

The versions are most likely not the issue. There may be a config issue somewhere I assume, but each piece works fine with one another except for the MySQl queries under PHP through HTML forms.

Thanks.

Any help is appreciated.

 
no error messages whatsoever. i echo some messages at certain points in the script
and it does complete. i get a connection to the database; however, i believe that the query setup may be the problem.
 
What does your query look like? Does MySQL return successfully? //Daniel
 
actually, i figured it out this morning. all is well now.

thanks for your time.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top