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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trying to extract mysql records with php from html page.

Status
Not open for further replies.

gregor weertman

Programmer
Sep 29, 2000
195
NL
I'm trying to extract records with php from html page.

html:
<A HREF="extract.php">

php:
mysql_connect( "localhost", "root", "");

when I do it with the explorer the script seems to stop
after the mysql_connect command.

when I execute:
php extract.php I get my result ok.

whats the solution?
 
when I do it with the explorer

What's "the explorer"?

What is extract.php?

Where is extract.php in relation to the database you are trying to connect to?

Where does HTML come into this?


Do you mean that you are trying to query a MySQL database to get data with which you are going to populate an HTML page?

--
Tek-Tips Forums is Member Supported. Click Here to donate

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top