Perl / MySQL problem

2002-05-14 Thread FLAHERTY, JIM-CONT
Does anyone have an Idea whats going on here , I have an array feeding a SQL Query, But it doesnt always come back with a success . What this query does it is on a Quiz web site . Students take quiz, variable is passed to grade.cgi. that variable is parsed with a while statement. and a variable

Re: Perl / MySQL problem

2002-05-14 Thread Felix Geerinckx
on Tue, 14 May 2002 18:57:56 GMT, Jim-Cont Flaherty wrote: > while( $questions_asked =~ /!([^!]*)/g) { > > my $num1 = $1; > > > print " This is a test: $num1"; # this statement for debug > > my $sth1 = $dbh -> prepare("select * from tests where num = '$num1' > "); > > $sth1