Page 2 of 2

Posted: Mon Dec 15, 2003 3:48 am
by malcolmboston
ok, ive read them and im still none the wiser, arrays pretty much baffle me :?

Posted: Mon Dec 15, 2003 3:53 am
by JayBird
heres a guide to PHP Arrays, they aren't that tricky :) Honest

http://www.free2code.net/tutorials/prog ... /array.php

Mark

Posted: Mon Dec 15, 2003 3:58 am
by malcolmboston
ok i dont mean to spam but

unless your a genius you prolly wont know this, and it might just be me nitpicking (prolly is)

why do you have to create an array just to retrieve one piece of data, sounds a bit odd to me!?

but then again im a newbie with limited knowledge, oh godly one :oops:

Posted: Mon Dec 15, 2003 4:03 am
by JayBird
as always, there is more than one way to do it. The code i gave you is just a snippet i had to hand. You can perform the query to return just that one piece of information, but i don't use it that often and would need to find the correct syntax.

Posted: Mon Dec 15, 2003 4:05 am
by malcolmboston
ok, well thanks for your help

im gonna have to learn arrays i suppose :cry:
have a book about them, but doesnt have any examples taht are remotely of any use whatsoever :(

Posted: Mon Dec 15, 2003 4:14 am
by twigletmac
You don't have to create an array for one piece of data, I linked to [php_man]mysql_result[/php_man]() for that reason.

Mac

Posted: Mon Dec 15, 2003 4:21 am
by malcolmboston
u did!?!?!?!?!

so that code now works
<-- still needs to learn array though :cry: , will try to put it off as long as possible

thank you man, your a life saver

Posted: Mon Dec 15, 2003 4:27 am
by JayBird
malcolmboston wrote:thank you man, your a life saver
think you mean woman :lol:

Mark

Posted: Mon Dec 15, 2003 4:30 am
by malcolmboston
woman?

very knowledgable woman
sorry assumed us 'geeks' were all men :lol:

Posted: Thu Dec 18, 2003 10:18 am
by malcolmboston
my bad

i wasnt calling a session_start(); at the beginning of the page
also i was defining the session already at the beginning thats why various things didnt work, everything works not and ive completed the site after doing some other PHP related things to it, thanks

sorry for that
just shows, if your looking for a complex answer, then its normally something simple and stupid

Posted: Thu Dec 18, 2003 2:47 pm
by JAM
malcolmboston wrote: just shows, if your looking for a complex answer, then its normally something simple and stupid
And that, my friend, is something that you will encounter again and again and again and...
Point being, you are not aloneI found this quote amusing as I said that to myself today. ;)