Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~54.9K People Reached
About Me

I m working on php/mysql,html,dhtml/css and javascript/ajax with using drupal(CMS).

Interests
First is programing and listening Music etc.
Favorite Tags

46 Posted Topics

Member Avatar for Duki
Member Avatar for nish123

hi yes this is possible using php function like [code] $dob1=trim($_POST['txt_dob']);//$dob1='dd/mm/yyyy' format list($d, $m, $y) = explode('/', $dob1); $mk=mktime(0, 0, 0, $m, $d, $y); $dob_disp1=strftime('%Y-%m-%d',$mk); [/code] if you can convert string date to date formate direct using strtotime() function this not give valid date i have all ready faced this …

Member Avatar for Aswad_1
1
8K
Member Avatar for sk8ndestroy14
Member Avatar for ero100@live.com

hi i think you can first of all check the posted value by the php isset() function [code] <? if(isset($_POST['discrate']) { $val=$_POST['discrate']; } ?> echo "<tr><td>"; echo "<p><b>Discount Rate: </b>"<?=$val?>"</p>"; echo "</td></tr>"; [/code] Thanks

Member Avatar for pooja pinky
0
534
Member Avatar for Tulsa

Hello I want to array with key and valu in vb.net as like in php [code] $array['name']="xyz"; $array['surname']="abc"; [/code] so is this possible ? please any suggestion. Thanks in advance

Member Avatar for PisqoLoq
0
257
Member Avatar for adkool
Member Avatar for kings

hi i just view your code so i have a one idea [code] <?php $path = dirname( __FILE__ ); $uploaddir1 = $path."resumes/".$_SESSION["uss1"]."/".$uname; ?> [/code] try this b'cos $path give you current directory path and also make sure that parents directory have right to create child directory Thanks

Member Avatar for pandikamal
0
143
Member Avatar for yusufmiko

hi, when user login than you can save user id and password in a session variable like this [code] session_start(); session_register("user_id"); session_register("pass_word"); $_SESSION["user_id"] = $ftp_user_name; $_SESSION["password"] = $ftp_user_pass; [/code] So now you can access this variable during any page navigation until the browser closed [code] echo $_SESSION["user_id"];//current user id [/code] …

Member Avatar for smthakur
0
175
Member Avatar for eXceed69
Member Avatar for The Dude
Member Avatar for kings

hi yes this is possible in php ## Requirements: - GD Library - Ming Library installed in your pc you can download this class from this link [url]http://www.phpclasses.org/browse/package/2073.html[/url] Thanks

Member Avatar for DWMJ
0
133
Member Avatar for Dani
Member Avatar for TLCJohn

Hi, I also faces this same problem then i found solution which i posted here... [code] $i=0; $rand_no=""; while($i<6) { $rand_no=$rand_no.rand(0,9); $i++; } echo "6 digit random no.".$rand_no; I hope this code may help you Thanks Tulsa [/code]

Member Avatar for diafol
0
2K
Member Avatar for tulipputih

hi sorry but what you want... if you want that somebody clicks on button that time textbox enable so you can call javascrit function on button click event As i posted one example here [code] <input type="text" disabled="disabled" name="txt1"/> <input type="button" value="Click me" onblur="func_unlock();"> <script type="text/javascript"> function func_unlock() { document.getElementByid('txt1').disabled=false; …

Member Avatar for tulipputih
0
170
Member Avatar for fireslug

Hi I post here one example of date validation using javascript [code] <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td>Start date:</td> <td colspan="2"> <input type="text" name="txt_start" id="txt_start" style="width:200px" onBlur="Check_date();"/> </td> </tr> <tr> <td>End date:</td> <td colspan="2"> <input type="text" name="txt_end" id="txt_end" style="width:200px" onBlur="Check_date();" /> </td> </tr> </table> <script type="text/javascript"> function Check_date() { …

Member Avatar for fireslug
0
109
Member Avatar for StefaRSA

hi i think you need to add id for the all select tag [code] <select name="city" id="city"> [/code] I hope this solve your problem Thanks

Member Avatar for Tulsa
0
135
Member Avatar for jendrickzz

hi you can also call the css file as like this in php.... where no need of echo function for <link> tag [code] <?php $link = $_POST['fs']; ?> <link rel='stylesheet' href='<?=$link?>'> [/code] Thanks

Member Avatar for cwarn23
0
194
Member Avatar for walet
Member Avatar for nigelburrell

hi i think you want that login form submit that user press enter key after entering password right. so i pu one example here where i call javascript function on keypress of textbox [code] <input name="login2" type="password" class="form" id="login2" maxlength="30" style="width:180" onKeyPress="return entersubmit(this,event)"/> [/code] [code] <script type="text/javascript"> function entersubmit(field,e) { …

Member Avatar for diafol
0
2K
Member Avatar for bhanu1225

hi if you want albhabet name than you should use naa order by name But i dont know another way [code] select NAME from tablename order by NAME; [/code] Thanks

Member Avatar for bhanu1225
0
106
Member Avatar for nish123

hi As per my view you can use hidden field in html which hold your price list and you can get this value by the $_post['hidden_fiels'] right. Thanks

Member Avatar for OmniX
0
317
Member Avatar for SKANK!!!!!
Member Avatar for coolest_987

hi Sorry but i did not get that what is actualy error? pleas explain briefly. Thanks

Member Avatar for nimitz1061
0
115
Member Avatar for servis

hi you can give the same name for all check box as per i given here in example [code] <input type="checkbox" name="comp[]" value="Abusive words are used"> <input type="checkbox" name="comp[]" value="Attachments are vulgar"> <input type="checkbox" name="comp[]" value="Provided links are not valid or open fake website"> <input type="checkbox" name="comp[]" value="Provided contents are …

Member Avatar for servis
0
2K
Member Avatar for Arctic wolf

hi if your Apache services is not started then you need to start services from xampp controll panel ok and make sure that your all php file save in yourpath/xampp/htdocs son now you can access your file from browser as [code] http://localhost/index.php [/code] or if you have create your own …

Member Avatar for Arctic wolf
0
142
Member Avatar for khr2003

hi you can also rename desc fileld name is better way b'cos desc is used with order by clause in mysql Thnaks

Member Avatar for Josh Connerty
0
86
Member Avatar for mccs

hi you need to use implode() php function for convert string for e.g [code] $fruits=$_POST[fruit]; $fruits_str=implode(',',$fruits);//it seprates value by comma $fruits_str=implode(' ',$fruits);//it seprates value by space [/code] I hope this function help you to solve problem Thanks

Member Avatar for mccs
0
569
Member Avatar for Xessa

hi as per my view if in your page have a more than one form tag and have a same textbox name that time this is better way to use [code] form.myTextBox.value; [/code] rather than this way. b'cos it give you directly value from the current document [code] document.getElementById("myTextBox").value; [/code] …

Member Avatar for Xessa
0
85
Member Avatar for jimb90
Member Avatar for furqan219

hi after viewing your code i found one mistake is that you have no give the name of option tag in html right [code] <? $result = mysql_query ($query); ?> <select name='SiteId'> <option value=''>Select One</option> <? while($nt=mysql_fetch_array($result)) { ?> <option value='<?=$nt[SiteId]?>' name="Siteid" id="Siteid"><?=$nt[SiteId]?></option> <? } ?> </select> <input type="submit" value="Search …

Member Avatar for furqan219
0
289
Member Avatar for tulipputih

hi I just edited your code so you can find solution as you want [code] <?php $query= mysql_query(" SELECT * FROM office WHERE officeID='" . $_GET['officeID'] . "'"); ?> <table> while($entry=mysql_fetch_array($query)) 6. { ?> 7. <tr> <td>Name</td> <td><?=$entry['name']?></td> </tr> <tr> <td>Location</td> <td><?= $entry['location']?></td> </tr> <? } ?> </table> <form method="post"> …

Member Avatar for Atli
0
153
Member Avatar for furqan219

hi i used mail function that time it's worked perfectly but i used this from directly server. so i think you use this from local pc so may be you need to do some setting in php.ini file ya smtp port this solution you should get from the google search …

Member Avatar for Atli
0
205
Member Avatar for rconn

hi yes you had missed to declare $result variable before it used [code] if ($mysql->query ($query)) { $result=$mysql->query ($query); if (mysql_result ($result, 0) > 0) { echo '<div style="color:red;">A User Account with this email address aready exists.</div>'."\n"; $email = false; } } [/code] Thanks

Member Avatar for Tulsa
0
175
Member Avatar for jegham

hi If you want all same fields for different id than you can use 'in ' with where clause. [code] select count(serviceid) as id from serviceslog where serviceid in ('1','2') and partition not like '%test%' and component not like '%test%' and component not like '%do not bill%' and occurence between …

Member Avatar for Tulsa
0
117
Member Avatar for elanorejoseph

hi you can swap a,b like [code] $a=5; $b=7; echo "befor swaping value"."a=".$a."b=".$b; $a=$a+$b;//$a=12 $b=$a-$b//12-7 so $b hold 5 $a=$a-$b//12-5 so $a hold 7 echo "after swaping value"."a=".$a."$b=".$b; [/code] i hope you can understand my logic Thanks

Member Avatar for elanorejoseph
0
102
Member Avatar for elanorejoseph

hi for the beginners you can use php manul book which is free.avalilable from php.net site and also for the all webbased tutorial you can use w3schools.com site Thanks

Member Avatar for elanorejoseph
0
90
Member Avatar for furqan219

hello you can get this value like this in update.php file [code] $c=$_post['siteid']; echo "value".$c; [/code] I hope your problem may be solve Thanks.

Member Avatar for furqan219
0
131
Member Avatar for shena

hi if u want multiple values selection than u can use multiple selected list box or check box with the name as arrname[] like this and u can get this select value after posting the form in array like $array=$_post['arrname']; foreach($array as $val) { echo $val; } ok now u …

Member Avatar for shena
0
4K
Member Avatar for Rakesh Nagekar

hi yes this is possible using php but you need post all value of advance search like a textbox or listbox's value and you need to define dyanamic query for eg [code] $keyword=trim($_POST['txt_anykeyword']); $position=$_POST['list_position']; $school=$_POST['list_school']; $subject=$_POST['list_subject']; $city=$_POST['list_city']; $query_job = "SELECT * from fg_postjob where"; if(trim($position)!='') { $query_job.=" and pjob_title = …

Member Avatar for kvprajapati
0
136
Member Avatar for SKANK!!!!!

hi i got that what you want means if xyz user log in than his/her folder only open right so you need to add one column in folder table which is uid means user's id [code] $query="select * from folder_table where uid=$uid"; [/code] $uid is current log in user id …

Member Avatar for OmniX
0
113
Member Avatar for ashcares

hi i just view your code but i just give a one way for validation all this like mail,web,no. etc u should use spry frame work of java script this you can download after searching from google ok. which include the file .js and .css for diffrent element like textbox,textarea,listbox,checkbox …

Member Avatar for Tulsa
0
96
Member Avatar for Tulsa

hello i m a working on php but now i want develop softaware using new vb.net and also want to add left panel bar so user can select page link from left bar and it dispaly on right bar left bar is fixed when any page open at right site …

Member Avatar for Tulsa
0
146
Member Avatar for gagan22

in my project have a same prolem so i solved this using ajax so may be this useful to u when user select course from one list box then in another listbox view subject according to selected subject [code=php]//update_profile.php file <select name="list_ug" id="list_ug" onChange="Get_ugspec();"> <option value="" >Select</option> <? while($row_ug = …

Member Avatar for gagan22
0
135
Member Avatar for arosemena

hi i did not get that actually what you want to do. means u want to display the blog and also want to give functionality to user for update and add new blogs right. so you can do all this thing on one page just u need to call another …

Member Avatar for Tulsa
0
77
Member Avatar for newbiecoder

hi If installation is not successfully than you need to install xampp pack after uninstaliing all of this right. xampp pack is installed php,mysql and apachi automatically. you should download xampp for windows from the this [url]http://www.apachefriends.org[/url] site ok. you must save all your php file in the httpdocs folder. …

Member Avatar for Tulsa
0
134
Member Avatar for sarithak

hi we can not use where condition in insert query if u want to modified the some field value than u must use update query [code=php]$sql="update customer set sizeindustry='$sindustry' where sno = '$sno' "; echo $sql; mysql_query($sql)or die(mysql_error());[/code] i hope this problem may be solve. thanks

Member Avatar for sarithak
0
77

The End.