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 can 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.
 
i could email it to you. what email addy would you want me to use?
 
Is it that big? :-S I am no expert at php, but if getting the rows is the only problem I can try to fix it.

ristmo_2000_2000@yahoo.com

Rick
 
i acytually figured it out yesterday. thanks for your time, i appreciate it.
 
Hey,

I would say to post the complete program and the output that it produces, and we can see exactly what's happening. (You also might want to list the contents of each table used, although it sounds like they may still be empty at this point.)

Charlie

 
Thanks for the tips. I'll keep that in mind the next time.

Thanks to all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top