320 Posted Topics

Member Avatar for dhruv_arora

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.

Member Avatar for karthik_ppts
0
91
Member Avatar for bishaw
Member Avatar for rakeshsp
Member Avatar for diafol
0
167
Member Avatar for ashiiiish
Member Avatar for ebanbury

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

Member Avatar for ebanbury
0
216
Member Avatar for vamshidhar66

[url]http://www.daniweb.com/web-development/php/threads/365085[/url] In this i posted the complete files of datepicker.

Member Avatar for vamshidhar66
0
59
Member Avatar for jrotunda85

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

Member Avatar for divyakrishnan
0
1K
Member Avatar for rpv_sen
Member Avatar for naru vaishnaw

frame and iframe are html tags. refer this [url]http://manda.com/iframe/index.html[/url]

Member Avatar for karthik_ppts
0
51
Member Avatar for dmelgray

Your database is not connected. Your input dbserver/dbuser/dbpass is wrong. Please use code tags to add your code.

Member Avatar for diafol
0
207
Member Avatar for rahulephp
Member Avatar for knitex

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

Member Avatar for karthik_ppts
0
152
Member Avatar for aithabuddy

execute this [CODE]"select * from temp where venue <> '' and cat1 = 'sports' and id < 74528"[/CODE] first and see how many records will the op?

Member Avatar for karthik_ppts
0
169
Member Avatar for jacob21

Did you use print option in your code? If yes, which method you used to print?

Member Avatar for karthik_ppts
0
1K
Member Avatar for naru vaishnaw
Member Avatar for Yemen Coder

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]

Member Avatar for ko ko
0
149
Member Avatar for amras123
Member Avatar for naru vaishnaw

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

Member Avatar for divyakrishnan
0
156
Member Avatar for naru vaishnaw

$userg is result set not your field value... So replace your line no 11 with [CODE=php]echo mysql_result($userg,0,"avatar");[/CODE]

Member Avatar for karthik_ppts
0
151
Member Avatar for tstory28

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

Member Avatar for cjohnweb
0
488
Member Avatar for navi17
Member Avatar for sharga
0
2K
Member Avatar for naru vaishnaw

In line no 5 the $_SESSION["username"] is always set to "Ram". Thats why the problem. Please check that line.

Member Avatar for ko ko
0
102
Member Avatar for jacob21

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

Member Avatar for ko ko
0
59
Member Avatar for muralibobby2015
Member Avatar for urtrivedi
0
112
Member Avatar for haimz

i am not clear with your question. Need some more details. what do you mean by referrer of domain?

Member Avatar for haimz
0
92
Member Avatar for vartol

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.

Member Avatar for karthik_ppts
0
362
Member Avatar for jacob21

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

Member Avatar for karthik_ppts
0
144
Member Avatar for Rewired
Member Avatar for MrDJK
0
250
Member Avatar for ElliottDuke
Member Avatar for jacob21

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 …

Member Avatar for karthik_ppts
0
332
Member Avatar for svmer

[CODE] <a href="http://www.daniweb.com">dani web</a> <a href="http://www.daniweb.com">daniweb 2</a> [/CODE]

Member Avatar for almostbob
0
103
Member Avatar for didi00

How it is solved? what was the problem in that? can you please explain?

Member Avatar for didi00
0
121
Member Avatar for vbx_wx
Member Avatar for jitu_mania

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

Member Avatar for jitu_mania
0
193
Member Avatar for abhi10kumar

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.

Member Avatar for karthik_ppts
0
147
Member Avatar for rotten69

[URL="http://www.daniweb.com/web-development/php/threads/367950"]Go to this thread http://www.daniweb.com/web-development/php/threads/367950[/URL]

Member Avatar for rotten69
0
517
Member Avatar for gonidelux
Member Avatar for dhruv_arora
Member Avatar for dhruv_arora
0
189
Member Avatar for rakibtg
Member Avatar for rakibtg
0
192
Member Avatar for prabhjitsw

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

Member Avatar for twiss
0
398
Member Avatar for Jaklins
Member Avatar for BaSk
Member Avatar for Airshow
0
173
Member Avatar for tstory28

As Ardav suggested, Use session to protect your page from unauthorized users.

Member Avatar for diafol
0
116
Member Avatar for shyam2011

Re-post this with some more explanation for our understanding and use code tags to post your codes

Member Avatar for vibhaJ
-1
1K
Member Avatar for jacob21

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]

Member Avatar for urtrivedi
0
88
Member Avatar for karthik_ppts

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 …

Member Avatar for karthik_ppts
0
167
Member Avatar for jacob21

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

Member Avatar for karthik_ppts
0
2K
Member Avatar for simirnov

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 …

Member Avatar for calebcook
0
421
Member Avatar for sim_pack
Member Avatar for dourvas

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

Member Avatar for dourvas
0
180

The End.