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

Completado Publicado hace 6 años Pagado a la entrega
Completado Pagado a la entrega

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

Nº del proyecto: #14459024

Sobre el proyecto

23 propuestas Proyecto remoto Activo hace 6 años

Adjudicado a:

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 en 1 día
(68 comentarios)
5.6

23 freelancers están ofertando un promedio de €24 por este trabajo

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 Más

€29 EUR en 1 día
(698 comentarios)
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 en 1 día
(315 comentarios)
6.6
sr33raj

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

€20 EUR en 0 días
(135 comentarios)
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 Más

€30 EUR en 1 día
(41 comentarios)
5.4
rlo56467a9097547

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

€29 EUR en 0 días
(33 comentarios)
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 Más

€23 EUR en 1 día
(37 comentarios)
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 Más

€30 EUR en 1 día
(11 comentarios)
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 Más

€20 EUR en 1 día
(9 comentarios)
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 en 5 días
(12 comentarios)
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 Más

€25 EUR en 10 días
(2 comentarios)
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 Más

€8 EUR en 0 días
(1 comentario)
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 Más

€23 EUR en 2 días
(0 comentarios)
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 en 2 días
(0 comentarios)
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 Más

€19 EUR en 3 días
(0 comentarios)
0.0