Computing.Net > Forums > Web Development > Mysql /php how do I retrive data

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Mysql /php how do I retrive data

Reply to Message Icon

Name: Geiri
Date: February 24, 2004 at 05:03:22 Pacific
OS: Xp
CPU/Ram: 2.4/1gb
Comment:

I have set up my Mysql database And some data in it now I need some help geting my data to my php page.

I know how to connect to the database but I need to know how I can pull data from a
<?
mysql_connect( 'host', 'user', 'pass' );
mysql_select_db( 'database' );
$query = mysql_query( "SELECT ??????

now I need to pull text from a field called name and add to it a url from a field called url.
and print that to page ?

hope some one can help me on this
Thank you




Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: February 24, 2004 at 07:01:20 Pacific
Reply:

Looks like you're stuck on "SELECT ??????". It is expecting a standard SQL statement. This will depend on exactly what data you want to pull and how your database is structured. You may want to read up a little on it, try here for starters:
http://www.w3schools.com/sql/default.asp


0

Response Number 2
Name: Geiri
Date: February 25, 2004 at 09:15:18 Pacific
Reply:

thank you good link :)


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


CSS with Netscape 7.1 centering a page with CSS



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Mysql /php how do I retrive data

How do I post code? www.computing.net/answers/webdevel/how-do-i-post-code/3416.html

How do i do this? www.computing.net/answers/webdevel/how-do-i-do-this/1463.html

how do I e-mail HTML documents? www.computing.net/answers/webdevel/how-do-i-email-html-documents/2829.html