- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 9
- Posts with Upvotes
- 9
- Upvoting Members
- 9
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
Web Developer
- Interests
- Games , Books , Movie , IT
117 Posted Topics
Re: <?php require_once 'PHPExcel-1.7.7/Classes/PHPExcel.php'; $objPHPExcel = new PHPExcel(); $objPHPExcel->getProperties()->setCreator("Mangel Murti"); $objPHPExcel->getProperties()->setLastModifiedBy("Mangel Murti"); $objPHPExcel->getProperties()->setTitle("Testing"); $objPHPExcel->getProperties()->setSubject("Testiin Me"); $objPHPExcel->getProperties()->setDescription("what to see what to get."); $objPHPExcel->setActiveSheetIndex(0); $objPHPExcel->getActiveSheet()->SetCellValue('A1', 'Hello'); $objPHPExcel->getActiveSheet()->SetCellValue('B2', 'world!'); $objPHPExcel->getActiveSheet()->SetCellValue('D2', 'world!'); $objPHPExcel->getActiveSheet()->setTitle('MyTest'); $gdImage = imagecreatefromjpeg('header.jpg'); $objDrawing = new PHPExcel_Worksheet_MemoryDrawing(); $objDrawing->setName('Sample image'); $objDrawing->setDescription('TEST'); $objDrawing->setImageResource($gdImage); $objDrawing->setRenderingFunction(PHPExcel_Worksheet_MemoryDrawing::RENDERING_JPEG); $objDrawing->setMimeType(PHPExcel_Worksheet_MemoryDrawing::MIMETYPE_DEFAULT); $objDrawing->setHeight(100); $objDrawing->setCoordinates('A1'); $objDrawing->setWorksheet($objPHPExcel->getActiveSheet()); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007'); $objWriter->save('test.xlsx'); ?> | |
Let say i have purchase 220 Bids for $30.80 , now i am going to place a bid for a product A, With each new bid the price goes up $0.01. is it meaning that i can place 1 to 220 any value during auction or in a deal when … | |
Re: As I understand , you can make a javascript function OR JQuery , beacuse your listbox is dynamic so as you said you don't know what values are set in option but if you make a javascript function you can know what value are selected by onchange event. I am … | |
Re: If i understand correctly. You can read code [Click Here](http://code2you.blogspot.in/2015/12/codigniter-dynamic-categories-view.html) . if you process like then sample results will be similar to this link [Click Here](https://www.cashbackforex.com/en-us/school/forexdictionary.aspx) web site where if you check in left side bar Glossary.....etc will be fetch from mysql as well as content , all links url … | |
Re: * As i read your code , you need to check your view function. i just modify function for test purpose **public function get_all_images(){** $this->load->model('carsol'); $query = $this->carsol->get_all_images(); $count = count($query); $indicators = ''; $slides = ''; $counter = 0; foreach($query AS $key => $value){ $image = $query[$key]['theme_thumb']; $title = … | |
Re: 1. Your view file and Controller function goes like below <html> <head></head> <body> <div id="container"> <a href="index.php?add=1">Add page</a> </div> </body> </html> class Welcome extends CI_Controller { public function index(){ $add=(int) $this->input->get('add'); if(isset($add) && $add === 1) { echo "show ad page form"; } else { echo "show the whole page"; … | |
Re: As i can see , your array amount is not in proper array format. if i removed that **: false)))** , your array become like below and it will work so i don't know how that array is generating by your long code. $output=array('amount' => array( 'FriendlyName' => 'pieces', 'Type' … | |
Re: As i understand , you need to place a condition **$selected** , i have taken just country list so **intid** is primary key of table which is passing to url. hope this helps you. $sql = "SELECT * FROM country"; $result = mysql_query($sql); while ($row = mysql_fetch_assoc($result)) { $selected = … ![]() | |
Re: replace. it will work. and if you do not want to pass email_id in segment , then remove $input argument from function & get email id as $this->input->post('email_id'); url: "<?php echo base_url(); ?>Traveller/email_is_taken/"+$("#email_id").val() | |
Re: Problem is when you are cloning ckeditor TR , so textarea with same id OR name created in dom. so second editor after click on add more will not come in editor mode. if try to input some text via editor tool . it will always inject to first cke … ![]() | |
id,ancestor,descendant,lvl,tier_id 1, 11, 11, 0, 0 2, 11, 65, 1, 1 3, 65, 65, 0, 0 5, 11, 66, 1, 2 6, 66, 66, 0, 0 i am using closure table model. i placed tier_id cloumn there. let say new entry save in above table then tier_id should be placed … ![]() | |
registration table broker_id , email , affiliate_id.....etc 40 abc@gmail.com 9999 62 xyz@gmail.com 8888 affiliate_Stats table status_id , affiliate_id , banner_id , campaign_id , clicks impressioins , ctr , sale , sale_price, total_earned...etc 27 9999 3 0 0 1 0 29 9999 3 0 1 0 0 affiliate_chain id name recruitedby … | |
I have created a sp little bit confuse about it. how to count result set if data availabe then show it and if not then retun ResultStatus is zero. did not work much with sp. thanks for any help suggestions. CREATE DEFINER=`root`@`localhost` PROCEDURE `usp_GetProduct`(IN `iProductCategoryId` INT) BEGIN DECLARE ResultStatus INT … | |
Re: As i understand your code. i did it like below. hope it helps you. <form method="POST" action="select_vendor.php"> <div id="order"> <?php $query = "SELECT * FROM products"; $con = mysqli_connect("localhost", "root", "123123", "TEST"); $query_confirm = mysqli_query($con, $query); echo "<select name='product' id='product'>"; echo "<option>" . "Select Product" . "</option>"; while ($row_product = … | |
Re: But there is approve_user function exits and there is wp_mail function inside itwhich fire when admin approve user? if i got you correct? | |
Re: Hi i have used below function in my project. i am not expert of php but trying.below code is for Codeigniter. hope it help you. function generate_invoice($l, $c = 'abcdefghijklmnopqrstuvwxyz1234567890') { for ($s = '', $cl = strlen($c) - 1, $i = 0; $i < $l; $s .= $c[mt_rand(0, $cl)], … | |
Re: As i understood your code. plz put dataType: 'json', in your ajax request. i dontn't know what is your ajax_file.php is returning like html or json? if your php script returing json then you can access json like resp.Mstatus. my php script returning below json code. {"Mstatus":"error","Cmessage":"","msg":"Your password is invalid."} … | |
Re: I used union in my one of project. Union requied columun must be same in both queries.hope it helps you. function get_invoice_data($start, $limit, $user_id, $flag_total_count = "NO", $package) { $q_part = ''; if ($flag_total_count != 'YES') $q_part .=" limit " . $start . " , " . $limit . " … | |
HI All , i have an offer table like offer_id , user_id , no_of_clicks , price...etc i want to fetch records and show to user like "best selling offer" , "value for money". best selling offer means the offer which sell more and displaying those offers to users. but what … ![]() | |
how we can display records 1-5 for 1 user. for 2nd user, we can display 2-6 for 3rd user, we can display 3-7 so on... | |
For one order XYZ can be a buyer and for different order XYZ will be a seller. how to assign buyer and seller responsibilities to users per order basis. give me some example of table structure. thanks in advance | |
Re: As i understand you need to call function onclick of checkboxes. hope its help you. <html> <head> <title>Angular JS Controller</title> </head> <body onload="autoenabledisableinput()"> <div id="DepID"> <input type="text" id="Dep1Name" name="Dep1Name"> <input type="text" id="Dep1Surname" name="Dep1Surname"> <input type="text" id="Dep2Name" name="Dep2Name"> <input type="text" id="Dep2Surname" name="Dep2Surname"> <input type="text" id="Dep3Name" name="Dep3Name"> <input type="text" id="Dep3Surname" name="Dep3Surname"> </div> … | |
Re: you can not remove or delete foreign key data on table 2 which relate both tables. in other words data consistancy Maintaine by PK FK in tables. you have to remove first foreign key constraint. | |
Re: It depends on code you write.there is some points that should be notice. 1. CI store session in cookie. so you can encrypt session in config.php file or you can use database for storing session. 2. I think proper form validation should be there if you are building your application … | |
Re: Hi use like below. i tested it. hope this helps you. <?php '<Articles> <Article ID="111"> <author>Peter Paul</author> <pubDate>01/01/2015</pubDate> <Translations> <lang1>English</lang1> <lang2>French</lang2> <lang3>Arab</lang3> <lang3>Chinese</lang3> </Translations> </Article> <Article ID="222"> <author>Monkey Rice</author> <pubDate>01/01/2016</pubDate> <Translations> <lang1>English</lang1> </Translations> </Article> <Article ID="333"> <author>John Silas</author> <pubDate>01/01/2017</pubDate> <Translations> <lang1 country="england">English</lang1> <lang2 country="france">French</lang2> <lang3 country="china">Chinese</lang3> </Translations> </Article> <Article ID="444"> … | |
Re: As in your view you can just put condition. hope this helps you. <div class="panel-body" id="attractions"> <?php if(count($events) > 0){?> <?php foreach ($events as $event_item): ?> <?php echo "<p style='font-weight: bold; color: #555555;'>".$event_item['eventName']."</p>"; ?> <?php echo "<p>".$event_item['eventInfo']."</p>"; ?> <?php echo "<p style='color: #555555; font-weight: bold;'>"."Event Date: ".$event_item['eventDate']."</p>"; ?> <?php endforeach; … | |
Re: As i understand , you can find iframe. hope this help you. <script> $(document).ready(function(){ var test=$('#player').find('iframe').attr('id'); alert(test); }); </script> | |
i have build a project where wordpress themes can be purchased. Build with Codeigniter how to implement multiple coupons for a single Theme / Item for % discount. i need some help regarding database design. | |
Re: As i can see your code you define js variable as 'var new' its not correct. i just modify your code. i don't know that what you are trying to achive. but as i understood below code fire ajax on submit click. <html> <head> <script src="//code.jquery.com/jquery-1.11.0.min.js"></script> </head> <body> <form name="form1" … | |
Re: As i understand your requirement you need to clear html before injecting new clone. i am not sure but just test your code in my way. hope this helps you. <html> <head> <script src="//code.jquery.com/jquery-1.11.0.min.js"></script> </head> <body> <div style="width:4%;float:left;"> <select name="children" id="children"> <option value='1'>2</option> <option value='4'>4</option> </select> </div> <div style="width:500px;float:left;"> <div … | |
Hi All , i have my admin panel where i build a form which store information of model popup like its color , title etc and also fields is require to show in model popup. i means all features of model popup is generated by admin and saved to database … | |
I am just starting a project on google map. i am using below link to get user current location [Click Here](http://www.sitepoint.com/working-with-geolocation-and-google-maps-api/) how can i find other nearby users / places based on current lat , long? any suggestion help me a lot. thanks | |
i have three table i attached db files with query result i am getting. my query is below select tts.transaction_id,tts.service_type,tt.theme_name from transactions tts inner join users tu on tu.user_id=tts.user_id inner join themes tt where tts.user_id = 71 and tts.service_type in ('purchased','startup_service') group by tts.theme_transaction_id; i am not getting write theme … | |
Hi All PHP , Below is funtion which store product in session. $resource is database link and product just getting product from database for a given $_GET['product_id'].when i am clicking on a single product and adding that in cart it is working. if i add another product so session array … | |
Re: i just test above code after response print it working. $response = curl_exec($ch); print_r($response); exit; ![]() | |
Re: use below <?php $a=114024; echo date('d-m-Y',strtotime($a)); ?> | |
Re: hi use your code and just put my app id fb. so it is sharing. i don't know what you want or may be fb app id you are putting is wrong. | |
i am developing a plugin where i need that on each post title a small icon added next to post title. my code is below. it is adding icon but i need both seperately clickable.(both icon and title is pointing to same url action). add_filter( 'the_title', 'modified_post_title'); function modified_post_title ($title) … | |
http://www.vsshare.vsshare.hop.clickbank.net when i want to share or post above link (facebook) from my application it is not sharing it. any solution? | |
Re: i think you want this. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script type="text/javascript"> function passList() { var p=[]; $('input.first').each( function() { if($(this).prop('checked')) { p.push($(this).attr('rel')); } } ); var q=[]; $('input.second').each( function() { if($(this).prop('checked')) { q.push($(this).attr('rel')); } } ); $.ajax( { url:'process.php', type:'POST', data: … | |
getting recepient based on login support id 5 login i need recepitent as 3 and name vimal. | |
i am building a message system for website.i have two table one store user_detail and other store message sent to each other users. you can see main.jpg file where inbox sent etc.. will be display and action takes accordingly. $query='select m1.id, m1.title, m1.timestamp, count(m2.id) as reps, user_detail.user_id as userid, user_detail.username … ![]() | |
Re: i think on window u have to stop IIS and then start your xampp or wamp | |
i configure openinviter with Codeigniter. gamil conatact is fetching but yahoo and facebook contacts list are not working.any suggestion will be appre. ![]() | |
i have php application already build with CI.i want to move to app to php fog cloud. what i have to do can any one guide me? | |
hi i am working on a mobile verification code wher user can enter his email and his mobile number.then code has to be send to his mobile number,by that code user can login to site. how to achive this target. thanx in advance....... | |
if i have a given date so how can i find in what date sun and sat comming ... ? i store 0 for sat and 6 for sun in database. ![]() | |
i want to generate this array from mysql data base result set?? $nav = Array ( Array ( 'id' => 27, 'name' => 'home', 'link' => 'home.html', 'parent' => 0 ), Array ( 'id' => 30, 'name' => 'about', 'link' => 'about.html', 'parent' => 27 ) ); | |
  i have two tables which i attached. user can add N level question answers. i am using CI. i am using this code for generating ul li. and my array which fetch result set is like this.... but not working ... for working ul li function … | |
hi , i have two table i want result in tree view.how to do it. if i have n level question and answer then what is db design for it thnx for any help |
The End.