52,566 Archived Topics
Remove Filter ![]() | |
How do I populate data in both tablefoot and tablebody by getting values from an sql database. For example, the data in tablefoot refers to the date and tablebody refers to the values that belong to that date. I am confused about how this kind of tables work. Thanks in … | |
HI. I was taken one grid view, in that gridview there is 6 text boxes are there (sun1b,mon1b,...... total1b), I want to add (sum) those textbox valus without ''ADD Button ''click . I need to add the text box values (Horizontal, vertical ) total, I attached the image, u r … | |
i dont know to close the theread on daniweb can any one tell me. Web Development php | |
[CODE]<?php $time1=time(); $time2=$time1+5; echo $time2-time()."Current time<br>"; setcookie("user","Abhi",$time2); // ECHO "<html> // <body> // <form action='cookie2.php' method='get'> // <input type='Submit'> sybmit // </form> // </body> // </html> // "; ?> <?php while(isset($_COOKIE["user"])) { echo "hi ".$_COOKIE["user"]; echo time()."Current time if<br>"; } if(!isset($_COOKIE["user"])) { echo "hello"; echo time()."Current time else<br>"; } ?>[/CODE] … Web Development php ![]() | |
[CODE]<?php include 'connection.php'; $data = mysql_query( "SELECT Date,color_code, COUNT(color_code) FROM paintshop WHERE Date BETWEEN '$startDate' AND '$endDate'") or die('error'); while($rw = mysql_fetch_array($data)){ ?> <td width="59" height="25" class="style5Copy"><?php echo $rw['Date']; }?></td>[/CODE] i want display the dates between i post from the form.. eg: start date = 1-12-2011 until end date 7-12-2011 … | |
Hey, I know this is a stupid way of doing it, hence the question..: How can i do this smarter: [CODE] if (($url == 'billeder') or ($url == 'billeder=1' or $url == 'billeder=2' or $url == 'billeder=3' or $url == 'billeder=4')) { include("includes/billeder.php"); } [/CODE] I just want to see … Web Development php | |
anybody can solve my php syntax problem?[CODE] $sql = "SELECT entries.*, catagories.cat FROM entries, catagories WHERE entries.cat_id = catagories.id ORDER BY dateposted DESC LIMIT 1;"; [/CODE] Web Development php | |
Hi all, I have a site, where everything is on the index.php page - and then I include files when needed. Im not sure if this matters, but now you know..the page I am trying to create pagination on, is in an included file. So the page/url i am working … | |
In a nutshell, my company is using several different programs that use a string of data regarding personal appearance information for different TV/movie character. This data need to be read in a very strict manner. (The following example is exactly how we need to input the information... including all brackets … Web Development html-css javascript php | |
Hello, I'm new to the whole regex thing, and I'm having trouble understanding the syntax. I have to separate a line by different criteria like spaces, brackets and others. Here's and example line: "$#*! My Dad Says" (2010) {Code Ed (#1.4)} 2010 What I want to have is: $#*! My … | |
Hi,guys!May i know how to i seperate -keyword and +keyword from an array? eg, i have $arrayList = array(+book,+school,-play,-study); How to i seperate those +keyword into 1 array and -keyword into another array? You help will be kindly appreciate. Best Regards, Stanley | |
Hi, I want to redirect domain.com to [url]www.domain.com.I[/url] found may people mentioned about Rewrite Rule as shown below in .htaccess. I could not find .htaccess file in my apache. There is httpd.config file. How to force domain to display [url]www.domain.com?[/url] Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC] RewriteRule ^(.*)$ … | |
To make some operations on XML elements you have to know their types. This snippet is about getting the types of these elements. | |
I have an index.php. page which is a search on my MySQL database to update HTML tables in my results.php page. I have a form on the index page as the search which is like this: <form action="results.php." method="post"> Search: <select name="searchtype"> <option value="Date">Date</option> <option value="Wk No.">Wk #</option> <option value="Artist">Artist</option> <option … Web Development first-post html-css image mysql php | |
[CODE]<?php session_start(); $_SESSION['title'] = $_GET['form_book_title']; $_SESSION['ISBN'] = $_GET['form_book_ISBN']; $_SESSION['qty'] = $_GET['form_book_qty']; $_SESSION['fName'] = $_GET['form_book_fName']; $_SESSION['lName'] = $_GET['form_book_lName']; if($_SESSION['ISBN']=="" || $_SESSION['title']=="" || $_SESSION['qty'] =="" || $_SESSION['lName'] =="" || $_SESSION['fName'] =="") { echo "please fill out all the form fields"; echo "<a href=\"sell.html\"> Go Back"; }else require_once("db_info.php"); $con = mysql_connect($localhost,$username,$pw); if(!$con) exit(mysql_error()); … | |
Hi, I don't understand why this validation check isn't work, Everything is OK, but .... [code] <html> <head> <script type="text/javascript"> function valForm() { var x = document.forms["ActorForm"]["actorfname"].value; if (x == null || x == "") { alert("First name must be filled out"); return false; } } </script> <meta http-equiv="Content-Type" content="text/html; … Web Development javascript | |
I want to show users the number of records on the database. I have this on my html page: How many ships are listed ? <form action="rowcount.php" method="post" target="_blank"><input type="submit" value="Answer here" /> </form> with about 8,000 names. and this :[CODE] <?php require_once 'dbconnect.php'; $query="SELECT COUNT(name1) FROM allnames"; $result = … Web Development php ![]() | |
HI all, i have a links which is dynamically created.after clicking this link only one ajax request has to go for retrieving relevant broker data.but after seeing in firebug it displaying sometime 3 request and some time 5 request of ajajx call. i need only one ajax call on click … ![]() | |
HTML FILE IS: [CODE] <html> <body bgcolor="yellow" text="red" > <form method="get" action="cookie6.php"> <p>Which car you want to buy?<P> <TABLE border=2> <TR><TD><input type="checkbox" value ="15" name="text[]"><TD>Ferrari<TD bgcolor="blue" width="15px"> 15million</td></TR> <TR><TD><input type="checkbox" value ="35" name="text[]"><TD>Mercedes<TD bgcolor="red"width="15px"> 35million</td></TR> <TR><TD><input type="checkbox" value ="50" name="text[]"><TD>Bugatti<TD bgcolor="yellow"width="15px">50million</td></TR> </TABLE> <input type="hidden" value="1" name="check" > <p> <input type="submit" … | |
hi, i have two drop down list. First one is populated from database and its working fine. Second one will also be populated from database but as per the value selected from the first drop-down list. [CODE]<head> <script type="text/javascript"> function xyz_list() { // xyz_list is the id of ;;my first … Web Development first-post java php | |
Hello, I've built myself a nice, simple little store to sell some stuff I've got laying around and some nice jewelry I got last week. I would like to give users the option to pay with PayPal exclusively (since it will also process CC's I figure that's all I really … | |
Hi i have a problem in uploading large file. web hosting allow me to send file 256M, Code is working for small files but i try to upload 25M size file page return back without any error, and nothing happened. i also use "set_time_limit(0);" for unlimited request time In error … Web Development file-system php | |
Hi i have 2 tables: film - filmid, filmname review - id, reviewtitle, filmreview, filmid i basically want to search for a film name thats in the film table then retrieve the review from the review table that matches the film, the match is found using the filmid as the … | |
I am working on a project in which i need to send emails after 3 days of adding projects .is it possible using php? | |
Please give idea to solve this problem . I am unable to solve this . Error is Only one instance of a ScriptManager can be added to the page. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information … ![]() | |
Hi ! I need your helps. i m developing tour website. i have no idea about flight reservation. requirement is as under: 1- user selects origin/ destination , date of travel, number of passengers ( adult/child/infant). 2-view the available flights 3- selects flights 4-get the fare/ taxes/rules of the ticket/total … Web Development php | |
Hi, This may help others too here if i succeed. I created a web form (mysql database) by phprunner v6.0. all went well. form is showing mysql data, can submit, edit add delete data. now there is a programming part which is need to be done and because of lack … Web Development mysql php web-server | |
Hello! I'm here to ask for any help or assistance on getting an informations and ideas I need for storing files in my web application research project. I'm new to Visual Web Developer Express 2008 so I hope you will bare with me. Im trying to develop a web application … Web Development asp asp.net javascript | |
Hi all here is my problem, I have a text area in html page containing a long html code. like [CODE]some code ..... ....... <input type="text" name="mobile" value="1234567890"/> some code ..... .......some code ..... .......[/CODE] From that code present in the <textarea> i need to extract following line <input type="text" … Web Development javascript regex | |
[code]public partial class Home_AlumniLogin : System.Web.UI.Page { Buildconnection c = new Buildconnection(); public string conn = ConfigurationSettings.AppSettings["dsn"]; public string str = "Data Source=S-90E1F156B1BF4\\SQLEXPRESS;uid=a;database=college"; public SqlConnection con; protected void Page_Load(object sender, EventArgs e) { } protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { con = new SqlConnection(conn); string str = "select ID1 … Web Development asp.net open-source session | |
[B]guys i am really stuck in this tried couples of ways but didnt get it right please help.My pagiantion is working fine and great untill i specfies WHERE CLAUSE in it.I am trying to have a text field so that if a user enter the interger for class search e.g … Web Development php | |
Dear Experts, I am working on an old site build in 2003. I am using VS 2010, Validation mode: Explorer 6 This <TD> is using two classes (class="head" and class="grrhead2" ) in aspx file, but can not ve validated. Kindly help me to resolve this issue. [code] <td valign="middle" align="left" … Web Development asp.net | |
Hello, I've coded an image resizing function. It works very well for most image types but I've found that there seems to be a problem with progressive jpeg. If I resize my image for a thumbnail size, 50 px of width the result is only a small black square. I've … | |
I want to have function to get the user info, It works when I don't have it in a function, but when I do the *var* that *=* mysql_fetch_assoc($q) is an undefined variable. What could the problem be? Thanks. Web Development php | |
I'm trying to print one line of text in my database code and i want it to print under a button i have made in html. [CODE]<button id="gen" type="button">Generate tables by clicking here!</button> <div id="response"></div>[/CODE] [CODE]$('#gen').click(function(){ $('#response').load('createtable.php'); });[/CODE] And this code appears in createtable.php [CODE]echo "Tables were set up correctly.";[/CODE] … Web Development php | |
I have heard that AJAX is a way to get a page to refresh when a MySQL db has changed. Basically we have a log (that several users at a time could be looking at), when data is submitted it posts to the MySQL db. Instead of having the page … Web Development javascript mysql | |
Hello I was wondering if anyone might be able to help me? this is the jquery?I have two problems that I am hoping somone can help me with? What I am trying to do is when I click on a checkbox (#Facebook) it will display a div #widget-FB, and when … Web Development html-css javascript javascript-jquery | |
im having problem saving a FILE, i doesn't save the extension name of the file and doesn't save also the images in my folder..? can you kindly look , what is my problem with my FILE code? only in FILE SAVE, i dont have errors in my other fields. [ICODE] … Web Development file-system php ![]() | |
Hello, I'm a brand new Junior Developer with about 5 months experience in ASP.NET building pages using .aspx with code behind, etc. I luckily just landed my first new job and my first project handed to me as I got set up is to have information input in a table … Web Development asp sharepoint | |
I have this code that creates gets the data from a sqlite3 database and prints it out in a table with checkboxes next to each row to check to delete that row. After deleting a row I want to update the data base so that the id of the rows … ![]() | |
Hi, I am trying to assign the value of text box to a variable in PHP. But I am consistently getting an error. The error says, "Undefined index: fname" and "Undefined index: age ". Can anyone please help me in this matter? How can I resolve this? [CODE] form action="welcome.php" … Web Development php | |
I want to make option to approve users before they can login or to ban them, here is code [CODE]MySQL Syntax (Toggle Plain Text) <HTML><HEAD><TITLE>Fakultet informacionih tehnologija</TITLE> </HEAD> <BODY TEXT="#ffffff" BACKGROUND="fakultet/Assets/bg.jpg" LINK="#FFFF00" VLINK="#CDCD00" BGCOLOR="#000000"> <CENTER><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="700"> <CENTER> <FONT SIZE=+4 FACE="arial,helvetica"> Fakultet informacionih tehnologija <HR> </CENTER> <?php session_start(); … | |
i am trying to code a chat app for my social network and i am using the following module .. [URL="http://anantgarg.com/2009/05/13/gmail-facebook-style-jquery-chat/"]http://anantgarg.com/2009/05/13/gmail-facebook-style-jquery-chat/[/URL] i have coded the rosters(manage who is online) for it .. but those rosters work only on login/logout .. on login it makes an entry for username in a … Web Development javascript-jquery php ![]() | |
Hi there, I am using a javascript command to show a message box in my web application since the MessageBox.Show() command won't work. The message box appears, however, it seems like it has navigated out of the web application showing the default grey background. How do I modify the code … | |
I'm Working with register module with xmlHttpRequest. I have checking all. When i was trying to redirect after successfull its displaying the response with in the given div. [CODE] <script type="text/javascript"> function showRegister() { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code … Web Development http-protocol javascript php xml | |
[CODE] <?php echo date("Y/m/d") . "<br />"; echo date("Y.m.d") . "<br />"; echo date("Y:->m:->d")."<br>"; echo("hello") ."<br/>"; $app5=5; echo($app5); $baby="going"; echo("$baby i love to "); //echo ($baby$app5); if($app5==5) echo "dance"."<br>"; echo strlen("dance"); echo strpos("dance","h"); switch($ab=1) { case 1: echo 1; case 2: echo 2; default : echo "default"; } $a = … | |
I am trying to build a login page in asp.net with sql as backend , when i enter the username and password and click the submit , nothing happens.. Please help this is my *.aspx.vb file........ Imports System.Data.SqlClient Imports System.Data Partial Class login1 Inherits System.Web.UI.Page Protected Sub TextBox1_TextChanged(ByVal sender As … | |
Heya all, I've got a really weird bug here at the moment. I recently uploaded a javascript file form my local dev machine to an IIS server, and it gave me an odd error: "truedocument undefined". When i looked up the line in my browser source code(the one you get … Web Development javascript | |
Hi, DaniWeb I'm doing a registration page and i want the button "Send" add the information to the MySQL DB, then appear an alert box saying: "Regsitration succesfully!!" and in the end redirect to "index.php". This is what i have: [CODE] <?PHP //ligar base de dados $dbhost = 'localhost'; $dbuser … Web Development php | |
Got 2 problems with my buttons selection. What happens is the user selects the number of buttons depending on the number entered in the text box. If the number is 3 in the text box, then the user can only select 3 buttons, if more buttons are selected then it … Web Development javascript |
The End.