you have a syntax error here
if($name = $gms[$i]
change to
if($name == $gms[$i])
wich is causing T_VARIABLE
error, just close bracket and add =
and you are ready to go
More Related Contents:
- How to get the value from and save to Database in php
- Php date() Date and time is stuck [closed]
- PHP/MySQL insert row then get ‘id’
- What is the best IDE for PHP? [closed]
- CodeIgniter: Create new helper?
- PHP equivalent of .NET/Java’s toString()
- PDO error: ” SQLSTATE[HY000]: General error ” When updating database
- What is the difference between self::$bar and static::$bar in PHP?
- How to deal with backslashes in json strings php
- Storing objects in PHP session
- Regex to detect invalid UTF-8 string
- What is the PHP shorthand for: print var if var exist
- PHP mail: Multiple recipients?
- How to pass a Javascript Array via JQuery Post so that all its contents are accessible via the PHP $_POST array?
- WAMPServer phpMyadmin Maximum execution time of 360 seconds exceeded
- Session unset, or session_destroy? [duplicate]
- Redefining constants in PHP
- Remove domain extension
- Displaying a Base64 images from a database via PHP
- get url content PHP [duplicate]
- Fatal error: Class ‘MongoDB\Driver\Manager’ not found
- Replacing variables in a string
- Why would I use dirname(__FILE__) in an include or include_once statement?
- Unresolvable dependency resolving [Parameter #0 [ $name ]]
- When should I use a bitwise operator?
- Difference between mysql_fetch_array and mysql_fetch_row?
- HTML 5 multi file upload with PHP
- AESCrypt decryption between iOS and PHP
- UTF8 Filenames in PHP and Different Unicode Encodings
- Aggregated query without GROUP BY