Simple php link code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Post by redhair »

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...
I3lade
Forum Commoner
Posts: 70
Joined: Wed Jun 04, 2003 4:20 pm

Post by I3lade »

hmmmm im to much of a newbi to understand this hmmmmmmm ill try to figure it out but i hardly understood what php scott said lol, i got it but i didnt get how to fix it.. and as far as mysql.com thats to confusing for me lol
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

tutorial

Post by phpScott »

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
I3lade
Forum Commoner
Posts: 70
Joined: Wed Jun 04, 2003 4:20 pm

Post by I3lade »

Yea i know im just to sucky as far a the transiton ill look into that thats probably my problem
I3lade
Forum Commoner
Posts: 70
Joined: Wed Jun 04, 2003 4:20 pm

Post by I3lade »

well im totaly lost lol if theres anyone willing to take the time to help me fix this one, ill appricate it i dont understand how to make the tranistion... i think its just my var that i really need at the top in the Where cluase
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Post by redhair »

I need a where cluase in my select function, how do i use it?
ROFLOL
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Post by redhair »

Have you been smoking weed?
I3lade
Forum Commoner
Posts: 70
Joined: Wed Jun 04, 2003 4:20 pm

Post by I3lade »

no i told you im a noob to php you got a problem with that ? if i knew php why the hell would i be posting here? This is lkike my 2cnd day actully doing it so if you dont want to help why do you keep positng? At least some people actually are willing to help me unlike u
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Post by redhair »

i was...and might still be able to give you some help (i never mentioned otherwise, don't be to fast on your judgement(s).). Actualy...i think you are quite amuzing! I go fetch a beer with it...
I3lade
Forum Commoner
Posts: 70
Joined: Wed Jun 04, 2003 4:20 pm

Post by I3lade »

Well i just want to learn php, and have fun doing it. Also i wanan get this script to work lol unforutnly right now i dont get a lot of this... and i dont know what the heck is going on with my code right now
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Post by redhair »

Then start from top reading this thread...gather all the tips you have been offered, and ehhhrr...find yur varaileble
I3lade
Forum Commoner
Posts: 70
Joined: Wed Jun 04, 2003 4:20 pm

Post by I3lade »

I think thats how this started lol i cant find my variable, i dont know if it should be user id, username or what? ill try rereadin everythin tho
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

I think I get it

Post by phpScott »

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. :D

phpScott
evilcoder
Forum Contributor
Posts: 345
Joined: Tue Dec 17, 2002 5:37 am
Location: Sydney, Australia

Post by evilcoder »

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.
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Post by redhair »

o oh...
Post Reply