841 Posted Topics
Re: hello.. refer these links , will help you.. [url]http://www.thefreecountry.com/php/live-chat-scripts.shtml[/url] [url]http://www.hotscripts.com/PHP/Scripts_and_Programs/Chat_Scripts/more6.html[/url] | |
Re: try this: [code=javascript] if(isNaN(d.number.value)){alert("Please Enter only Numbers in Phone no Feild"); d.number.value="";d.number.focus();return false;} [/code] | |
Re: So many tips are there and so much hard work has to do... Then only we will achieve it.. Some tips are: 1.Make your site to look gud and better.. 2.Try to sit end user in your site for some time by adding some interesting messages with good desiging.. 3.include … | |
Re: Superglobals are variables like $PHP_SELF, $_REQUEST, and $_SERVER. They are so called because they're always available in any functions without you having to make a global declaration. | |
Re: The require() function is identical to include(), except that it handles errors differently. The include() function generates a warning (but the script will continue execution) while the require() function generates a fatal error (and the script execution will stop after the error). check this : [url]http://www.tizag.com/phpT/require.php[/url] | |
Re: hello: do work on this code: [code=php] // how many rows to show per page $rowsPerPage = 20; // by default we show first page $pageNum = 1; // if $_GET['page'] defined, use it as page number if(isset($_GET['page'])) { $pageNum = $_GET['page']; } // counting the offset $offset = ($pageNum … | |
Re: i dont know exactly: have a look on this url: [url]http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/ccd01aeb-a78c-4cc3-adb9-ae0089f23d12.mspx?mfr=true[/url] | |
Hello friends... I got one error ,when my login page is loading... Fatal error:maximum execution time of 30 seconds exceeded in ../../../login.php What would i do for preventing this.. Thanks in Advance. Shanti.. | |
Re: hello try this code will work perfectly: [code=php] function confirm_delete(x) { var answer=confirm("Are You Sure You Want to Delete ?"); if(answer==true) { window.location.href="delete.php?id="+x; } return; } [/code] | |
Re: i got understand your problem like this: [code=php] <? session_start(); if(empty($_SESSION['loginuser'])) { header('location:index.php'); } ?> [/code] you have to include this page in all your pages,which must require login to proceed... | |
Re: hell try this: [code=php] $string=nl2br($_POST['textareaname']); [/code] use $string in your insert query... | |
| |
Re: you just put your alphabetic letters in hyperlinks each other... | |
Re: you can use button names to differentiate: means: [code] <input name="submitbouttn" type="submit"> <input name="backbutton" type="submit"> [/code] then you can use the buttons in php code: [code=php] if(isset($_POST['submitbutton'])) { //insert queries //header("one.php"); } if(isset($_POST['backbutton'])) { //header("one.php"); } [/code] | |
Re: please once try this: [code] string sql = " INSERT into `employee`(`fname`, `mname`,` lname`) VALUES (@fname, @mname,@lname)"; [/code] | |
Re: i saw this error on your admin.php page.. [code] Warning: Cannot modify header information - headers already sent by (output started at /home/peipians/public_html/yackub/admin_home.php:23) in /home/peipians/public_html/yackub/admin_home.php on line 131 [/code] For this you simply add ob_start(); at stating lines of your php code... And coming to your thread ,you can pass … | |
Re: check this: [url]http://20bits.com/2007/04/10/10-tips-for-optimizing-mysql-queries-that-dont-suck/[/url] [url]http://www.informit.com/articles/article.aspx?p=377652[/url] [url]http://www.sbras.ru/win/docs/db/mysql/manual10.html[/url] And i think we would have all select queries before our <html> tag... [url]http://blog.digitalstruct.com/2008/06/18/php-performance-series-maximizing-your-mysql-database/[/url] | |
Re: hello check this code: [code=php] $strQuery = "select $intID, $strName from $tableName order by $strOrderField $strMethod"; $rsrcResult = mysql_query($strQuery); while($arrayRow = mysql_fetch_assoc($rsrcResult)) { $intIdField = $arrayRow["$intID"]; $strNameField = $arrayRow["$strName"]; echo "<option value=\"$intIdField\">$strNameField</option>\n"; } echo "</select>\n\n"; [/code] | |
Re: hello restrict your delete ,update queries by putting in some if conditions like: [code=php] if(!empty($_GET['delid'])) { //delete queries... } if(!empty($_GET['updateid'])) { //update queries... } [/code] if updation and deletion again done after hit f5,then no problem with them,be cause if one record delete with one id,then our delete query won't … | |
Re: check this url: [url]http://www.daniweb.com/forums/thread134714.html[/url] | |
Re: you have to use another mailid in the headers only... [code] $mailheader .= 'BCc:some@some.com' . "\r\n"; [/code] and use one mail id in $sendto.... | |
Re: this is one example: this is based on joins... [code=mysql] CREATE TABLE Articles ( ArticleID SMALLINT NOT NULL PRIMARY KEY, ArticleTitle VARCHAR(60) NOT NULL, Copyright YEAR NOT NULL ) ENGINE=INNODB; INSERT INTO Articles VALUES (12786, 'How write a paper', 1934), (13331, 'Publish a paper', 1919), (14356, 'Sell a paper', 1966), … | |
Re: This code is works for me finely...You also try it.... [code=php] if($HTTP_POST_FILES["rfile"]["size"] >1) { // for large image 1 $ext = substr($HTTP_POST_FILES['rfile']['name'],strpos($HTTP_POST_FILES['rfile']['name'],'.')+1); $ext_arr=array("txt","rtf","doc","pdf","rar","zip"); //if (in_array($ext,$ext_arr)) { $pfile=substr($HTTP_POST_FILES['rfile']['name'],0,strpos($HTTP_POST_FILES['rfile']['name'],'.')); $pfile.=time(); $pfile.=strstr($HTTP_POST_FILES['rfile']['name'],'.'); $pfile="resumes/".$pfile; if(!move_uploaded_file($HTTP_POST_FILES['rfile']['tmp_name'],$pfile)) { $pfile=""; } chmod($pfile,0777); } else { $pfile=""; } [/code] You must use this term in you form tag;; … | |
Re: hello... you can get entire code at url, which have posted by me... check it once... [url]http://www.daniweb.com/forums/thread132703.html[/url] | |
Re: [QUOTE=AliHurworth;663640] [code=php] $sql=(SELECT $dir_search FROM 'directory' WHERE $dir_type="person" OR $dir_type="organisation") [/code] [/QUOTE] the syntax you wrote is very wrong.... Data base cloumn names are not start with $ like $dir_search...or if it is a value post form a form ,then we have write like $_POST['var']... so modify your query as … | |
Re: [QUOTE=davewylie;663319]Hi, I have a routine which reads a file using type='file'. I would like to be able to update the file and save it in the same location it came from, which would be in the C:\ directory. However, I cannot see how to get hold of the path associated … | |
Re: i dont know exactly... but hope this may helps you: [url]http://www.informit.com/articles/article.aspx?p=27800[/url] | |
Re: you have to write insert query after submit your form: see below: [code=php] if($_SERVER['REQUEST_METHOD']=='POST') { $qur="insert into `users`(`userid`,`password`,`email`,`title`,`fname`,`sname`,`jtitle`,`company`,`address1`, `address2`,`address3`,`town`,`postcode`,`country`,`isector`,`interests`,`telephone`,`fax`,`url`,`status`,`reg_date`)values ('".$_POST['userid']."','".$_POST['password']."','".$_POST['email']."','".$_POST['title']."','".$_POST['fname']."','".$_POST['sname']."','".$_POST['jtitle']."','".$_POST['company']."','".$_POST['address1']."','".$_POST['address2']."','".$_POST['address3']."', '".$_POST['town']."','".$_POST['postcode']."','".$_POST['country']."','".$_POST['isector']."','".$tempids."','".$_POST['telephone']."','".$_POST['fax']."','".$_POST['url']."','0', now())"; $res= mysql_query( $qur ) ; } [/code] | |
Re: i think this is the error in your code and i have changed it to: [code=php] mysql_query("UPDATE members2 SET exp_points=exp_points+ $points WHERE username = '$username' AND game = '$game'"); [/code] i dont know exactly.... | |
Re: this is your table having text fields: [code=php] <table width="291" id="prl" style="display:none"> <tr> <td width="95">message</td> <td width="196"><input name="message" type="text" id="message" ></td> </tr> <tr> <td>name</td> <td><input name="name" type="text" id="name"></td> </tr> </table> [/code] this is your link to show the text boxes: [code] <a href="#" onClick="toggle_it('prl')">show</a>[/code] include this script in your page: … | |
i have one static site in html... can any one please help to search the whole static site with search textbox... Any ideas and help would be appreciated... | |
| |
Re: hello.. i think you have to generate barcode pictures to use them for your lab equipment...which will read by barcode reader...it will available as open source on internet... check this urls: [url]http://www.mribti.com/barcode/sample.php[/url] [url]http://www.phpclasses.org/browse/package/2484.html[/url] [url]http://www.ashberg.de/php-barcode/[/url] | |
Re: in serach.php,,, use your query like: [code=mysql] SELECT * FROM blog_table WHERE blodLIKE 's%' [/code] this query will return you all posts starts by s.... | |
| |
Re: you can use triggers to update only after any insert has been done... or simply use: [code=mysql] $query = "SELECT * FROM users WHERE name='$name';"; $res = mysql_query($query); if (mysql_num_rows($res) > 0) { // yes, pull in the user details } else // no, user doesn't exist } [/code] | |
Re: hello , you can use time as type for your register time.but it is in the format of 00:00:00. As shown below: Field Type Default time1 time 00:00:00 i think there no type for the format 00:00 | |
Re: Hi. Tpl is extension used by Smarty and not only for web templates. Go to Smarty to see examples what template engine is. [url]http://www.smarty.net/[/url] [url]http://en.wikipedia.org/wiki/Web_template[/url] | |
i have one static site... can any one please help to search the whole static site with search textbox... Any ideas and help would be appreciated.... | |
Re: i think you have use check box in this way.... [code=php] <input name="checkboxReceipt[]" value="<?php echo $frow['id']; ?>" type="checkbox" /> [/code] | |
Re: you need to provide them to login...and use ont scraps table...then insert the scrap exchanging between them with recieverid,sender id...and show the scraps according to that ids... | |
Re: helloo try this.. [code=javascript] <script> function ValidateDate(CtrlSDate,CtrlEDate) { var SDate = document.getElementById(CtrlSDate).value; var calendarDate = getCalendarDate(); var alertReason1 = 'End Date must be greater than or equal to Start Date.' var endDate = new Date(calendarDate); var startDate= new Date(SDate); if(SDate != '' && EDate != '' && startDate > endDate) … | |
Re: hello i just changed your code.it works now... see this: [code=php] <?php include("config.php"); echo "<form action='$regScript' method='$formMethod' name='form'> <label><span>Full name</span> <input type='text' name='name' id='name' class='input-text'/> </label> <label><span>E-mail</span> <input type='text' name='email' id='email' class='input-text'/> </label> <label><span>City</span> <input type='text' name='city' id='city' class='input-text'/> </label> <label><span>State</span> <select name='state' id='state' class='selectInput'> <option value=''>Please select</option> <option value='-1'>Other</option> … | |
Re: i have one idea...plzzzz implement according to your requirement... plase call this function after your insert query has done.... [code=javascript] echo "<SCRIPT LANGUAGE="javascript"><!--n"; echo " if(confirm("You have successfully inserted... "))"; echo "{"; echo "d.action='nextpage.php'; echo "d.submit()"; echo "// --></SCRIPT>n"; [/code] or simply use: [code=javascript] echo "<SCRIPT LANGUAGE="javascript"><!--n"; echo " alert … | |
Re: demos and sample piece of codes available on the internet... [url]http://www.2020software.com/kwlp/Mas%2090%20E%20Commerce[/url] [url]http://www.magentocommerce.com/demo[/url] just google by different keywords... | |
Re: hello.. add one more field to your login table like type.. and set it 1 as for superadmin, 2 for admin,3 for client... and register that type field in your session variable like.. [code=php] //some statements... $_SESSION['user']=$row['type]; [/code] And in your pages: [code=php] if($_SESSION['user']=="1"){ echo "Welcome Super Admin";//or use header … | |
Re: use this code in your application: [code=php] session_start(); //these folllowing lines are after insert query... session_unregister('userid'); session_unregister('password'); session_register('userid'); session_register('password'); $_SESSION['userid']=$_POST['userid']; $_SESSION['uid']=$_POST['password']; [/code] And in your next page: [code=php] session_start(); echo $_SESSION['userid']; echo $_SESSION['password']; [/code] let me know if any error comes.... |
The End.