Find Jobs
Hire Freelancers

Small Piece of PHP Coding Required

$30-100 USD

Completed
Posted almost 20 years ago

$30-100 USD

Paid on delivery
I need a modification done to an existing php page. I have uploaded the page. Currently the script does an sql query to determine the domain name to display $query_domainlookup = "SELECT * FROM domain_names WHERE client_id = '$this_user[client_id]'"; $domainlookup = mysql_query($query_domainlookup, $dbh) or die(mysql_error()); $totalRows_domainlookup = mysql_num_rows($domainlookup); Then the output <? while($row_domainlookup = mysql_fetch_array($domainlookup)) { ?> <ul> <li type=square><a href="http://<? echo $row_domainlookup[domain_name]; ?>/cpanel/">Control Panel Login for <? echo $row_domainlookup[domain_name]; ?></a><br> I need this query to be changed and the output modified. I have written the query to retrive the required information from the database. The new query is SELECT CASE [login to view URL] WHEN 'mod_cpanel' THEN '/cpanel/' WHEN 'mod_diradmin' THEN ':2222/' ELSE 'cp.' END , [login to view URL] FROM client_package c , account_details a WHERE c.cp_id = a.cp_id AND c.client_id = a.client_id AND c.pack_id > 1 AND c.client_id = 28 The output would then be in two formats depending on the results: If /cpanel/ or :2222/ ore returned then the output would be in the format of: domain/cpanel/ or domain:2222/ If neither of those values are returned then the format would be [login to view URL] The Domain also needs to be kept as a separate variable so it can be output on it's own. I have uploaded the current page that I am using I hope that is clear but if you have any questions please let me know ## Deliverables Completed script that produces the required output to be displayed on the web page ## Platform Linux
Project ID: 3236497

About the project

7 proposals
Remote project
Active 20 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
Awarded to:
User Avatar
See private message.
$12 USD in 2 days
5.0 (1 review)
0.6
0.6
7 freelancers are bidding on average $31 USD for this job
User Avatar
See private message.
$76.50 USD in 2 days
4.7 (81 reviews)
6.0
6.0
User Avatar
See private message.
$12.75 USD in 2 days
4.9 (49 reviews)
5.4
5.4
User Avatar
See private message.
$12.75 USD in 2 days
5.0 (16 reviews)
3.6
3.6
User Avatar
See private message.
$55.25 USD in 2 days
4.9 (12 reviews)
3.4
3.4
User Avatar
See private message.
$21.25 USD in 2 days
5.0 (9 reviews)
2.1
2.1
User Avatar
See private message.
$25.50 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of AUSTRALIA
Australia
5.0
15
Payment method verified
Member since Nov 9, 2011

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.