Jump to content

Retriving Information from database


Blekk

Recommended Posts

Hi,

I have only really started php after a dabble in it about 2 years ago, this may seem rather basic but I am trying to retrieve an email address for a test user from a database.

This is my code:

[code]$resultEmailRetrival = mysql_query("SELECT emailaddress FROM te_users WHERE username='".mysql_real_escape_string($username)."'");[/code]

I then printed $resultEmailRetrival but it isn't the email address, do I have to do something like mysql_fetch_assoc or something?

Thanks,

Any reply is appreciated.
Link to comment
https://forums.phpfreaks.com/topic/29433-retriving-information-from-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.