Re: Re: Re: about UPDATE table

2000-11-23 Thread Gerhard Egger
> $ki="UPDATE table1 SET name= 'ok5' where id=4 " !! Is there a semicolon after "where id=4 ""?? # well, i´m using Linux & mySQL, # i don´t have any idea about using disconnect on M$-SQL # (but it will propably work the same (??)) regards (gerhard); --

Re: Re: about UPDATE table

2000-11-23 Thread lyf
i have try it .but server error also? i have cut the select out .left this: my system is :winnt+sql+perl5.6.0+apache1.3.12 #!perl5.6.0.exe print "Content-type:text/html\n\n"; $table="table1"; use DBI ; $DSN = 'driver={SQL Server};Server=172.16.166.49;database=myweb;uid=sa;pwd=sa;'; $dbh = DBI->c

Re: about UPDATE table

2000-11-22 Thread Gerhard Egger
I think the right thing would be: > $ki="UPDATE table1 SET name= 'ok5' where id=4 " > $st=$dbh->prepare($ki); $st -> execute; $st->finish; # # You do not need to finish the handler if you re-use it # use $st again (makes the code more raedable) # > $sth= $dbh -> prepare ("SELECT id,name,phone,