Simple php link code
Moderator: General Moderators
- redhair
- Forum Contributor
- Posts: 300
- Joined: Fri May 30, 2003 4:36 pm
- Location: 53.23N-6.57E
- Contact:
tip for newbs:
*Be patient!
*Analyse your (the) code untill you get it (error-free and safe).
*Try to write at least 1 sentence without spelling errors, when posting on forums (you will look rediculous if not, people might think 'i hope this guy's php is better then his english'.
*Don't panic when users start pointing at you,...and do not, i repeat...do not spam me on my icq/ private message, saying your sorry...
*Be patient!
*Analyse your (the) code untill you get it (error-free and safe).
*Try to write at least 1 sentence without spelling errors, when posting on forums (you will look rediculous if not, people might think 'i hope this guy's php is better then his english'.
*Don't panic when users start pointing at you,...and do not, i repeat...do not spam me on my icq/ private message, saying your sorry...
tutorial
We are all just trying to help you out
tryhttp://www.phpcomplete.com/tutorials.ph ... adTutorial
for a good intro into php.
Take the time to find some sample tutorials and code as you will learn alot from looking at other peoples code and trying to do simple modifications.
A good book or two might help as well.
phpScott
tryhttp://www.phpcomplete.com/tutorials.ph ... adTutorial
for a good intro into php.
Take the time to find some sample tutorials and code as you will learn alot from looking at other peoples code and trying to do simple modifications.
A good book or two might help as well.
phpScott
I think I get it
I think I understand the varialbe that you probably want to use is what ever is the unique field in your table of users which by the sounds of it will be user_Id.
In almost all cases you will want to have a unique way to identify a particular record in each table. Any good basic tutorial on databases will explain this to you if you don't understand what I mean.
I'm I getting close to what you want.
You have several columns in your table and you want to know which column to use in you link to find the person who just logged in.
Not that it is any of my business really but i take it that english is not your first langauge.
Not that it is a problem or anything as we are a multi-cultural, multi-ethnic community here.
Now doesn't that sound like a very Canadain thing to say.
phpScott
In almost all cases you will want to have a unique way to identify a particular record in each table. Any good basic tutorial on databases will explain this to you if you don't understand what I mean.
I'm I getting close to what you want.
You have several columns in your table and you want to know which column to use in you link to find the person who just logged in.
Not that it is any of my business really but i take it that english is not your first langauge.
Not that it is a problem or anything as we are a multi-cultural, multi-ethnic community here.
Now doesn't that sound like a very Canadain thing to say.
phpScott
not too harsh now boys, i think he might be a bit simple.
How about you learn the basics of PHP before you try MySQL connections and database extraction.
You obviously need to learn alot of the small fry stuff, like what arrays are, what the while function is and a few of the other essential functions.
http://www.php.net // Read the documentation.
How about you learn the basics of PHP before you try MySQL connections and database extraction.
You obviously need to learn alot of the small fry stuff, like what arrays are, what the while function is and a few of the other essential functions.
http://www.php.net // Read the documentation.