On 28 January 2011 16:37, I wrote:
> Once I 'd deleted the second line it did work in the standalone
> script.  But the duplication is not in the cgi version.  Nevertheless
> now I am assured that it does work, I've just got to find what silly
> mistake I've made in the main script.  I already have a diagnostic
> display giving the correct integer.

I've just tried again wirth the cgi script using exacly the same
routine.  The integer prints fine but at that point the writing of the
page is stopped - in other words the last line in the html source
becomes <p><h1>11</h1></p>.

if ($q{BUTTON} =~ s~^Delete[^\d]+~~i){
        print qq~<p><h1>$q{BUTTON}</h1></p>~;
        my $rows = $dbh->do("DELETE FROM contacts WHERE rowid =$q{BUTTON}");
        print qq~<p><h1>$rows</h1></p>~;
}
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to