WordPress or php Odd Syntax error and google chrome ajax login

so i'm doing a search for tables and i have a 1500 line of code and it works perfectly fine but i have two problem one is my code errors like this :

if ($wpdb->get_var('show tables like "' . placeholders . '"') == placeholders) {
    foreach ($placeholders as $placeholder_) {
        $Gplaceholders[$placeholder_] = $wpdb->get_row('SELECT * FROM `' . placeholders . '` WHERE `placeholder` = "' . $placeholder_ . '"', ARRAY_A)['value'];


Parse error: syntax error, unexpected [ in ******

other is my ajax login and registration works perfectly fine on Mozilla but on chrome it just sniping and not doing anything , has anyone encounter this kind of problem in chrome?


$Gplaceholders[$placeholder_] = $wpdb->get_row('SELECT * FROM `' . placeholders . '` WHERE `placeholder` = "' . $placeholder_ . '"', ARRAY_A)['value'];

Your first placeholders doesn't need to be wrapped in ' . . ' - try:

$Gplaceholders[$placeholder_] = $wpdb->get_row('SELECT * FROM `placeholders` WHERE `placeholder` = "' . $placeholder_ . '"', ARRAY_A)['value'];

Are you sure you want to have 'G' in '$Gplaceholders' ?

Need Your Help

Monitoring a Facebook page

python facebook

I'm a python programmer and I'd like to know if it's possible to deal with some Facebook statistics? I've heard a lot of things about Facebook Graphs and Facebook API.

Maven Not able to resolve dependencies for classes generated inside target/generated-sources/javacc folder

java eclipse maven m2e

I am trying to set up my project in eclipse . One of the module references classes in the target/generatedsources folder. Unfortunately Eclipse is not able to resolve it . I even modified the pom.x...