Title: Plugin not working after PHP Update
Last modified: March 27, 2019

---

# Plugin not working after PHP Update

 *  Resolved [the_owl](https://wordpress.org/support/users/the_owl/)
 * (@the_owl)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-not-working-after-php-update%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Kirill [Webcraftic support]](https://wordpress.org/support/users/kirillgru/)
 * (@kirillgru)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-working-after-php-update/#post-11377552)
 * Hi, Owl
 * Excuse me. Maybe you also use other snippets on this page or snippets with “everywhere”
   scope? I do not see in the code the word “align” specified in php error.
 * Best regards, Kirill
    Webcraftic team
 *  Thread Starter [the_owl](https://wordpress.org/support/users/the_owl/)
 * (@the_owl)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-working-after-php-update/#post-11378620)
 * Hi there, there isnt anything else on the wp page. I dont have any other php 
   plugins. This isnt a snippet, its code on the page with shortcode [insert_php]
 *  [Temyk](https://wordpress.org/support/users/webtemyk/)
 * (@webtemyk)
 * [7 years ago](https://wordpress.org/support/topic/plugin-not-working-after-php-update/#post-11549934)
 * Hello, [@the_owl](https://wordpress.org/support/users/the_owl/)!
 * Is the problem still relevant?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin not working after PHP Update’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Temyk](https://wordpress.org/support/users/webtemyk/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/plugin-not-working-after-php-update/#post-11549934)
 * Status: resolved