Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: DBD::mysql trouble

by venkatesan_G02 (Sexton)
on Sep 23, 2009 at 11:11 UTC ( [id://796934]=note: print w/replies, xml ) Need Help??


in reply to DBD::mysql trouble

I think you can try this code.
my $dbh = DBI->connect('DBI:mysql:yourmysqldatabasename','root','passw +ord')||die "can't connect to dabase:$DBI::errstr"; my $dbh=$dbh->prepare("UPDATE TableName SET ColumnName=\"$value\" wher +e ColumnName=$value2 "); $dbh->execute(); $dbh->disconnect();
As mentioned by zwon (Deacon), quote your values.

Also, the command to clear screan in windows is system("cls")

Thanks

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-19 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found