Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^6: MySQL Table adding with Perl

by Corion (Patriarch)
on Mar 06, 2013 at 21:22 UTC ( [id://1022095]=note: print w/replies, xml ) Need Help??


in reply to Re^5: MySQL Table adding with Perl
in thread MySQL Table adding with Perl

Your code cannot run at all:

$maketable = ("CREATE TABLE $newuser (A,B,C,D,E)");

This is not valid SQL (except maybe in SQLite). But that doesn't matter because you never run that statement.

$sth = execute();

This should never work. You need to call the ->execute() method on your statement handle. Unless you also have defined (but not shown to us) a subroutine with the name execute.

Replies are listed 'Best First'.
Re^7: MySQL Table adding with Perl
by Anonymous Monk on Mar 06, 2013 at 21:27 UTC

    After the change it is responding with errors. Sorry, beginner Perl programmer mistake. Thanks for the answer!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-23 17:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found