841 Posted Topics
Re: join the queries like: [CODE] $country2=mysql_query("select products.* from members,products where products.datanum='$localid' and members.id!=products.uid");[/CODE] if not, explain your problem clearly. | |
Re: one small error i have found is: you missed the '=' in form tag. [code] <form [COLOR="Red"]method="post"[/COLOR] action="http://localhost/movie1.php"> [/code] Rest of the code working fine for me. | |
Hello All, My problem is, i have one database and application in web server, another application in local server which is having another database . But some tables are same in database server and in my local database. I want to update these particular tables from data base server into … | |
Re: your above code is simply fine. what your dbconnect.php page contains? try to include dbconnect.php page ([B]include "dbconnect.php";[/B]) at the first line of your page. | |
Hello all, I have successfully deploy my jsp project into webserver.It is running fine. But my problem is , my project contains some .java/.class files where i have written classes and methods. If i want to change this .java file and re-upload it to web server, it is not get … | |
Re: [QUOTE]Also i get an error while trying to use textbox names or id's inside java tags of JSP. Is there a way to access those elements.[/QUOTE] you have to write like this: [CODE] String pword=request.getParameter("Pswd"); String uname=request.getParameter("UNam");[/CODE] then your query should be like: [CODE]String s1="select * from Cat where cid='"+pword+"' … | |
Re: Use [B][URL="http://www.learn-ajax-tutorial.com/"]ajax[/URL][/B] for dynamic database insertions. | |
Re: <!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 http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> function buttonPress(str) { var str; alert(str); } </script> </head> <?php session_start(); error_reporting(E_ALL ^ E_NOTICE); include "dbconfig.php"; $id=$_SESSION["valid_user"]; ?> <body> <form name="Item Search" method="post" action="search.php"> Item Search:<br> <label> <input name="swords" type="text" … | |
Re: try this: [CODE]$sqlquery = "SELECT email FROM userdetails WHERE email='".$_POST['email']."'";[/CODE] | |
Re: try to give like this: [CODE]out.println("<input type=\"radio\" name=\"n1\" value=\""+rs.getString(3)+"\"/>");[/CODE] | |
Re: check this: [url]http://php.net/manual/en/function.htmlspecialchars.php[/url] | |
Re: yes, search with session keyword in php.ini file. you can find this line: [CODE]; Lifetime in seconds of cookie or, if 0, until browser is restarted. session.cookie_lifetime = 0[/CODE] | |
Re: [code] <table border=1> <tr> <td>LOAN NO</td> <td><?php=$title?></td> </tr> <tr> <td>NAME</td> <td><?php=$title1?></td> </tr> <tr> <td>ADDRESS</td> <td><?php=$title2?></td> </tr> . . . .etc </table> [/code] | |
Re: if you use else if conditional statement, then your control goes for one valid condition. If you want to go for every condition to be checked , then simply use if condition for every input. and also check it: [CODE] if (cofaCOURRIEL == null || cofaCOURRIEL == "") { alert('Le … | |
Re: this: [CODE]<script type="text/javascript"> document.write("<SELECT NAME=\"choice\" >"+ "<OPTION VALUE=\"1\">one </OPTION >"+ "<OPTION VALUE=\"2\">two </OPTION >"+ "<OPTION SELECTED VALUE=\"5\"> 5 </OPTION>"+ "</SELECT>"); </script>[/CODE] | |
Re: if you want to create voting poll script in html, then use form tag, radio button, submit button etc.. for example code, check the below: [CODE]<form method="post" action="http://poll.pollcode.com/GzRN"><table border=0 width=150 bgcolor="EEEEEE" cellspacing=0 cellpadding=2><tr><td colspan=2><font face="Verdana" size=-1 color="000000"><b>test test?</b></font></td></tr><tr><td width=5><input type=radio name=answer value="1"></td><td><font face="Verdana" size=-1 color="000000">1</font></td></tr><tr><td width=5><input type=radio name=answer value="2"></td><td><font face="Verdana" … | |
Re: [QUOTE]another problem is that if quotation marks exist in the comment, the comment doesn't get stored in the database.[/QUOTE] for this use [ICODE]addslashes($str);[/ICODE] | |
Re: one mistake what i found : [ICODE]int counter = 0; bool $success =[/ICODE] you have initialized these two variables two times. | |
Re: Your code is working fine for me: or else try with this: [code] echo $_POST['myVal']; [/code] or try this: [code] <form name="myForm" method="Post" action="test12.php"> <INPUT TYPE="hidden" name="myVal" id="myValue" value="0" /> <INPUT TYPE="submit"> </form> [/code] if you click submit without passvalue button , then it displays 0. if you click submit … | |
Re: check out some good site regarding this: [url]http://swik.net/MySQL/MySQL+vs+MS+SQL+Server[/url] [url]http://www.tometasoftware.com/MySQL-5-vs-Microsoft-SQL-Server-2005.asp[/url] [url]http://searchsqlserver.techtarget.com/tip/SQL-Server-vs-MySQL[/url] [url]http://www.postgresonline.com/journal/archives/51-Cross-Compare-of-SQL-Server,-MySQL,-and-PostgreSQL.html[/url] [url]http://www.differencebetween.com/difference-between-mysql-and-ms-sql-server/[/url] | |
Re: use this code to validate extension: [code] echo pathinfo($dirArray[$index], PATHINFO_EXTENSION); [/code] | |
Re: if your session initialization is not in get_http_vars.php, then your can get then session in any page. First of all check the session is set or not. | |
Re: i have modified your code . try this: [CODE]<div id="errormsg"></div> <form action="delete.php" method="post" onSubmit="return checkDel()" > <table width="200" border="0" cellpadding="2" cellspacing="0" class="adforms"> <tr> <th width="40">Name: </th> <td width="152" align="left"><input type = "text" name = "dname" size="15" id="delnain" onclick="hideid()"/></td> </tr> <tr> <th>ID: </th> <td align="left"><input type = "text" name = "did" … | |
| |
![]() | Re: [CODE]$IP = $_SERVER['REMOTE_ADDR']; $date_time = date("l j F Y g:ia", time() - date("Z")) ; echo "$date_time IP: $IP";[/CODE] ![]() |
Re: [CODE]<tr><td>requested ship date</td><td><input type="text" id="r_s_d" value="<? echo $d; ?>" onchange="<? data_copy() ?>" /></td></tr>[/CODE] You cannot call a php function on onchange of a form element. change 28 line to: [code] <tr><td>requested ship date</td><td><input type="text" id="r_s_d" value="<? echo $d; ?>" onchange="data_copy()" /></td></tr> [/code] and make data_copy() as javascript function.. | |
Re: try this: [CODE]<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript"> function combofunction(x) { var divEls = document.getElementsByTagName("div"); var i = 0; for(i=0;i<divEls.length;i++) { divID=divEls[i].id; //alert(divID); //alert(x); if(divID == x) document.getElementById(divID).style.visibility = "visible"; else document.getElementById(divID).style.visibility = "hidden"; } } </script> </head> <body> <select name="htmlcombo" id="htmlcombo" onChange="combofunction(this.value);"> <option … | |
Re: -> remove if your top.php contains session_start(); statement. -> Check that there are not any spaces at the end of those included files. -> try placing this at the top of your page: <? ob_start(); ?> -> remove white space before or after the opening and closing PHP tags (<?php … | |
Re: check this:[url]http://www.phpeasystep.com/phptu/2.html[/url] | |
Re: [url]http://books.google.co.in/books?id=15wp6fmAy4sC&pg=PA466&lpg=PA466&dq=%3Cc:url+value%3E+in+form+tag+jsp+means&source=bl&ots=SMEGUt4poS&sig=dcBZbxomDok5sI38HAZHTMJTdqo&hl=en&ei=GYc6TYXxFNDirAeth9C5CA&sa=X&oi=book_result&ct=result&resnum=3&ved=0CCQQ6AEwAg#v=onepage&q=%3Cc%3Aurl%20value%3E%20in%20form%20tag%20jsp%20means&f=false[/url] | |
Re: You just write all your textbox properties in css file like: [code] .class1{ font-weight:normal; } .class2{ font-weight:bold; } [/code] You can change your textbox in php like: [code] if(something) { $style="class1"; } else { $style="class2"; } [/code] then use this class for your text box like: [code] <input type="textbox" name="test" … | |
Re: [CODE]$h=0;$m=0;$d=0; $mystring= "47h9m10d"; $d=getValue($mystring,"d"); $h=getValue($mystring,"h"); $m=getValue($mystring,"m"); echo "d:".$d." , h:".$h.", m:".$m; function getValue($mystring,$type) { $pos = strpos($mystring, $type); if ($pos !== false) { $v=substr($mystring, $pos-2, 1); if(is_numeric($v)) $v=substr($mystring, $pos-2, 2); else $v=substr($mystring, $pos-1, 1); } return $v; }[/CODE] But this works only for 2 digit values like '99h99m99d' not for … | |
Re: you just initialize session. no need to return it. As it is a global parameter, if once we set it, we can get the value in any page. replace your line: 4 like this: [code] $_SESSION['PolicyNumberAdd'] = $PolicyNumber; [/code] Then your code works. Goodluck. | |
Hello frnds... i want to send mail with attachment using mail function.. Any one can u pls give me the solution. Shanti | |
Re: basename — Returns trailing name component of path. [url]http://php.net/manual/en/function.basename.php[/url] | |
Re: and also check this thread: [url]http://www.daniweb.com/forums/thread262236.html[/url] | |
Re: AJAX is not a programming language. We can't develop a project based on only ajax. Its a technique for creating fast and dynamic web pages(in any language). Its a additional skill that every web developer must have knowledge. It is not more than 1 or 2 weeks to learn this … | |
Re: no, we must have to give full file name with extension: [url]http://www.jsptube.com/jsp-tutorials/jsp-include-directive.html[/url] | |
Re: may be this: [url]http://ajaxpatterns.org/Periodic_Refresh[/url] | |
Re: see this if you want it in a static way: [url]http://www.weberdev.com/get_example-4398.html[/url] see this if you want is from data base: [url]http://www.plus2net.com/php_tutorial/php_drop_down_list.php[/url] or if you want it with out reloading page go for ajax. | |
Re: You can get more samples if you search google. Any way find this script and change it according to your requirement. [url]http://www.toknowmore.net/e/1/javascript/javascript-disable-enable-text-box.php[/url] | |
Re: [CODE]function getKey() { $key=generateKey(); if(!chkKeyExists($key)) { return $key; } else { getKey(); } }[/CODE] | |
Re: [url]http://digitalmidget.com/php_noob/comment.php[/url] | |
Re: if you want recently inserted id then, you can try this: [code] $id=mysql_insert_id(); [/code] check this:[url]http://php.net/manual/en/function.mysql-insert-id.php[/url] | |
Re: change your line to: [code] echo "<input type='checkbox' name='results'>" . $result . ""; [/code] and then validate like this : [code] var total=0; for(var i=0; i < document.form1.results.length; i++){ if(document.form1.results[i].checked) total =total+1; } if(total!=document.form1.results.length) alert("Please select all") [/code] | |
Re: Did you change data base settings ? What did you used for php tags: whether it is [ICODE]<? ?>[/ICODE] or [ICODE]<?php ?>[/ICODE]. For this [ICODE]<? ?>[/ICODE] , we need to enable short tags in your server. Is your website is having index.php or not? Where did you uploaded your code … | |
Re: check these urls for some good points: [url]http://www.htmlforums.com/server-side-programming/t-battle-royal-php-vs-perl-vs-jsp-vs-asp-vs-3298.html[/url] [url]http://www.theanand.com/blog/index.php/techie/php-vs-asp-vs-jsp/[/url] | |
Re: [QUOTE]what kind of field should i use in the mysql database?[/QUOTE] You can do upload images functionality in two ways: 1. You store your image in folder and then save that path in database. 2. Directly you can store image in database. First way is always recommended. Because if you … | |
Re: call parent refresh before closing child window like: [code] window.opener.refreshdash(1); [/code] or something like [code] window.opener.document.location.href = window.opener.document.URL; window.close(); [/code] |
The End.