Pelican Parts Forums

Pelican Parts Forums (http://forums.pelicanparts.com/)
-   Off Topic Discussions (http://forums.pelicanparts.com/off-topic-discussions/)
-   -   PHP help (http://forums.pelicanparts.com/off-topic-discussions/996288-php-help.html)

rattlsnak 05-11-2018 10:17 AM

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!

rattlsnak 05-11-2018 11:02 AM

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.

id10t 05-11-2018 12:46 PM

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

stomachmonkey 05-11-2018 04:43 PM

Quote:

Originally Posted by id10t (Post 10033580)
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

This.


All times are GMT -8. The time now is 08:58 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0
Copyright 2025 Pelican Parts, LLC - Posts may be archived for display on the Pelican Parts Website


DTO Garage Plus vBulletin Plugins by Drive Thru Online, Inc.