Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
83% Quality Score
Upvotes Received
9
Posts with Upvotes
9
Upvoting Members
9
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
2 Commented Posts
7 Endorsements
Ranked #260
Ranked #914
~55.6K People Reached
About Me

Web Developer

Interests
Games , Books , Movie , IT
Favorite Tags

117 Posted Topics

Member Avatar for developer707

<?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'); ?>

Member Avatar for Arvind_7
0
10K
Member Avatar for mangel.murti

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 …

Member Avatar for happygeek
0
191
Member Avatar for AntonyRayan

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 …

Member Avatar for mblan180131
0
363
Member Avatar for UK-1991

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 …

Member Avatar for cereal
0
1K
Member Avatar for Ventech_IT

* 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 = …

Member Avatar for mangel.murti
0
5K
Member Avatar for UK-1991

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"; …

Member Avatar for UK-1991
0
291
Member Avatar for salbic

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' …

Member Avatar for salbic
0
201
Member Avatar for shabbir04

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 = …

Member Avatar for diafol
0
938
Member Avatar for shany0786

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()

Member Avatar for mangel.murti
0
247
Member Avatar for prafful_panwar

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 …

Member Avatar for diafol
0
1K
Member Avatar for mangel.murti

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 …

Member Avatar for diafol
0
554
Member Avatar for mangel.murti

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 …

Member Avatar for mangel.murti
0
680
Member Avatar for mangel.murti

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 …

Member Avatar for ryantroop
0
348
Member Avatar for UK-1991

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 = …

Member Avatar for UK-1991
0
153
Member Avatar for ravi142

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?

Member Avatar for ravi142
1
387
Member Avatar for AntonyRayan

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)], …

Member Avatar for mangel.murti
0
6K
Member Avatar for ramsiva

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."} …

Member Avatar for ramsiva
0
247
Member Avatar for rjgapz

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 . " …

Member Avatar for mangel.murti
0
4K
Member Avatar for mangel.murti

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 …

Member Avatar for diafol
0
158
Member Avatar for mangel.murti

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...

Member Avatar for mangel.murti
0
188
Member Avatar for mangel.murti

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

Member Avatar for mangel.murti
0
139
Member Avatar for fabzster

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> …

Member Avatar for Dhugalmac
0
359
Member Avatar for malatamil

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.

Member Avatar for mangel.murti
0
211
Member Avatar for Sikander Nasar

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 …

Member Avatar for mangel.murti
0
170
Member Avatar for Osagie_1

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"> …

Member Avatar for mangel.murti
0
119
Member Avatar for Ventech_IT

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; …

Member Avatar for Ventech_IT
0
257
Member Avatar for reibi

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>

Member Avatar for mangel.murti
0
308
Member Avatar for mangel.murti

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.

Member Avatar for mangel.murti
0
181
Member Avatar for joshua_8

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" …

Member Avatar for wherrelz
0
278
Member Avatar for nadiam

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 …

Member Avatar for mangel.murti
0
271
Member Avatar for mangel.murti

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 …

Member Avatar for gabrielcastillo
0
109
Member Avatar for mangel.murti

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

Member Avatar for mangel.murti
0
135
Member Avatar for mangel.murti

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 …

Member Avatar for Taywin
0
146
Member Avatar for mangel.murti

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 …

Member Avatar for mangel.murti
0
142
Member Avatar for punith_1

i just test above code after response print it working. $response = curl_exec($ch); print_r($response); exit;

Member Avatar for diafol
-4
2K
Member Avatar for rpv_sen
Member Avatar for rpv_sen
0
186
Member Avatar for gsynr

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.

Member Avatar for gsynr
0
262
Member Avatar for mangel.murti

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) …

Member Avatar for mangel.murti
0
199
Member Avatar for mangel.murti

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?

Member Avatar for pixelsoul
0
91
Member Avatar for boney

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: …

Member Avatar for boney
0
225
Member Avatar for mangel.murti

getting recepient based on login support id 5 login i need recepitent as 3 and name vimal.

Member Avatar for mangel.murti
0
206
Member Avatar for mangel.murti

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 …

Member Avatar for diafol
0
139
Member Avatar for snadboy6371
Member Avatar for veedeoo
0
245
Member Avatar for mangel.murti

i configure openinviter with Codeigniter. gamil conatact is fetching but yahoo and facebook contacts list are not working.any suggestion will be appre.

Member Avatar for LastMitch
0
177
Member Avatar for mangel.murti

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?

Member Avatar for pritaeas
0
58
Member Avatar for mangel.murti

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.......

Member Avatar for jewel205
0
202
Member Avatar for mangel.murti

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.

Member Avatar for diafol
0
187
Member Avatar for mangel.murti

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 ) );

Member Avatar for vibhaJ
0
120
Member Avatar for mangel.murti

![chil_table](/attachments/large/0/chil_table.JPG "chil_table") ![main_table2](/attachments/large/0/main_table2.JPG "main_table2") 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 …

Member Avatar for Biiim
0
294
Member Avatar for mangel.murti

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

Member Avatar for pritaeas
0
151

The End.