Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Eror in my sql ??

Nichiren Dinzeo
Registered User
Join date: 14 Feb 2007
Posts: 203
10-11-2009 17:11
Sending data to my external db. Using code that works fine in all my other object and php scripts but for some reason I am getting an error saying I need to look at my sql code at line 3...which is the line below. I don't see anything wrong really. Its simple script and it works fine in my other object.


<?php

$owner = $_POST['owner'];
$distance = $_POST['distance'];
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
10-11-2009 17:21
That's not your SQL code, that's your PHP code.

Look for where your PHP is generating an SQL string like...

"INZERT INTO thingytab (OWNER, DISTANCE) VALUES ('" + $owner + "', '" + $distance + "');"

that code may be hidden in a library somewhere.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Nichiren Dinzeo
Registered User
Join date: 14 Feb 2007
Posts: 203
10-12-2009 11:45
ah..good call...found my error..thx