GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 23-Jul-2003, 10:38
ukrspp21 ukrspp21 is offline
New Member
 
Join Date: Jul 2003
Location: London
Posts: 17
ukrspp21 is an unknown quantity at this point
Question

Result identifiers


I am having a similar problem to Andy - Sessions in fact with some similar code. I want to be able to display a welcome note personalised to the logged on user as well as creating some custom content.

Can I name the result identifier i.e. $result anything I choose ie. $result1.

The reason I would like to be able to do this is that I have two tables in a db one which contains information about a userid with email and passwords. The other contains data about that user I.e. name, address, phoen number. I want to display;
Hello Phil
rather than
Hello 0125
that I would if I used the $valid_user approach detailed in Andy's message.

I have tried to achieve this through using a mysql_query, hence the question re: result id

Any help would be much appreciated!!!
Phil
  #2  
Old 23-Jul-2003, 15:44
ukrspp21 ukrspp21 is offline
New Member
 
Join Date: Jul 2003
Location: London
Posts: 17
ukrspp21 is an unknown quantity at this point
Dear All

Sorry for being a muppet!!! I guess I was born that way.

Phil
  #3  
Old 23-Jul-2003, 15:52
jrobbio's Avatar
jrobbio jrobbio is offline
Regular Member
 
Join Date: Jan 2003
Location: Loughborough, England
Posts: 840
jrobbio will become famous soon enough
Welcome to the club that is GIDForums Phil,

I'm glad that you resolved your problem. If we all help each other out to our strengths, then we'll go places

Did you get the answer from another thread or was it something that you had noticed from what you had done.

Rob
  #4  
Old 24-Jul-2003, 02:48
ukrspp21 ukrspp21 is offline
New Member
 
Join Date: Jul 2003
Location: London
Posts: 17
ukrspp21 is an unknown quantity at this point
Hey Rob

I did lots of searching which led me to teh conclusion that $result is just a variable and can be defined as such. This helped me to fix the problem. I am still getting grief from " and ' and where to use each. Given that I am still v. wet behind the ears in this whole programming thing I will just try to learn from these little mistakes!!

Cheers for the welcome and interest!!

Phil
  #5  
Old 24-Jul-2003, 03:49
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Hello ukrspp21,

Hang around some PHP/MySQL forums daily; even for just a few minutes at each. You'll pick up a lot of tips, tricks and just plain 'ol things to think about.

I still do this, I hardly post on the many forums I frequent (I make an exception here of course ) but I keep up with the latest, newest posts on all these forums on a daily basis and it just takes all of 20 mins!
 
 

Recent GIDBlogNot selected for officer school by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql_query result True on first iteration, then False samtediou MySQL / PHP Forum 6 24-Jul-2003 11:49
Show result in table skyloon MySQL / PHP Forum 1 03-Jul-2003 18:30

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 14:40.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.