Plugin not working after PHP Update
-
Hi there, It appears this plugin no longer works with the code written since my host updated the PHP version. I had the old plugin insert-php. Upgraded to this version to try and fix and its still broke.
Heres the error it throws:
PHP Parse error: syntax error, unexpected 'align' (T_STRING), expecting ',' or ';' in /www/wp-content/plugins/insert-php/insert_php.php(125) : eval()'d code on line 34
Here is the basic contents:
[insert_php] $con = mysql_connect("127.0.0.1","xxxxxxx","xxxxxxxxxxxxxxxxxxxxx"); if (!$con) { die("Can not connect:" . mysql_error()); } mysql_select_db("dbXXXXXXXXX7",$con); $sql = 'SELECT * FROM EmployeeTable where PrimaryCampusPerson="Yes" order by SchoolDistrict, Site'; $myData = mysql_query($sql,$con); echo " "; while($record = mysql_fetch_array($myData)){ echo " "; echo ""; echo " "; echo " "; echo " "; } echo " Campus District Program Manager " . "" . $record['Site'] . "" . " " . $record['WorkAddress'] . " " . $record['WorkCity'] . $record['WorkState'] . $record['WorkZip'] ." " . $record['SchoolMainPhone'] ." " . $record['SchoolDistrict'] . " " . "" . $record['LastName'] . ", " . $record['FirstName'] . "" . " " . $record['WorkCISPhone'] ." " . "". $record['Email'] . "" ." "; [/insert_php]
Any advice on fixing this? I didnt write it. thanks
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Plugin not working after PHP Update’ is closed to new replies.