Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About dardime

  • Rank
  1. This is already resolved. The reason is there is an issue with server side. Thanks BigD for helping me sort this out.
  2. Thank you so much BigB for your reply and help. i appreciate it a lot. Thanks
  3. is it the cause of the wsdl link is empty or cannot access.
  4. Hi I encountered issue when running billing of of our sugar crm application. Pleae help me Thanks Here is the error message.: Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://portal.layer2.co.nz/voip/api/voipwebservice.php?WSDL' : Premature end of data in tag html line 2 in C:\xampp\htdocs\omnicrm\outbox\class.vibe.php:9 Stack trace: #0 C:\xampp\htdocs\omnicrm\outbox\class.vibe.php(9): SoapClient->SoapClient('http://portal.l...') #1 C:\xampp\htdocs\omnicrm\outbox\class.vibe.php(42): Vibe->vibe_api_voipwebservice() #2 C:\xampp\htdocs\omnicrm\outbox\callingdata.php(88): Vibe->getNumList('2017/11/01', '2017/11/30', 'nca', '', 'yes') #3 C:\xampp\htdocs\omnicrm\outbox\index.php(20): include('C:\xampp\htdocs...') #4 {main} thrown in C:\xampp\htdocs\omnicrm\outbox\class.vibe.php on line 9 My Code <?php include("config.php"); class Vibe { function vibe_api_voipwebservice() { ini_set('soap.wsdl_cache_enabled',0); // Disable caching in PHP $client = new SoapClient("http://portal.layer2.co.nz/voip/api/voipwebservice.php?WSDL"); return $client; } function vibe_radius_api() { ini_set('soap.wsdl_cache_enabled',0); // Disable caching in PHP $client = new SoapClient("http://portal.layer2.co.nz/api/radiuswebservice.php?WSDL"); return $client; } function vibe_information() { ini_set('soap.wsdl_cache_enabled',0); // Disable caching in PHP $client = new SoapClient("http://portal.layer2.co.nz/api/informationwebservice.php?WSDL"); return $client; } function db_conn() { $db_conn=mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } return $db_conn; } function directURL($url) { echo '<script> window.location="'.$url.'"; </script> '; } function getNumList($start,$end,$numType,$savecsv,$savedb) { $conn=$this->vibe_api_voipwebservice(); //echo "REQUEST:\n" . $conn ->__getLastRequest() . "\n" ; $search = array(); $type='detail'; if(isset($type)) { if($numType=="nca") { $getNumList = $conn->GetNCANumbersList(USERNAME, PASSWORD, $type, $search); } if($numType=="voip") { $getNumList = $conn->GetNumbersList(USERNAME, PASSWORD, $type, $search); } } if($savecsv=="yes") { $fp = fopen('csv/'.date("Ymdhis").'_a.csv', 'w')or die("can't open file"); }
  5. Any solutions from you please? Yes i have to add each cases....
  6. <?php if($_SESSION['power']=='No' && $_SESSION['display']=='No' && $_SESSION['liquid']=='Yes' && $_SESSION['buttons']=='Yes' && $_SESSION['enclosure']=='Yes') { $quotedprice = $result["price3d"]; } ?>
  7. Hi All Thank you i have sorted this out. Thanks heaps!
  8. Hi I have tried using an if statement condition: <?php if($_SESSION['power']=='No' && $_SESSION['display']=='No' && $_SESSION['liquid']=='Yes' && $_SESSION['buttons']=='Yes' && $_SESSION['enclosure']=='Yes') {?> <div class="pricefont"><b>$<?php echo $result["price3d"]; ?></b></div> Quoted Price<br><br> <?php } ?> And i have these values stored in price, price2d, price3d, price4d, price5d amd whatever the condition met it outputs the value in row. It will show the value but i don't know how to insert this value to database as its only a result. If it can be then it will solve my problem. Please find screenshot
  9. Hi i need help on subtracting a value stored on mysql row using radio buttons in php. Only if you select NO it will deduct 5. Thank you Please find screenshot. Thanks
  10. dardime

    Need help to display sql query result

    Thanks to all of you. I have sorted this out. Cheers!
  11. dardime

    Need help to display sql query result

    Hi Thank you Psycho but i got 0(zero) result.
  12. Hi I need help to display my sql query result on a page. I got working on the sql query but not displaying on the page. Thank you <?php include_once("localhost.php"); $sql="SELECT SUM(`stockinprice` * quantity) AS total FROM stock_stockin,stock_stockin_product,stock_product WHERE stock_date>='1225450800' AND stock_date<='1451559600' AND stock_product.id=stock_stockin_product.product_id AND stock_stockin.id=stock_stockin_product.stockin_id"; $result = mysql_query($sql); while($row = mysql_fetch_array($result)) { echo $row['total']; ?> <?php }?> Total: <b><?php echo $total; ?></b>
  13. dardime

    store echo value on a variable

    Hi Thank you for the reply. I know its basic programming but WHY it outputs 0 (zero)? If i use this code below it will work correctly: $percentage = 0.1; $result = (1.0 - $percentage) * 80; echo 'The result is '.$result.'<br>';
  14. dardime

    store echo value on a variable

    Hi There is a value into it. I fetch it from db i think i dont need to show that anymore echo $row_product["rrp"]; The value of that is 80.
  15. dardime

    store echo value on a variable

    Hi Thank you for your reply. Here is the code im fetching but it is empty $str = $row_product["rrp"]; If i will put a static value it will work echo "80";

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.