Fix script manipulate image (upload goes on loop) - deprecated php login function

Completed Posted 6 years ago Paid on delivery
Completed Paid on delivery

Hi,

I have a script that stopped to work recently. No recently changes, except we tried to upgrate server to php 7.x and then reverted back to php 5.6

It shows error "Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in.. "

Basically the script works as follows:

- user select the effect/frame to add to their photo

- let users upload their image

- the script add the effects/frame and make it downloable/shared

Now when the user uploads the photo, it shows the deprecated error, and the upload goes on loop, I don't know if it does not complete the upload or does not start the step of adding effect/frame

Goal: You have to check, change the following php login function to a recent one:

$link = mysql_connect($cfg['sqlhost'], $cfg['sqluser'], $cfg['sqlpass']) or die("Could not connect.");

mysql_select_db($cfg['sqldb']) or die("Could not find database.");

mysql_query('SET NAMES utf8');

mysql_query("SET CHARACTER SET utf8");

and then, if this not fix the loop while uploading, investigate into the script (basically 1 file page) to fix the error.

Feel free to ask further info (or live example) in private comments, thanks

JavaScript MySQL PHP

Project ID: #14459024

About the project

23 proposals Remote project Active 6 years ago

Awarded to:

rylkov

I can convert your PHP code to use more modern MySQL libraries. Relevant Skills and Experience I wrote many PHP scripts with MySQL. Proposed Milestones €8 EUR - Project Milestone

€8 EUR in 1 day
(68 Reviews)
5.6

23 freelancers are bidding on average €24 for this job

shebkhan2007

Hey. I can upgrade your current db connection to mysqli it will work and it will be future proof as well. lets discuss this more Relevant Skills and Experience You can also review my profile for my past projects ht More

€29 EUR in 1 day
(698 Reviews)
7.2
sat12

there needs to make changes in code. you have to use mysqli Relevant Skills and Experience I amphp, joomla, virtuemart expert having 5 years of experience. Proposed Milestones €23 EUR - work

€23 EUR in 1 day
(315 Reviews)
6.6
sr33raj

hello i can fix the script error after php upgrade ut will only take few hours

€20 EUR in 0 days
(135 Reviews)
5.8
versacode

We are a group of electrical engineers and web developers. You will need to use mysqli_ or PDO functions instead of mysql_ to get rid of the warning, and we will be happy to do this for you. Relevant Skills and Experi More

€30 EUR in 1 day
(41 Reviews)
5.4
rlo56467a9097547

Fix error on upload file script Relevant Skills and Experience php mysql Proposed Milestones €29 EUR - finish work

€29 EUR in 0 days
(33 Reviews)
4.8
amjadali4888

Greetings I have read your job description and I want to talk about more that regards that I can do that project within the time frame Regards Amjad Ali Relevant Skills and Experience PHP,MYSQLI Proposed Milesto More

€23 EUR in 1 day
(37 Reviews)
4.7
irfan811

I have four years’ experience in multiple programming languages such as Python, PHP, MySQL, Ajax, Jquery, Symfony, Codeigniter and Wordpress, Shopify, Data Scraping. Relevant Skills and Experience My expertise lay in More

€30 EUR in 1 day
(11 Reviews)
3.6
GervaiseT

Hello ! I have already completed similar projects in the past (upgrade SQL connection), so I should be able to help you ! Regards Relevant Skills and Experience PHP Expert Worked on similar projects in the past System More

€20 EUR in 1 day
(9 Reviews)
3.7
alexandrsolodov

Hello. I constantly work with the technologies specified in the job description. I need more information, but in any case, working for me is not a problem.

€23 EUR in 5 days
(12 Reviews)
3.6
ilatech

Migrating php5 code to php7, and fix issues. Relevant Skills and Experience I am not an expert in PHP, but I work from time to time with this language. Proposed Milestones €25 EUR - Complete the project Can you prov More

€25 EUR in 10 days
(2 Reviews)
0.7
qamrulhaque

mysql has been replaced with mysqli in php 7. I think your project is using core php instead of any php framework that's why it is generating error on php update. Relevant Skills and Experience I have expertise in PHP More

€8 EUR in 0 days
(1 Review)
0.0
kpstsp

Hello! I'm looked your script and error, I think you have another problem, cause 'Deprecated: ...' - it's only warning and not critical for your script work. Relevant Skills and Experience Python\PHP\Java programming More

€23 EUR in 2 days
(0 Reviews)
0.0
phoenix0066

Just try to suppress the error reporting with error_reporting(0); for that piece and see if it works. May be it just ruins redirect/headers or something like that. Stay tuned, I'm is still working on this proposal.

€23 EUR in 2 days
(0 Reviews)
0.0
Lultu

Need to change your script to use mysqli_connect and similar mysqli functions instead of mysql_connect and other functions. I guess the database entry is not happening. Upload should work fine. Relevant Skills and Ex More

€19 EUR in 3 days
(0 Reviews)
0.0