Current location: Hot Scripts Forums » Programming Languages » PHP » displaying data from a db


displaying data from a db

Reply
  #1 (permalink)  
Old 01-08-04, 09:22 PM
tisza tisza is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
displaying data from a db

what would i type to make it select the email variable of the user $_COOKIE[username], i have this but i get an error when i try to display $id

$id = mysql_query("SELECT id FROM users WHERE username = $username");
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 01-10-04, 10:16 AM
hyjacked hyjacked is offline
Wannabe Coder
 
Join Date: Nov 2003
Location: New Brunswick, Canada
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
what kind of error are you getting?
is there a value in $username before you use it?
__________________
hyjacked
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem getting data from DataGrid on update petersza ASP.NET 5 10-20-04 12:37 AM
How to Extract Intra Day Stock Price Data from Java Chart??? (only source of data!!) omkarsnisal Everything Java 0 10-29-03 03:25 AM
Print data by date perleo PHP 2 08-09-03 10:35 AM
cannot display the complete data najmun PHP 2 07-04-03 03:52 PM


All times are GMT -5. The time now is 09:52 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.