Pelican Parts
Parts Catalog Accessories Catalog How To Articles Tech Forums
Call Pelican Parts at 888-280-7799
Shopping Cart Cart | Project List | Order Status | Help



Go Back   Pelican Parts Forums > Miscellaneous and Off Topic Forums > Off Topic Discussions


Reply
 
LinkBack Thread Tools Rate Thread
Author
Thread Post New Thread    Reply
Insert Tag Line HERE.....
 
rattlsnak's Avatar
 
Join Date: Nov 2000
Location: Atlanta, Ga
Posts: 9,683
Garage
Send a message via AIM to rattlsnak
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
Old 05-11-2018, 10:17 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #1 (permalink)
Insert Tag Line HERE.....
 
rattlsnak's Avatar
 
Join Date: Nov 2000
Location: Atlanta, Ga
Posts: 9,683
Garage
Send a message via AIM to rattlsnak
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
Old 05-11-2018, 11:02 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #2 (permalink)
Registered
 
id10t's Avatar
 
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..
Old 05-11-2018, 12:46 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #3 (permalink)
The Unsettler
 
stomachmonkey's Avatar
 
Join Date: Dec 2002
Location: Lantanna TX
Posts: 23,885
Send a message via AIM to stomachmonkey
Quote:
Originally Posted by id10t View Post
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.

__________________
"I want my two dollars"
"Goodbye and thanks for the fish"
"Proud Member and Supporter of the YWL"
"Brandon Won"
Old 05-11-2018, 04:43 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #4 (permalink)
Reply

Thread Tools
Rate This Thread
Rate This Thread:

 


All times are GMT -8. The time now is 01:35 AM.


 
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 -    DMCA Registered Agent Contact Page
 

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