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
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?
/
#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
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)
>> {
>>
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,
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.
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();
)";
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
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
9 matches
Mail list logo