320 Posted Topics
Re: You have missed the close '>' of <a> tag in line 27 [CODE=php]'<td align="center"><a href="delete.php?id="'.$row['user_id'].' > Delete</a></td>'.[/CODE] mark this thread as unsolved or start a new thread. Then only it visible to lot of users. | |
Re: Once clicking Ok button , How do u specify the selected values? ![]() | |
Re: Generate random number using rand() and add it to the prefix of file name.. No need to check for uniqueness if you do like this.... | |
Re: [url]http://www.daniweb.com/web-development/php/threads/365085[/url] In this i posted the complete files of datepicker. | |
Re: Better use the calendar script. I have attached the calendar files here and the code here. its very simple and easy to use. No need of any conversion [CODE=html] <head> <script type="text/javascript" src="DatePicker/calendar.js"></script> <script type="text/javascript" src="DatePicker/calendar-setup.js"></script> <script type="text/javascript" src="DatePicker/calendar-en.js"></script> <link rel="stylesheet" href="DatePicker/calendar-win2k-2.css" /> </head> <body> <input name="fromdate" type="text" class="text_box" id="fromdate" … | |
Re: Post your html form... | |
Re: frame and iframe are html tags. refer this [url]http://manda.com/iframe/index.html[/url] | |
Re: Your database is not connected. Your input dbserver/dbuser/dbpass is wrong. Please use code tags to add your code. ![]() | |
Re: post your code snippet here... | |
Re: Try this [CODE=php] <?php mysql_connect ("localhost", "root","root") or die (mysql_error()); mysql_select_db ("server_db"); $term = $_POST['term']; $country=$_POST['country']; if(isset($_POST['submit'])){ if($term == ""){ echo "Please Enter a search term";} $sql = mysql_query("select * from new_file where name like '%$term%' and country like '%$country%'"); $rows = mysql_num_rows($sql); while ($row = mysql_fetch_array($sql)){ echo 'ID: '.$row['ID']; … | |
Re: execute this [CODE]"select * from temp where venue <> '' and cat1 = 'sports' and id < 74528"[/CODE] first and see how many records will the op? | |
Re: Did you use print option in your code? If yes, which method you used to print? | |
Re: What is the problem with the above code? | |
Re: Bits that are set in '$user->premission' are not set, and vice versa. Refer this link [url]http://www.php.net/manual/en/language.operators.bitwise.php[/url] | |
Re: [CODE=php] <?php require 'connect.php'; $userg = mysql_query("SELECT avatar FROM members") or die("Failed to fetch your details."); if (isset($_SESSION['MM_Username'])) { echo "Welcome ".$_SESSION['MM_Username']; echo "<img src=".mysql_result($userg,0,"avatar" )." width=200 height=200>"; } ?> [/CODE] | |
Re: $userg is result set not your field value... So replace your line no 11 with [CODE=php]echo mysql_result($userg,0,"avatar");[/CODE] | |
Re: [QUOTE=tstory28;1590893]I feel so dumb now but thanks for pointing that out to me. What do you mean by cleaning up my input?[/QUOTE] Cleaning up input is the process of protecting your database from data injection. | |
Re: onmouseover works on all browsers. Where you need on mouse over? please post your code.. | |
Re: In line no 5 the $_SESSION["username"] is always set to "Ram". Thats why the problem. Please check that line. | |
Re: [CODE=php] <select name="year" id="year" style="height: 22px"> <option value="">--Select--</option> <?php for($y=1920; $y<=2012; $y++) { ?> <option value="<?php echo $y; ?>" <?php if($y==$_POST["year"]) echo "selected"; ?> > <?php echo $y; ?> </option> <?php } ?> </select> [/CODE] | |
Re: i am not clear with your question. Need some more details. what do you mean by referrer of domain? | |
Re: Post your code with code tags and mention the line no that you get the error. This will help us to identify the problem easily. | |
Re: try this [CODE=php] <?php include("db_hindi.php"); if($_POST["submit"]) { echo $qry="select ".implode(",",$_POST["check_qry"])." from tbl_hindi"; mysql_query($qry); } ?> [/code] [code=html] <!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 content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Untitled 1</title> </head> <body> <table> <form name="myform" action="" method="post"> <tr> <td><input type="checkbox" name="check_qry[]" value="name" />Name</td> <td><input type="checkbox" … | |
| |
Re: In which line in the above code you tot this error? 9 or 16 | |
Re: Try this [CODE] $result=mysql_query("select * from tbl_name"); function xlsBOF() { echo pack("ssssss", 0x809, 0x8, 0x0, 0x10, 0x0, 0x0); return; } function xlsEOF() { echo pack("ss", 0x0A, 0x00); return; } function xlsWriteNumber($Row, $Col, $Value) { echo pack("sssss", 0x203, 14, $Row, $Col, 0x0); echo pack("d", $Value); return; } function xlsWriteLabel($Row, $Col, $Value … | |
Re: [CODE] <a href="http://www.daniweb.com">dani web</a> <a href="http://www.daniweb.com">daniweb 2</a> [/CODE] | |
Re: How it is solved? what was the problem in that? can you please explain? | |
Re: [CODE=html]<a href="http://www.onlinetvjunction.com/" title="Live Tv Online" target="_blank">Online Tv</a><br>Watch your favorite TV channels live online [/CODE] You can use this code in your links.tpl file whereever you wnat. Please use code tags to post your codes. | |
Re: No need to create pages dynamically for that. Just create one page and use that page for all by passing the id in query string. for eg. if you create item.php as a page then use item.php?id=1 for first item and item.php?id=2 for second item and goes on. | |
Re: [URL="http://www.daniweb.com/web-development/php/threads/367950"]Go to this thread http://www.daniweb.com/web-development/php/threads/367950[/URL] | |
Re: Mark as solved if your problem solved | |
Re: post the error message that you have received in the output screen. | |
Re: Post your full mail function (with headers) here... | |
Re: try this [CODE=php] <!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" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <meta name="author" content="" /> <title>Doctor Registeration Form</title> <script language="javascript" type="text/javascript" > function validateForm() { //var pattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+.[a-zA-Z].[2-5]; if(document.getElementById('emailid').value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1) { alert("Enter valid Email Address"); document.getElementById('emailid').focus(); return false; … | |
Re: which version of IE you used? | |
Re: post your definition of getCountry($c['country']) function here... | |
Re: As Ardav suggested, Use session to protect your page from unauthorized users. ![]() | |
Re: Re-post this with some more explanation for our understanding and use code tags to post your codes | |
Re: try this [CODE=php] <input type="checkbox" name="chk1" onclick='checkCheckBoxes()' value="1" <?php if ($_POST['chk1']=="1") echo 'checked="checked"'; ?>/>check for Birth year only [/CODE] | |
Hi Frendz, In my vehicle tracking system, I have got the latitude and longitude points of the vehicle for every 30 secs while the vehicle moving. Now i need to get the report of the vehicles when it crosses from one state to another state and one district to another … | |
Re: [CODE=php] <select name="year_nam" id="year_nam"> <?php for($yr=1950; $yr<=2020; $yr++) { ?> <option value="<?php echo $yr; ?>" <?php if($yr==$_POST["year_nam"]) echo "selected"; ?> ><?php echo $yr; ?></option> <?php } ?> </select> [/CODE] | |
Re: just replace this line [CODE=php] <td width="235"><a href="read_emails.php?id=<?php echo $row['emailID'];?>" > <input type="submit" name="Delete" value="Delete" class="cautionbutton" onClick="return(confirm('Are you sure you want to delete this email?));">delete</a></td> [/code] with [CODE=php] <td width="235"><a href="javascript:confirmdel(<?php echo $row['emailID'];?>);" >Delete</a></td> [/CODE] javascript is, [CODE=javascript] function confirmdel(delid) { var check = confirm("Are you sure to delete this … | |
Re: Post your time out error here | |
Re: [CODE=javascript] ...... ....... ..... ..... d1=new Date(); d1.setMinutes ( d1.getMinutes() + 15; var etime = new Date(d1); var ehour = etime.getHours(); var emin = etime.getMinutes(); var esec = etime.getSeconds(); var ftime = ""; if(ehour == 0) ehour = 12; ftime = (ehour > 12 ? ehour - 12 : ehour) … |
The End.