> > > 
> > >   $sth = $dbh->prepare( "INSERT INTO tbl_people ( lastname ) 
> > > VALUES (?)" );
> > 
> > ok. What is the function of the '?' for values ?  
> > can I subsistute a variable (VALUES ($name)"?
> 
> You can, but then you have to worry about properly quoting the
> variable.  It's *MUCH* safer and easier to use the ?(placeholder).
> Read up on placeholders in the book, or do "perldoc DBI" and search
> for "placeholder".

Thanks. I just found a big section in perldoc on this. 
Thanks again for the help.


Reply via email to