![]() |
|
|
|
Insert Tag Line HERE.....
|
PHP help
Braintrust, I have a few PHP pages where uses can input data and it sends that data into a database where admins can search from by using another php page. It has been working great for years and now my server has upgraded to 7.1 or 7.2 (or one of those variants) and now my pages won't work anymore. I was able to roll it back to 5.6 so my pages will work but I only have limited time before that goes away. What has changed in the newer version so that my basic database connect script doesnt work anymore?
Thanks!
__________________
Marc |
||
![]() |
|
Insert Tag Line HERE.....
|
Making some progress. Didn't realize that the connect string had become obsolete..
Instead of using mysql_connect, am now using mysqli_connect and now I am at least getting in but getting an error code of cannot select db.. investigating that now as nothing has changed there either.
__________________
Marc |
||
![]() |
|
Registered
Join Date: Mar 2003
Posts: 10,339
|
The old mysql_* family of functions has been deprecated ... you need to change to PDO or mysqli
I've got some "it works!" level PDO code that provides a function where you pass it a query and an array full of query parameters and it returns an array with [0] being the status (true/false) and [1]..[n] being data if status is true OR [1] contains any error message generated if [0] is false. PM in bound with link to my function include Last edited by id10t; 05-11-2018 at 01:04 PM.. |
||
![]() |
|
The Unsettler
|
Quote:
__________________
"I want my two dollars" "Goodbye and thanks for the fish" "Proud Member and Supporter of the YWL" "Brandon Won" |
||
![]() |
|