- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I m working on php/mysql,html,dhtml/css and javascript/ajax with using drupal(CMS).
- Interests
- First is programing and listening Music etc.
46 Posted Topics
Re: 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 … | |
Re: 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 | |
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 | |
| |
Re: 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 | |
Re: 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] … | |
Re: havent tried it potato chapati............. | |
Re: 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 | |
Re: I am Web developer i m working on php using drupal(CMS) | |
Re: 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] ![]() | |
Re: 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; … | |
Re: 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() { … | |
Re: 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 | |
Re: 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 | |
Re: 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) { … ![]() | |
Re: 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 | |
Re: 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 | |
Re: hi please explain your problem with code....... Thanks | |
Re: hi Sorry but i did not get that what is actualy error? pleas explain briefly. Thanks | |
Re: 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 … | |
Re: 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 … | |
Re: hi you can also rename desc fileld name is better way b'cos desc is used with order by clause in mysql Thnaks | |
Re: 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 | |
Re: 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] … | |
Re: I dont take cofee nor tea so no any options......... | |
Re: 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 … | |
Re: 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"> … | |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
Re: 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 | |
Re: 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 | |
Re: 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. | |
Re: 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 … | |
Re: 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 = … | |
Re: 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 … | |
Re: 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 … | |
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 … | |
Re: 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 = … | |
Re: 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 … | |
Re: 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. … | |
Re: 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 |
The End.