develooper Front page | perl.beginners | Postings from September 2009

variables and sql-statements within perlscripts

Thread Next
From:
Ruprecht Helms
Date:
September 28, 2009 09:15
Subject:
variables and sql-statements within perlscripts
Message ID:
4AC0DDDD.5030501@rheynmail.de
Hi,

How have I to write the sql-statement if I want to use variables like this:

<?
...
$sql="SELECT * FROM Table WHERE ID=$recordset";
$result=mysql_db_query($database,$sql);
...
?>

The value of the variable can have the value of another recordsetloop
or a value come from outsite the script.

Regards,
Ruprecht Helms

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About