Closed

modify php code

This project received 10 bids from talented freelancers with an average bid price of $28 USD.

Get free quotes for a project like this
Employer working
Skills Required
Project Budget
$10 - $30 USD
Total Bids
10
Project Description

Need to make budget editable within joomla website by modyfying php code.

Current code is :-

{source}
<!-- You can place html anywhere within the source tags -->

<?php

$db = JFactory::getDBO();
$user = JFactory::getUser();

$totalAmount = "[url removed, login to view]";
$budget = "[url removed, login to view]";

$query = "SELECT sum([url removed, login to view]) as totalAmount ,users.cf_plan_budget as budget FROM `web148-viyaa2`.`levo_fav_user_planner` plan left join `viyaa_extendedreg_users` users on plan.user_id = users.user_id where plan.user_id = '".$user->id."' group by plan.user_id";

//echo $query;
//exit;
$db->setQuery($query);

if($results = $db->loadAssoc())
{

$totalAmount = $results['totalAmount'];
$budget = $results['budget'];

// return $this->_db->insertid();
//return $results;
}

?>


Budget: <? echo "<p>".$budget."</p>";?>
So Far: <? echo "<p>".$totalAmount."</p>";?>
{/source}

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online