Find Jobs
Hire Freelancers

Correct code for app

$10-30 USD

Cancelled
Posted over 8 years ago

$10-30 USD

Paid on delivery
PART 1: See [login to view URL] In app/application/config/[login to view URL], You will find config file to connect script to DB. It use: $db['default']['dbprefix'] = ''; and $db['default']['swap_pre'] = ''; But if I change prefix in database and in this file it doest work. See screenshot [login to view URL] It happened because in code don’t use prefix for query to DB. See part of code: $query = "SELECT `user`.`id`,`user`.`name` as `name`,`email`,`user`.`accesslevel`,`accesslevel`.`name` as `access` FROM `user` INNER JOIN `accesslevel` ON `user`.`accesslevel` = `accesslevel`.`id` WHERE `email` LIKE '$username' AND `password` LIKE '$password' AND `status`=1 AND `accesslevel` IN (1,2) «; So I need make this code query to DB with prefix. PART 2: I neet to use variable prefix in database.php. We can take prefix from folder name. [login to view URL] Point is I need when I make new blog using BlockThemplate pluginn, new blog will have new DB tables of app script and script will be connect to new DB prefix.
Project ID: 9036069

About the project

Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of RUSSIAN FEDERATION
Moscow, Russian Federation
5.0
1
Payment method verified
Member since May 2, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.