209 Posted Topics

Member Avatar for sruthisru

Hai; You can do this. Get the date from the date field and set the select query like "SELECT * FROM db_usertable WHERE DATE(LastLoginedField) = '$yourDate';"

Member Avatar for diafol
0
253
Member Avatar for Indians

Hai; This link will help you http://stackoverflow.com/questions/5418262/how-to-enable-curl-in-xampp You need to edit two flies... check the above link

Member Avatar for Indians
0
128
Member Avatar for kyle.santelices.31

Hai; I have done some changes on your code. Please check.I think it will help you. <?php // if something was posted, start the process... if(isset($_POST['upload'])) { // define the posted file into variables $name = $_FILES['picture']['name']; $tmp_name = $_FILES['picture']['tmp_name']; $type = $_FILES['picture']['type']; $size = $_FILES['picture']['size']; // get the width …

Member Avatar for Bachu
0
195
Member Avatar for sruthisru
Re: ajax

Hai; This link will help you , plz check [Click Here](http://uwudamith.wordpress.com/2013/03/16/how-to-insert-data-into-mysql-using-php-ajax/)

Member Avatar for sruthisru
0
168
Member Avatar for praba_web

Hai; check this link [Click Here](http://stackoverflow.com/questions/4523363/cannot-send-session-cookie-headers-already-sent)

Member Avatar for Bachu
0
155
Member Avatar for vikasgiri
Member Avatar for pars99

Hai; Try this.. <input type="text" name="txtfield" id="txtfield" value="" /> <input type="button" onclick="getValue()" value="Get Value"/> <script type="text/javascript"> function getValue() { alert(document.getElementById("txtfield").value); } </script>

Member Avatar for Bachu
0
228
Member Avatar for cussel

Hai; Chek the given example <?php $fetch_row = array("1","2","3","4","5","6","7","7.2","9","10","10.3"); foreach ($fetch_row as $key=>$myRow) { if($key>0){ $difference = $myRow-$previousValue; echo "different between ".$myRow." and ".$previousValue." = ".$difference."<br />"; if($difference< 0.5) echo "Your difference is < 0.5."; echo "<hr />"; } $previousValue = $myRow; } ?>

Member Avatar for cussel
0
909
Member Avatar for kshahnazari

Try the following example: In index.php <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript"> $(function() { $.ajax({ dataType: "json", url: "json.php", success: function (data) { for (var index = 0; index < data.length; index++) { alert(data[index]); } } }); }); </script> In json.php <?php $array = array("0","1","2","3","4","5","6","7","8"); echo json_encode($array); ?>

Member Avatar for Bachu
0
355
Member Avatar for vinojai
Re: Php

Hai; Chek this link http://code.google.com/p/php-excel/source/browse/branches/class-excel-xml.inc.php?r=9 Use class Excel_XML and include this class in your donmload link page. Example for download ling page: <?php include_once("model/excel.php");//includeind class Excel_XML //get data from database include_once("model/user.php"); $user = new User(); $getAllUsres = $user->getOtherUsers(); //set the data base result in to a variable $table='<table id="ReportTable" width="900" …

Member Avatar for layman114
0
571
Member Avatar for mehar89

Try this <!DOCTYPE HTML> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> </head> <body> <?php session_start(); if(isset($_SESSION['pageload'])) { $_SESSION['pageload']=$_SESSION['pageload'] + 1; } else { $_SESSION['pageload']=1; } ?> <div class="fieldClass"> </div> <script type="text/javascript"> $(function(){ var count ='<?php echo $_SESSION['pageload']; ?>'; for (var i = 1; i <=count; i++) { $('.fieldClass').append('<input type="text" name="itemquantity[]" value="'+i+'"/><br />'); } …

Member Avatar for gon1387
0
2K
Member Avatar for violetlyn.sumayo

You can use `imagefttext` . Check this link http://php.net/manual/en/function.imagefttext.php

Member Avatar for Bachu
0
578
Member Avatar for Bachu

Hai; How can I rewrite user profile page url like `http://website.com/firstnamesecondname-id` in wordpress ? Please help me.

Member Avatar for Bachu
0
111
Member Avatar for biswa2ray
Member Avatar for Motifaithed

Change This $sql="SELECT idNumber, mType FROM tableItem"; To $sql="SELECT idNumber, mType FROM tableItem GROUP BY mType";

Member Avatar for Motifaithed
0
1K
Member Avatar for pavan.tummalapalli
Member Avatar for Bachu
0
127
Member Avatar for biswa2ray

Try this <!DOCTYPE HTML> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> </head> <body> <table class="addRows"> </table> <input type="button" name="addrow" value="Add Row" class="addRowBtn"> <script type="text/javascript"> $(function(){ $('.addRowBtn').live('click',function() { $('.addRows').append('<tr><td><input type="text" name="txt1[]"></td><td><input type="text" name="txt2[]"></td><td><input type="text" name="txt3[]"></td><td><a href="#NOD" class="removeRow">Remove</a></td></tr>'); }) $('.removeRow').live('click', function() { $(this).closest('tr').remove(); }); }); </script> </body> </html>

Member Avatar for gon1387
0
346
Member Avatar for Farhad.idrees

Try this <!DOCTYPE HTML> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> </head> <body> <form id="formElem"> <label for="txtName">Name</label> <input type="text" name="txtName" /> <label for="txtAddress">Address</label> <textarea name="txtAddress"></textarea> </form> <a href="#NOD" class="disableForm" >Disable Form</a> <a href="#NOD" class="enableForm" >Enable Form</a> <script type="text/javascript"> $(function(){ $('.disableForm').click(function(){ $('input, textarea').attr('disabled', true); }); $('.enableForm').click(function(){ $('input, textarea').attr('disabled', false); }); }); </script> </body> </html>

Member Avatar for code739
0
145
Member Avatar for arcana55

Try this <!DOCTYPE HTML> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> </head> <body> <table> <tr> <th>Cost</th> <th>Quantity</th> <th>Sub-Total</th> </tr> <tr class="txtMult"> <td class="val1">1</td> <td><input class="val2" type="text" name="txt"/></td> <td><span class="sum">0</span></td> </tr> <tr class="txtMult"> <td class="val1">2</td> <td><input class="val2" type="text" name="txt"/></td> <td><span class="sum">0</span></td> </tr> <tr> <td align="right" colspan="2"><strong>Total</strong></td> <td class="total">0</td> </tr> </table> <script type="text/javascript"> $(function(){ function …

Member Avatar for Bachu
0
208
Member Avatar for khushhappy

Compare Today date and Dead line date... If Today date is less than deadline date , Print your Prompt message in blinking area.. If you have any doubt in date and date comparison, please check http://php.net/manual/en/function.date.php http://www.highlystructured.com/comparing_dates_php.html

Member Avatar for diafol
0
349
Member Avatar for neha05

One methode, you can use jquery accordion like http://jqueryui.com/accordion/ or Check this link http://www.1stwebdesigner.com/freebies/jquery-accordion-menus-tutorials/

Member Avatar for neha05
0
260
Member Avatar for riahc3
Member Avatar for Taywin
0
202
Member Avatar for Motifaithed

When you check login of a user; set Exp date from reg date like $expDate = strtotime(date("Y-m-d", strtotime($regDate)) . " +30 days"); Set your select query like SELECT * FROM UserTableName WHERE ($expDate >= DATE(NOW())) If this query returns values .. set user is loged in else redirect to login …

Member Avatar for broj1
0
532
Member Avatar for riahc3

Try this var optionalValues=[]; $('#combobox option').each(function(){ optionalValues.push( $(this).attr('value')); }); var FirstOption = optionalValues[0]; alert(FirstOption);

Member Avatar for riahc3
0
171
Member Avatar for doha786

Try this; $menuList=array(); $parentId = 0; $result = mysql_query("SELECT * FROM db_Table WHERE (parent_table = {$parentId}) ;"); $mainMenus = mysql_fetch_array($result); foreach($mainMenus as $mm) { array_push($menuList, $mm); $result = mysql_query("SELECT * FROM db_Table WHERE parent_table = {$mm->table_id};"); $subMenu = mysql_fetch_array($result); if(sizeof($subMenu)>0) { array_push($menuList, $subMenu); } } print_r($menuList); This is a basic …

Member Avatar for Bachu
0
114
Member Avatar for AARTI SHRIVAS

It is possible, In jquery exg: <script type="text/javascript"> $(function(){ <?php if($id==1) { ?> window.location="page1.php"; <?php } else { ?> window.location="page2.php"; <?php } ?> }); </script>

Member Avatar for AARTI SHRIVAS
0
310
Member Avatar for vizz

Try this http://www.karlrixon.co.uk/writing/convert-numbers-to-words-with-php/ This is for English langauge

Member Avatar for vizz
0
588
Member Avatar for bradly.spicer

There are lot of issues In container_24 you have given max-width: 980px; but Mid_Content is a div inside of this div, For Mid_Content div you have given width: 1100px; Why? Give Mid_Content div width value with less than or equal to width of container_24 div

Member Avatar for bradly.spicer
0
81
Member Avatar for anandschiru

Try this http://stackoverflow.com/questions/2208480/jquery-ui-datepicker-to-show-month-year-only

Member Avatar for Bachu
0
126
Member Avatar for amrita111
Re: DIV

DIV in mysql returns Quotient of two numbers Exg. If you want to get the Quotient of two fields of a database table you can use SELECT (Field1 DIV Field2) AS Result FROM your_table ; This query will returns Quotient of Field1/Field2

Member Avatar for Bachu
0
71
Member Avatar for Pervex

I think, one way is, give some delay for ajax success response, like http://stackoverflow.com/questions/3497700/delay-load-of-data-for-2-seconds-in-jquery-ajax

Member Avatar for riahc3
0
601
Member Avatar for AARTI SHRIVAS

Check this discussion http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/436688/combo-box

Member Avatar for AARTI SHRIVAS
0
279
Member Avatar for GraficRegret
Member Avatar for GraficRegret
0
338
Member Avatar for McLaren

Change your td css to td { background-color: #EEEEEE; border-bottom: 1px solid #FFFFFF; border-left: 1px solid #FFFFFF; padding: 0 10px 0 0; }

Member Avatar for cmps
0
161
Member Avatar for anandschiru

Use javascript First you hide the 3 radio buttons section. And display it in a click function Refer this you will get the idea http://girlswhogeek.com/tutorials/2007/show-and-hide-elements-with-javascript

Member Avatar for Bachu
0
160
Member Avatar for anandschiru
Member Avatar for anandschiru
0
178
Member Avatar for bradly.spicer

Use **Float** insted of **align**. Like <div id="Mid_Content"> <div id="Left_Content"> <h2>heading </h2> <p> test</p> </div> <div id="Mid_point_Content">asdasd</div> <div id="Right_Content">Form</div> </div> <style> #Mid_Content { Width: 1000px; float: left; } #Left_Content { width: 33%; float:left; } #Mid_point_Content { Width: 33%; float: left; } #Right_Content { Width: 33%; float:left; } </style>

Member Avatar for bradly.spicer
0
2K
Member Avatar for icohibari

In your action page fetch all field names from database & in your while loop get tha posted values like $_POST['$row->yourFieldName']

Member Avatar for Bachu
0
149
Member Avatar for trishfernan

You can do this with Jquery Check this http://stackoverflow.com/questions/683363/jquery-autohide-element-after-5-seconds

Member Avatar for EvolutionFallen
-2
140
Member Avatar for bangla

Check this Ex.. I think it will help you..... <!DOCTYPE html> <html> <HEAD> <SCRIPT language="JavaScript"> <!--hide function newtext() { var q1=Math.floor(Math.random()*11) document.myform.mytext.value=q1*2; document.getElementById('q1Value').innerHTML=q1; setTimeout("moretext()",4000); } function moretext() { document.myform.mytext.disabled = true; } //--> </SCRIPT> </HEAD> <BODY> <FORM name="myform"> <table width='600' cellpadding='5' cellspacing='5' border='1'> <tr><td colspan=6 align='right'><INPUT TYPE="button" name="but1" value="start " …

Member Avatar for rotten69
0
218
Member Avatar for TonyG_cyprus

Check this http://www.dynamicdrive.com/forums/showthread.php?47781-PHP-includes-%28%EF%BB%BF-characters%29

Member Avatar for TonyG_cyprus
0
142
Member Avatar for VenusCrystal

Check this Exg Your index file: <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Form - validate - Exg</title> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <form method="post" name="myForm"> <select id="sltOption" name="sltOption"> </select> </form> <script type="text/javascript"> $(function (){ $.ajax({ type:"post", url:"phpfile.php", success:function(response){ $('#sltOption').html(response); } }); …

Member Avatar for diafol
0
2K
Member Avatar for siddharth.dixit.5243

Check this http://www.codeforest.net/building-an-ajax-currency-converter-with-php-jquery-and-google

Member Avatar for gon1387
0
189
Member Avatar for bangla

Your code is working, disabled the 'start' button after i click on 'start' button. And If you want to hide this button after click, you can use ... function newtext() { document.myform.mytext.style.display = 'none'; setTimeout("moretext()",9000); }

Member Avatar for Bachu
0
118
Member Avatar for bangla

If you have repeated Id, and you don't want to change the Id name You can use the following code ... var myPTags = document.getElementsByTagName("p"); for(var i = 0; i < myPTags.length; i++){ if(myPTags[i].id == "f2") { myPTags[i].innerHTML = q2; } } document.getElementById("f1").innerHTML = q1; //document.getElementById("f2").innerHTML = q2; document.getElementById("f3").innerHTML = …

Member Avatar for Bachu
0
470
Member Avatar for programmer12

Hi; In your script, startTime & endTime are not defined ... And asign these values in your form, like <input type="hidden" name="event_sub_stime1" value="2013-01-09" /> <input type="hidden" name="event_sub_etime1" value="2013-01-14" />

Member Avatar for programmer12
0
618
Member Avatar for fiona.mcburney

Tyr this : $result1 = mysql_query("SELECT id, name FROM allparks"); while ($row1 = mysql_fetch_array($result1)) { echo '<h3>'.$row1['name'].'</h3><ul>'; $result2 = mysql_query("SELECT feat_name FROM allparks LEFT JOIN prkcombine ON allparks.id = prkcombine.pk_id LEFT JOIN prkfeature ON prkcombine.pkfeat_id = prkfeature.pkfeat_id WHERE allparks.id =".$row1['id']); while ($row2 = mysql_fetch_array($result2)) { echo '<li>'.$row2['feat_name'].'</li>'; } echo '</ul>'; …

Member Avatar for diafol
0
133
Member Avatar for azgold472

@Veedeoo Methode is good ... You can use your own methode with some changes like while ($row = mysql_fetch_array($result)) { echo "<a><img src='"; echo $row['ImagePath']."'"; echo " alt="; echo "'Country Music Nightclub Orlando'"; echo " Title='" .$row['ArtistDate']."'"; echo " /></a>"; }

Member Avatar for diafol
0
163
Member Avatar for idzone

For to implement this you should know hardware section also ... Check this .. http://code.google.com/p/rfid-php/

Member Avatar for Bachu
0
41
Member Avatar for pgh

Check this http://php.net/manual/en/function.mail.php http://forums.digitalpoint.com/showthread.php?t=114224

Member Avatar for saad2309
0
228

The End.