841 Posted Topics

Member Avatar for niladri.user

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]

Member Avatar for Shanti C
0
49
Member Avatar for heni_pro
Member Avatar for maruthuit2k5

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]

Member Avatar for anuj_sharma
0
80
Member Avatar for pedramphp
Member Avatar for joinphil

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 …

Member Avatar for guinanie
0
157
Member Avatar for rati

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.

Member Avatar for Demiloy
0
283
Member Avatar for rati

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]

Member Avatar for JeetRaj
0
192
Member Avatar for yasmena

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 …

Member Avatar for Shanti C
0
108
Member Avatar for epixca

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]

Member Avatar for Shanti C
0
113
Member Avatar for Shanti C

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..

Member Avatar for Demiloy
0
129
Member Avatar for yasmena

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]

Member Avatar for Shanti C
0
96
Member Avatar for veledrom

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...

Member Avatar for Shanti C
0
77
Member Avatar for architact

hell try this: [code=php] $string=nl2br($_POST['textareaname']); [/code] use $string in your insert query...

Member Avatar for Shanti C
0
106
Member Avatar for anuj_sharma
Member Avatar for Shanti C
0
71
Member Avatar for Mylena
Member Avatar for ishlux

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]

Member Avatar for jsrpatna
0
170
Member Avatar for mridatrix

please once try this: [code] string sql = " INSERT into `employee`(`fname`, `mname`,` lname`) VALUES (@fname, @mname,@lname)"; [/code]

Member Avatar for peter_budo
0
100
Member Avatar for danishbacker

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 …

Member Avatar for danishbacker
0
113
Member Avatar for Scooby08

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]

Member Avatar for Shanti C
0
116
Member Avatar for mrcniceguy

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]

Member Avatar for mrcniceguy
0
87
Member Avatar for veledrom

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 …

Member Avatar for digital-ether
0
216
Member Avatar for sahdev86

check this url: [url]http://www.daniweb.com/forums/thread134714.html[/url]

Member Avatar for sahdev86
0
75
Member Avatar for god_1896

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....

Member Avatar for saikishore
0
292
Member Avatar for lydia21

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), …

Member Avatar for Shanti C
0
132
Member Avatar for Rakesh Nagekar

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;; …

Member Avatar for Demiloy
0
486
Member Avatar for rezvi

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]

Member Avatar for Shanti C
0
150
Member Avatar for AliHurworth

[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 …

Member Avatar for AliHurworth
0
177
Member Avatar for davewylie

[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 …

Member Avatar for davewylie
0
153
Member Avatar for zappan

i dont know exactly... but hope this may helps you: [url]http://www.informit.com/articles/article.aspx?p=27800[/url]

Member Avatar for zappan
0
70
Member Avatar for theimben

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]

Member Avatar for theimben
0
187
Member Avatar for justted

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....

Member Avatar for Shanti C
0
133
Member Avatar for abs0lut01

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: …

Member Avatar for rexibit
0
271
Member Avatar for Shanti C

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...

Member Avatar for rexibit
0
102
Member Avatar for gdi
Member Avatar for knrakesh
Member Avatar for Shanti C
0
75
Member Avatar for jynx_o7

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]

Member Avatar for peter_budo
0
100
Member Avatar for knrakesh

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....

Member Avatar for Shanti C
0
87
Member Avatar for prashanth18
Member Avatar for Scooby08

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]

Member Avatar for Shanti C
0
113
Member Avatar for justinmyoung

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

Member Avatar for Shanti C
0
59
Member Avatar for php_noob

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]

Member Avatar for Shanti C
0
82
Member Avatar for Shanti C

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....

Member Avatar for nil_gh_80
-1
146
Member Avatar for veledrom

i think you have use check box in this way.... [code=php] <input name="checkboxReceipt[]" value="<?php echo $frow['id']; ?>" type="checkbox" /> [/code]

Member Avatar for veledrom
0
281
Member Avatar for sarithak

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...

Member Avatar for praveen_dusari
0
92
Member Avatar for sujithkumar

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) …

Member Avatar for mohandotnet
0
71
Member Avatar for justinmyoung

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> …

Member Avatar for Shanti C
0
293
Member Avatar for veledrom

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 …

Member Avatar for Shanti C
0
74
Member Avatar for knarffrank

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...

Member Avatar for toughjamy
-1
135
Member Avatar for theBond

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 …

Member Avatar for Shanti C
0
82
Member Avatar for Shreyasi

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....

Member Avatar for praveen_dusari
0
259

The End.