[PHP] (Yet another) I'm blind ... post

2005-08-30 Thread Martin S
e see the error, and feel like pointing it out to me? Martin S Join the lists"; print "'"; print "Your E-mail address: "; print "Your Name (optional): "; print "Lista: "; print "Tävling"; print "JGP"; print "Styrelse&quo

[PHP] variable passing

2004-03-12 Thread Martin S
I have this in equip-lend-index.php and want to pass the variable $equipment back to the same page: PRINT " Equipment: "; PRINT " Computers"; PRINT " Phones"; PRINT " "; PRINT " "; Hitting Select (submit button) doesn't pass the value of $equipment back to the page. What am I doing wrong? /

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Martin S
#x27;t work so I abandoned it. Perhaps I did something else stupid. I'll re-read the docs. Thanks for your help, and Happy New Year! Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Martin S
Jason Wong wrote: > On Tuesday 31 December 2002 20:48, Martin S wrote: > >> This is the function which should return e.g. "printers" for >> $lookuptable. But doesn't. >> >> function setCurrentDevGroup($devID) >> { >>

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Martin S
Jason Wong wrote: > On Tuesday 31 December 2002 20:02, Martin S wrote: >> Marek Kilimajer wrote: >> > You forgot global $adb; at the beginning of your function, or use >> > >> > $sth = $GLOBALS['adb']->prepare($query); >> >> Nope sorry,

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Martin S
Marek Kilimajer wrote: > You forgot global $adb; at the beginning of your function, or use > > $sth = $GLOBALS['adb']->prepare($query); Nope sorry, I've just edited it from my post here. It is in the function. /Martin S. -- PHP General Mailing List (http://www.php.

[PHP] Function misfunction - 2

2002-12-30 Thread Martin S
NOW what am I doing wrong?? function setCurrentDevGroup($devID) { $query = "SELECT dev_group FROM tracking WHERE (computer = $devID)"; $sth = $adb->prepare($query); if($sth) { $res = $sth->execute();

Re: [PHP] function misfunction

2002-12-30 Thread Martin S
)"; break; case "printers": $query = "SELECT name FROM printers WHERE (ID = $this->ComputerID)"; break; } (And yes I suppose you could write that as "SELECT name from $lookuptable WHERE "; What am I missing now? /Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] function misfunction

2002-12-30 Thread Martin S
ng "$tracking->" above. Obviously I'm doing something wrong here. What? Cheers, Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php