After an upgrade to PHP7 - error
1) I have this page which is a form to fill out and submit.
2) When it is filled out and submitted I get error [Fatal error: Uncaught Error: Call to undefined function mysql_insert_id() in /home/example/public_html/class/admin_class.php:137 Stack trace: #0 /home/example/public_html/become_dealer.php(94): admin->add_dealer('1234*', 'Test', 'ES1388704', 'Name', 'Surname', 'contact@test...', 'NNN-000-0000', '', '6170', '', 'City', '29', '89139', '1', '5', 'Friends') #1 {main} thrown in /home/example/public_html/class/admin_class.php on line 137]
3) I contacted my hosting company and they said
[Could be related to the php and sql upgrades out servers underwent. Although that was months ago
But here sounds like a small adjustment needs to happen in admin_class.php
There must be some kind of replacement for mysql_insert_id()
basically that function isn't php7 compatible from what I'm googling]
Any idea how to go about fixing this anyone?
[edited by: not2easy at 5:09 pm (utc) on Feb 18, 2018]
[edit reason] privatized [/edit]