Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: undefined array use

by sparkyichi (Deacon)
on May 03, 2002 at 21:49 UTC ( #163930=note: print w/ replies, xml ) Need Help??


in reply to undefined array use

You should set the array for a default value and check for that value.

$main::SQL=" SELECT oid,* FROM timeclock WHERE end_stamp = NULL AND use rname = '$username'"; common::sql::Do_SQL(); @clocked_in = $common::sql::sth->fetchrow(); if (! @clocked_in ){$checked = 0} #unless ($clocked_in[1] eq "$username"){ if ($checked == 0){ clock_in_form($username, $date, $time); }
or something like that.

Sparky
FMTEYEWTK


Comment on Re: undefined array use
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://163930]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2014-08-23 16:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (175 votes), past polls