Hi
Anyone here familiar with Layar development? - if not this is more of a mysql in php question anyway.
I’m working through the tutorial, Layer with 1d icons, 2d images and 3d objects (http://www.layar.com/documentation/browser/tutorials-tools/layer-1d-icons-2d-images-and-3d-objects/) and attempting to port it to xml. It’s going fine but I’m a little stuck on what the following is actually doing inside the getTransform:
// Binds the named parameter marker ":transformID" to the specified parameter
// value $transformID
$sql_transform->bindParam(':transformID', $transformID, PDO::PARAM_INT);
// Use PDO::execute() to execute the prepared statement $sql_transform.
$sql_transform->execute();
// Fetch the poi transform.
$rawTransform = $sql_transform->fetch(PDO::FETCH_ASSOC);
Is this a merged mysql query (i.e. results from two table merged if they match ids)? I understand that the first mysql query in getTransform:
$sql_transform = $db->prepare("
SELECT rel,
angle,
rotate_x,
rotate_y,
rotate_z,
translate_x,
translate_y,
translate_z,
scale
FROM Transform
WHERE id = :transformID
LIMIT 0,1 ");
pulls out rel, angle, rotate_x, rotate_y, rotate_z, translate_x, translate_y, translate_z and scale but what does the query array look like when the $sql_transform->bindParam bit is executed? If anyone has a working Layar a print_r of this posted a response would be great to help me visualise this.
Thanks in advance
Garrett