Skip to content

syntax error on first line of demo code #13

@GoogleCodeExporter

Description

@GoogleCodeExporter
Hmmm - dreamweaver shows syntax error on first line...

here - public function select($table, $where="", $bind="", $fields="*") { }

if I take out the word 'public' the error goes away....

Q: how do I fix this?

<?php

//select Method Declaration
public function select($table, $where="", $bind="", $fields="*") { }

//SELECT #1
$results = $db->select("mytable");

//SELECT #2
$results = $db->select("mytable", "Gender = 'male'");

//SELECT #3 w/Prepared Statement
$search = "J";
$bind = array(
    ":search" => "%$search"
);
$results = $db->select("mytable", "FName LIKE :search", $bind);

?>


Original issue reported on code.google.com by deal...@gmail.com on 12 Jun 2013 at 1:42

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions