jwlarson3rd has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Perl DBI
by Ao (Friar) on Feb 01, 2004 at 01:26 UTC
    jwlarson3rd, in order to help you at all, we really need to know what the error message is. Which line generated the error? Is there some other code in your script that might be the culprit? You aren't giving us anything to help you with, we're not omniscient (ok, maybe a few of the locals are, but I'm not) here.

    One thing I do see with what little scraps you've given us is that you appear to be trying to drop a TABLE named $username which I wouldn't think would be a tablename. Maybe it's something more like $username.$tablename ?

      Sorry It is a syntax error. DBD::mysql::st execute failed: You have an error in your SQL syntax near '' at line 1 at deleteuser.cgi line 15.
      my $sthe=$dbh->prepare("DROP TABLE $username"); $sthe->execute();(line 15)
      john larson
Re: Perl DBI
by derby (Abbot) on Feb 01, 2004 at 00:50 UTC
    Errr ... okay ... so whats the error?
    -derby