View Single Post
  #2 (permalink)  
Old May 1st, 2008, 04:54
BRONIC BRONIC is offline
Junior Member
Join Date: Apr 2007
Location: Kansas
Age: 18
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to BRONIC
Re: Use info from Database in a script ???

could u please post your code?

but it sounds to me like u ar just doing something like:

PHP: Select all

$query "SELECT email FROM sometable WHERE id = '$yourid' ";

$result mysql_query($query) or die("Couldn't execute query");
$rowmysql_fetch_array($result);
$email $row["email"]; 
and that should store your email that is paired with that user id into the variable $email.


not sure if this is what u r looking for
Reply With Quote