52,566 Archived Topics
Remove Filter ![]() | |
hello iam have some trouble in my page code this is the profile page code i started the session in the first row of page and this is the code that have a problem [CODE]<? if ($_SESSION['username'] || $_SESSION['password']) { $query = "SELECT * FROM users WHERE username='$_SESSION[username]'"; $result = … | |
[ICODE]Can any one help with a simple php code to get time difference this is what i did, don't be mad at my effort, i tryed other ways and failed.[/ICODE] [CODE]$tf_con =time(st$_POST['time_out'] - $_POST['time_in']);[/CODE] Web Development php | |
anyone mind lending a hand :/ basically, what I have is a code containing 2 iframes inside a div. what I'd like to do is refresh one of the iframes when it's page recieves an update from another user. perhapse I could load the page on the document load, and … Web Development javascript | |
style.css [CODE] #header { background-color: #999999; height: 200px; } #login { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; height: 50px; background-color: #FFFF00; background-image: none; } #searchwrapper { width:310px; /*follow your image's size*/ height:40px;/*follow your image's size*/ background-image:url(Images/search_box.jpg); background-repeat:no-repeat; /*important*/ padding:0px; margin:-40px; position:relative; /*important*/ left:800px; } [/CODE] index.php [CODE] <div … Web Development php | |
Hi, I am trying to read a file but I have a problem because it is read in the end an empty line (this line does not exist) My code is [CODE] $file_handle = fopen($newFilewithFolder, "r") or exit("problem."); $getfileInfo = fgetcsv($file_handle); $numcols = count($getfileInfo); // my file is opened again … Web Development file-system php | |
Hi everyone, I have problem with form at my site. When you fill the text boxes it works fine but when you click SEND, the site is refreshing, form is clear and no message has been sent. My knowledge about PHP is very low. I found the tutorial which shows … | |
Dear all, I'm passing a javascript String variable varname in a form inside a jsp to another page. [CODE] <form name="form1" action="nextpage.jsp" method="post "> <input type="hidden" name="varname" value="teste" /> <input type="button" value="button" onClick="document.form1.varname.value = function(window);"> <input type="submit" name="button" value="test1" /> </form> [/CODE] When I get the String in the next … Web Development java-jsp javascript | |
Hey Everyone! It's 6:29pm EST and I have been working on this same problem since about 9am. I'm usually able to Google my way to the solution- but I have reworded my search numerous times and went through mountains of forums trying different approaches but to no avail. Here is … Web Development php | |
Hi! I have a JS ajax function that goes into PHP file and returns (by echo) javascript code (a string data). All that is echo-d is in "return_data" variable. The problem is that returned JS code wont run. For example if i try to return simple JS function alert from … Web Development php ![]() | |
How can get the contents of YUI rich text box in HTML format to POst.php page. [CODE]index.php <?php if (isset($_POST['submit'])) { echo 'You entered: <br />'; echo 'name: ' . $_POST['name'] . '<br />'; // this works fine echo $_POST['message']; // this does not work } ?> <!DOCTYPE html PUBLIC … ![]() | |
I would like to execute some Javascript after the document has loaded and even after the document.onload functions have been executed. Situation: I'm loading a text-edit field through ajax. When the user submits the form, he is redirected to a PHP file. That PHP file redirects him back to "file.php" … Web Development javascript | |
Hi, I have bound the data in the grid view using the following code [CODE] gvHolidaysLst.DataSource = dsHoliday; gvHolidaysLst.DataBind(); [/CODE] But I wanted to add a new column with check box control in the grid view.An error occurs while filling the grid view because the data source contains only 3 … Web Development asp.net | |
[CODE]<form id="form1" name="form1" method="post" action="updatebodyNo.php"> <table width="356" border="0" align="center"> <tr> <td width="94"><span class="style12"><span class="style12 style57">BodyNo</span></span></td> <td width="155"><span class="style12"><span class="style12 style57">Defect Code</span></span></td> <td width="93"><span class="style12"><span class="style12 style57">Quantity</span></span></td> </tr> <tr> <?php include ("connection.php"); // get value of id that sent from address bar $bodyNo=$_GET['bodyNo']; $sq1 = mysql_query ("SELECT * FROM paintshop WHERE … Web Development php | |
hi, there.. i have few problems here... i have 2 table in my database.. and i want to take few data from first table and insert it into second table... how can i do that?? i don't want the user write it twice in different form... is there any way … Web Development php | |
hi i have below structure in my database table id eve_id cat_id member add_date 1 Tel1 5 1,2,3,4,5 0000-00-00 2 Acc2 2 3 0000-00-00 3 For3 3 1 0000-00-00 4 Acc4 2 5 0000-00-00 5 Acc5 2 6 0000-00-00 now my query is as below [CODE]$memque="select * from tblevent where … | |
Hey guys!!! Am building a system that user will be searching data from database..I want to display those data in table where a whole row will be a link to a specific data.For example a table will list some members of a community and each row is a link to … Web Development php | |
Hi all What is ORM (Object Relational Mapping)? I have just heared the name ORM, but don't know what it does :) Web Development php | |
Hi all.I found this code on forum.But dont know how to alter this to show the records datewise.I want to display sales and purchase for given period of time and show the balance quantity by deducting total sales from the total purchase. Here is my code: [php] <?PHP if(isset($_POST['Submit'])) { … Web Development php | |
Hi! I have problem that i fail to find solution for and im looking for some help from you as im hopelessly struggling for answers. So i have a HTML table and some cells are filled with id-d div-s. The problem is only the first id-d cell is filled with … Web Development php | |
Can any one let me know what script is this? Just want to get the same script or similar one for live video TV website. [url]http://www.baani.net/[/url] Web Development | |
Hi, I am using php mail for sending an email for contact us form. Given below is the code for contact us form. Please let me know how to send these information in table format. [ICODE] <!-- Document : contactus Created on : Aug 26, 2011, 2:15:27 PM Author : … | |
the admin page goes nowhere before it works very well [CODE] <?php session_start(); if (isset($_SESSION["manager"])) { header("location: index.php"); exit(); } ?> <?php // Parse the log in form if the user has filled it out and pressed "Log In" if (isset($_POST["username"]) && isset($_POST["password"])) { $manager = preg_replace('#[^A-Za-z0-9]#i', '', $_POST["username"]); // … | |
Hello and Merry Christmas to all! Can anyone explain the correct behavior of a web application: what PHP is used for, what JavaScript is used for? For now, I want to make a simple page with radio buttons, drop down lists and text areas. Some will have data from the … Web Development javascript php ![]() | |
how string comparison is done in php? i wan to copmpare two strings and result i want is the same letters in both strings? any help plz Web Development php | |
I have a slight situation in my app in my jsfiddle. What I want to do which I can't achieve is that I want the functionality of the Option Type, Number of Answers and Answer buttons within each row to match the functionality on top. The problem is that under … Web Development html-css javascript javascript-jquery | |
Hello, I want to validate this form and display error right next to the input field. [code=html] <div id="regForm"> <form action="register.php" method="POST" onsubmit="return validate(this);"id=registration" name="registration"><p> Username: <input type="text" name="username" id="username_reg" /><br /> Password: <input type="password" name="password" id="password_reg" /><br /> Repeat password: <input type="password" name="repeatPassword" id="repeat_reg" /><br /> Email: <input type="text" … Web Development javascript | |
Hi, I have some problems with the code below. Also below the code I have two pictures one from IE one from Chrome. [CODE] <object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="280" height="256"> <param name="fileName" value="<?php echo $check ?>"> <param name="animationatStart" value="false"> <param name="transparentatStart" value="false"> <param … Web Development microsoft-windows php storage | |
table name:student enroll id name date_of_admission 1 kiran 2008-11-11 how to minus date of admission column in current date in phpmysql? i want year difference and month difference separately Web Development php ![]() | |
I have this alert box that I would like to add a sound after you click ok. Can this be done to the script I have here? Thanks [CODE] //<![CDATA[ var alertmessage="Well this the last and finale Assignment for the JavaScript Level One Course" //Alert only once per browser session … Web Development javascript session | |
Greetings, I am building a new site, HTML, PHP, MYSQL. I am having a discussion with a coworker regarding how I should handle my PHP functions that handle my SQL. In my HTML page I call my PHP function, which accesses my MYSQL. Should my PHP function: - extract the … | |
Hello! First of all I want so say that I really like this is forum and hope that you can help. I want to install php on my computer, but for some reason can't. I read that the easiest way to install it all in one go is with wamp, … Web Development php | |
hi m trying to make a registeration form. i have made it and trying to validate it. m new comer so dont have much knowlege so having problems in validating form. i have three files one is registeration form. other is geting value from form and storing it in database … Web Development php | |
hey expert, I m working on a project where i have to genrate pdf from given data using php give me your expert suggestion.... how its happend......? | |
Hi, I am trying to develop a blog and stuck up in managing the blogs. The logic with which I am working is that the user who has logged in should be able to see his or her own blog to manage it of course. Now for this I have … | |
Hi all Could someone show me an example how to use Blowfish with crypt? [code]$password = crypt($_POST["password"], '$2a$07$0k5ls4mbfakdl2mbk5lo9dkr$');[/code] Looks strange as well as the output. Web Development php ![]() | |
hi i want to create some random password for users who sign up in the website also i want to use from rand command in php for creating some numbers among some characters and the results will be some things like this : sa231dsaw22sa suppose it as a example of … Web Development php | |
I'm looking for javascript of a bird flying across my screen, is there such thing? or maybe an airplane. Thanks. Web Development javascript | |
Hi, I'm doing a registration system and as you can see when i verify the fields, if it's empty it says that the FIELD_1 misses. And what i want is if the field is empty says that and then goes back, but i don't wanto the info already written disappears. … Web Development php | |
Dear All, I'm working on a web application, JSP. I have a script with a javascript function that returns a String. I want this returned String to be passed to another page in a form, when a button is clicked. Any ideas on how to make this work? I was … Web Development javascript | |
Hi im attempting to create a room viewing system where by The building selected with a drop down - this uses an sql query to store the data of the building from a different table rooms then if its available from now ie rooms free for 1 hour from now … Web Development php | |
I have a drop down menu on my page, and I want to change the background color of the box from white to match the rest of the page, how do I do this. Thanks [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta … Web Development html-css javascript open-source | |
Hi.. I have 3 DropDownList:- DropdownList1 has status,DropDownlist2 has date and DropDownList3 has duedate and based on these values selected i want to populate the Gridview following is my code.. protected void Button1_Click(object sender, EventArgs e) { string con = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; SqlDataAdapter sda = new SqlDataAdapter("Select * from DropDownFilter where … | |
i am using netbean to develop a registration form. As this i want to know what is the coding to check input of text, integer, email , so i can restrict what they input..hope some 1 help me =) Web Development javascript | |
I have the following error: (include_path='.:/usr/share/php:/usr/share/pear') in /home/sloki/user/masterli/sites/masterlink.co.id/www/cgoods/banner.php on line 15 Line 15: include("includes\koneksi.php"); That error appears after I upload my website online. Why is it ? Web Development php | |
Iam Making Register & Login System Thats My Code [CODE]<?php include ('func.php'); include "Admin/config.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" dir="rtl" lang="ar"> <head> <title>ÇáÊÓÌíá</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1256" /> <link href="favicon.ico" rel="icon" type="image/x-icon" /> <link rel="stylesheet" type="text/css" href="Style.Css" /> </head> <body> <?php include "header.html" ?> … | |
Hello guyz.. Now am currently doing a SMS portal site . I have 2 frames like , <frameset rows"" cols""> <frame src"page1.php">Page1</frame> // Navigation <frame src"page2.php">Page2</frame> // Main Content </frameset> Navigation : Static main Content : Dynamic || By this case when user press F5 the Main content frame goes … Web Development php | |
Hi, im making my new CakePHP project and I've got some problems with validating data, which comes from form. I mean i do know how to add custom rule but i don't know how should regex for 9 numeral telephone number looks like. [code] function checkPolishNumber($inputValue){ $regex = 'what to … | |
Hi All! I'm working on a web application, JSP, where a user selects the text with the mouse in html. I want this text to be inserted in a MySQL database as a java string using prepareStatement in Java and executeupdate. Example: String querystring = "INSERT INTO mySelectedTextTable(selectedTextWithMouse) VALUES (?)"; … Web Development java-jsp javascript mysql | |
Hey, I'm building my own platform mainly for a project, but, for my own personal use as well.. I'm also changing the style of programming that I do it in, and, setting up some rules.. I just wondered if there are any disadvantages to the way that I am setting … Web Development php | |
the code below is not working [CODE]<?php $product=array(); $plicense_key=array(); $count=2; $product['0']="The life of game"; $product['1']="The game of life"; $product['2']="Congo"; $plicense_key['0']="xf456-sdfrd"; $plicense_key['1']="xf456-sdfrd"; $plicense_key['2']="xf456-sdfrd"; $to=$user['email']; $subject="Thank you for purchasing"; $txt= "Thank for purchasing our product.your product related information is-"; for($i=0; $i<$count; $i++) { if($i=0) { $txt.="product:Licence_key"; } $txt.=$product[$i]." :".$plicense_key[$i]; } echo $txt; … Web Development php ![]() |
The End.