
Ben
Deleted
Jun 1, 2000, 8:35 AM
Post #3 of 4
(391 views)
|
|
Re: Help with DBI execute statement
[In reply to]
|
Can't Post
|
|
The full SQL statement with code is as follows; $sqlstat = "SELECT M.IDCode, Name, Address1, Address2, T.Townname, T.Postcode, Type, Ratingstars, Telephone, Fax, Email, WebsiteURL, URLStatus, AdvanceDescript, Picture, Directions, Pricesinglefrom, Pricesingleto, Pricedoublefrom, Pricedoubleto, Pricextarriffrom, Pricextarriffto, Roomnumbers, Maxperson, Roomphone, TV, Movies, Pool/Spa, Dining, NoChildren, Pets, Nonsmoke, Disabledaccess, Aircon/Heating, Cooking, Conference, PayVISA, PayAE, PayMC, PayBC, PayEFTPOS, PayMP, PayDC, PayJC, R.Region, State, Cutterbar FROM Postcode_Townname T, Main M, Post_region P, Region R WHERE M.IDCode = ? AND Advstatus = 1 AND M.CodeNo = T.CodeNo AND T.Postcode = P.Postcode AND P.Region = R.Region"; my $sth = $dbh->prepare($sqlstat) $sth->execute($ID);
|