PHP - Parse error: syntax error, unexpected T_VARIABLE in /home/a5547326/public_html/index.php on line 6 -


i have been trying put small testing site project @ codebase.host22.org, , cant seem php script work. script hown follows:

<?php    $browser = get_browser(null, true);   $data =  $browser[browser]    $f = fopen("data.csv", "a");   fwrite($f, $data = ",");   fclose($f);  ?> 

i don't see problem. error when trying visit page:

parse error: syntax error, unexpected t_variable in /home/a5547326/public_html/index.php on line 6

my hosting 000webhost. there problem code or server?

you missed semicolon after $data variable.

$data =  $browser[browser]; 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -