Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #3K
~16.1K People Reached
Favorite Forums
Favorite Tags

15 Posted Topics

Member Avatar for Vivek_13

array = [1, 2, 3, 1, 2, 4, 5]; for (var i = 0; i < array.length; i++){ for (var j = 0; j < i; j++){ //if (i != j) { if (array[i] == array[j]) { $('#result').append(array[j]+'Repate<br>'); } //} } $('#result').append(array[i]+'<br>'); } ## given output is 1 2 3 …

Member Avatar for parvez alam
0
277
Member Avatar for Vivek_13

how to set countdown of time in jquery... in my database i have one field which content time in int format..

Member Avatar for Aeonix
0
118
Member Avatar for Niloofar24
Member Avatar for Niloofar24
0
429
Member Avatar for Vivek_13

<?php $xml = simplexml_load_file('/exam/'.$file); foreach($xml->main as $main) { if($main['select'] == "selected") { ?> <div> <textarea rows="2" class="span11"><?php echo $main->question ?></textarea> <div class="row" style="padding-left:3%;margin-bottom:1%;"> <ul> <?php foreach($main->ans as $ans) { ?> <li style="float:left; margin-left:1%;" ><input type="radio" name="optionsRadios" class="rdChk" style="margin-top:-2%">&nbsp;<span><?php echo $ans ?></span></li> <?php } ?> </ul> </div > </div> <?php } …

Member Avatar for Vivek_13
0
1K
Member Avatar for phoenix254

$(document).ready(function(){ var ajaxcall = function(){ $.ajax({ method:'post', url:'getmessage.php', data:{user_id:id}, success:function(data){ //do somthing } }); } setInterval(ajaxcall,1000); }); i think ur syntax is wrong..

Member Avatar for Vivek_13
0
242
Member Avatar for ramsiva

var data = 'key='+ value + '&key='+ value; or var m_data = new FormData(); m_data.append( 'key', value); m_data.append( 'key', value);

Member Avatar for phoenix254
0
10K
Member Avatar for annya

if u put text content on image... use this function... //code water mark function watermarkImage ($SourceFile, $WaterMarkText, $DestinationFile) { @unlink($DestinationFile); $top = getimagesize($SourceFile); $info = getimagesize($SourceFile); $top = $top[1]/2; list($width, $height) = getimagesize($SourceFile); $image_p = imagecreatetruecolor($width, $height); if ($info['mime'] == 'image/jpeg') { $image = imagecreatefromjpeg($SourceFile); } elseif ($info['mime'] == 'image/png') …

Member Avatar for Vivek_13
0
993
Member Avatar for Vivek_13

function getRandomNode($file, $numOfQue) { $xml = simplexml_load_file($file); foreach($xml->main as $main) { //Here I want to Get Ramdom Node using $numOfQue. //$numOfQue is a random node Number } $xml->asXml($file); } guys Help me...

Member Avatar for Vivek_13
0
270
Member Avatar for phoenix254
Member Avatar for Vivek_13
0
266
Member Avatar for rpv_sen
Member Avatar for rpv_sen
0
524
Member Avatar for Vivek_13

<root> <question>What is php ?</question> <ansIndex>0</ansIndex> <ans> <0>Server SIde Lang.</0> <1>client side lang</1> <2>none</2> <3>both</3> </ans> </root> //This is my xml File. // Bt I want When <ansIndex> is 0 then set attribute in <0 true>,<ansIndex> is 1 then <1 true> //how i can do this? //my Php code is …

Member Avatar for Vivek_13
0
206
Member Avatar for Vivek_13

<root> <item0><courseId>133</courseId></item0> <item1><question>What is php?</question></item1> <item2><ansIndex>1</ansIndex></item2> <item3><ans>Sever Side Lang.</ans></item3> <item4><ans>Web Lang.</ans></item4> <item5><ans>NOne</ans></item5> <item6><ans>Both</ans></item6> </root> My Xml Function Give This Type Of Output..Bt i Want <root> <courseId>133</courseId> <question>What is php?</question> <ansIndex>1</ansIndex> <ans>Sever Side Lang.</ans> <ans>Web Lang.</ans> <ans>NOne</ans> <ans>Both</ans> </root> This is my Xml Function .. $array = json_decode($_GET['data'],true); function array_to_xml($array, &$xml_user_info) …

Member Avatar for Vivek_13
0
511
Member Avatar for Vivek_13

{"courseId":"116","question":"asdasd","ansIndex":"1","ans0":"sadsa","ans1":"dsad","ans2":"sadasd","ans3":"asdasd"} This is my Json String......How to Convert In to Xml File

Member Avatar for diafol
0
313
Member Avatar for Vivek_13

Array ( [0] => 116 [1] => asdasd [2] => 1 [3] => asdsadas [4] => dasdasd [5] => sadasdsad [6] => asdasdasd ) i want to convert this aaray in to xml

Member Avatar for diafol
0
348
Member Avatar for Vivek_13

<?php $query = mysql_query("select * from `tbl_student`"); while($data = mysql_fetch_array($query)) { $output[] = array ($data[0],$data[1],$data[2],$data[3], '<select class="form-control select1" id="'.$data[0].'"> <option 'if(----){'selected'}'>asd</option> <option >dasd</option> <option>asd</option> </select>'); } echo json_encode($output); ?> <!--here code of if() throw error-->

Member Avatar for Vivek_13
0
405

The End.