39,402 Topics
![]() | |
Hi, I have a page that loads for some time and it would be nice to show some progress. I want it to show messages like "loading..." and "x amount of something loaded so far" during the process, however, it only appears in the end. I have disabled the output … ![]() | |
[CODE]<?php $posapp=$_POST['txtapplied']; $fname=$_POST['txtfname']; $mname=$_POST['txtmname']; $lname=$_POST['txtlname']; $month=$_POST['txtmonth']; $day=$_POST['txtday']; $year=$_POST['txtyear']; $age=$_POST['txtage']; $eadd=$_POST['txtemail']; $homenumber=$_POST['txthnum']; $cpnumber=$_POST['txtcpnumber']; $address=$_POST['txtaddress']; $religion=$_POST['txtreligion']; $birthplace=$_POST['txtbplace']; $height=$_POST['txtheight']; $weight=$_POST['txtweight']; $civilstatus=$_POST['txtcstatus']; $college=$_POST['txtcollege']; $course=$_POST['txtcourse']; $year=$_POST['txtyeargrad']; $db=mysql_connect('localhost','root','') or die ('Cannot connect to MYSQL!'); @mysql_select_db('dbriomra') or die('Cannot connect to database'); $query=mysql_query("Insert into onlineapplication values ('posapp', 'fname', 'mname', 'lname', 'month', 'day', 'year', 'age', 'eadd', 'homenumber', 'cpnumber', 'address', … | |
ok here is my problem, I am kind of new to Php but have done programming before. I am recently learning php so am not sure what php can or cant do. What i am trying to do here is i have a multiple submit buttons which i input some … | |
Hi, I am new to php/ajax.What i am trying: I have one drop down list,one test box & a button more.if i click more button same drop down & textbox & more button should open $ further goes on.. I need suggestion ?? what should i use??I have to insert … | |
<td><input name="power" type="checkbox" disabled="disabled" <?php if($row['power_backup']=='on') echo "checked"; ?> /></td> <td>Power Backup</td> <td style="width:25px;"><input name="purifier" disabled="disabled" type="checkbox" <?php if($row['water_purifier']=='on') echo "checked"; ?> /></td> I have some checkboxes ,what i am trying to do if a checkbox is checked(its value is on) it should bold. need suggestions. | |
Hi, I want to display my database, however I cannot used the conventional method (like this [url]http://www.siteground.com/tutorials/php-mysql/display_table_data.htm[/url] )as the structure is unkown. The user of the system can create and delete columns. Does anyone know how I would be able to display the columns with the stored data? If this … | |
Can any body tell how can we pass values from controllers or Models to views in codeigniter? | |
Parse error: parse error in C:\wamp\www\dani\add_invoice_Item.php on line 75 [CODE]<?php $q=$_GET["q"]; $con = mysql_connect('localhost', 'root', ''); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("dani", $con); $sql="SELECT * FROM invoice_item_details WHERE itemId = '".$q."'"; $result = mysql_query($sql); echo "<table border='1'> <tr> <th>ItemCode</th> <th>GoodsDescription</th> <th>UnitPrice</th> <th>Quantity</th> <th>TotalPrice</th> </tr>"; while($row … | |
Hi there, I need to create a website for a client using a CMS. This client is a manufacturer and wanting to have a website that is pretty much similar to an ecommerce website except they won't be selling anything. It will have categories and list all the products. It … | |
Hey guys, I've got a theoretical question. I've tried to work out how some of the code would work in my head, and I always stump myself. Maybe it's my lack of knowledge - who knows! I am trying to create an online forum inside of my application. Yes, I … | |
hi everyone, I am trying to make 5 pages.. 1 is an html page and the last 3 are php pages.. the html page is called data_uploader.htm and contains: upload image upload html AD submit go to sender When you up click submit loads the files and then it returns … ![]() | |
I've looked extensively for an answer to this but have gotten nowhere. Here’s what I’m trying to do: I’m having people submit a form on my Wordpress site telling me their pledges for a volunteer campaign. When they submit their volunteer project I want to have a counter track the … | |
hi guys, how can i get the difference between two strings in PHP? i mean lets say string 1 = "hello world" and string 2 = "Hello World" the php code should compare these two strings and output something like: the difference between the two strings is 20%... so how … ![]() | |
Hi There, I have an XML data [code] <coordinators branch="xx"><coordinator cnum="xx"> <value key="role" type="string">BC</value> <value key="role_desc" type="string">role</value> <value key="name" type="string">xx</value> <value key="tel_number" type="string"/> <value key="email_address" type="string">xx</value> </coordinator> <coordinator cnum="xx"> <value key="role" type="string">BC</value> <value key="role_desc" type="string">role</value> <value key="name" type="string">xx</value> <value key="tel_number" type="string"/> <value key="email_address" type="string">xx</value> </coordinator> </coordinators> [/code] I need to … | |
Hello there, I'm new to the community and kinda new to PHP and I'll leave it at that. I am currently developing an E-Leave System for my final project course of my university. I'm having difficulties in designing a form for a leave application which consist of two date picker … ![]() | |
I hope you guys can help me, basically... I have 2 database tables (note: the [B][U]U & B[/U][/B] here are my particular fields of interest - the id and fk_id are the PK and FK) (main)Table 1 gives the MAIN_TITLES (id, [B][U]TITLE[/U][/B], positioning, created, modified) (list)Table 2 (id, [B][U]FK_ID[/U][/B](= T1 … ![]() | |
Hi I had a real estate web site and user/visitor can post their property into the database. Now What I need is After 15 days the post will be delete automatically. Please any give me the idea for doing this. "How to do delete using Date ?" Please Help me.. … | |
I have a basic search result page going right now, but i want the code to generate a html link on the search name so I can see all the data associated with the customer name. I have a simple DB set up with Customer Name, Computer type, Model, etc. … | |
Hi All, I installed php 5 in my linux pc. My phpinfo() says libXML support active libXML Version 2.6.23 libXML streams enabled But still I cannot use DOMDocument in my script. When I use it in my script, Class 'DOMDocument' not found in /var/www/html/getcontent_3.php Any pointers will be very much … | |
Hi, I have two PHP pages, in first page I have a textbox which will accept the Google Map Embed Link and I want to accept the entered value in the second page and display the corresponding Google Map. But the second page is not receiving the full code, please … | |
Hello to all, I have a problem that how can i fetch value from database when i select dropdown list option related information should be show in textbox in php. Value should be retrieve from database. In dropdown list values are also coming from database. | |
i've done this [code]RewriteRule ^([A-Za-z0-9-]+)/?$ profile.php?user=$1 [L][/code] to make [code]www.example.com/profile.php?user=testing[/code] into [code]www.example.com/testing[/code] What i'd like to do is change.. [code]www.example.com/profile.php?user=testing[/code] into [code]www.example.com/user=testing[/code] What is the RewriteRule to accomplish this? Also if i used $_GET['user'] with the second clean url would it still work? | |
I need to implement video streaming in my page with adobve flash player.IN this a user can seek any part part of video. | |
Hi, I have downloaded the latest dev build of Google Chrome (Version 17.0.942.0) which is the latest dev build. Thanks.which supports the hybi 10 websockets protocol. After running the websockets server (IP 192.168.2.12), if I try the websocket client program on the server itself, it works. However if I run … | |
Hello all. Well, I posted about search results and thanks for the help. I modify even more that it includes a select option next to the person's name. This is where I have the trouble. Objective is the person that I search, I can click "select" on that person, and … | |
product_edit.php [CODE] <?php // DATA BARU //if ($_REQUEST[mode]=='edit') //{extract ($_REQUEST); //do something //echo $_REQUEST['id']; //will give us the valid id from the previous page. //} $nama = isset($_POST['nama']) ? $_POST['nama'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $harga = isset($_POST['harga']) ? $_POST['harga'] : ''; $gambar = isset($_POST['gambar']) ? … | |
i'm getting the following errors: Notice 8: Undefined variable: student_info [APP\controllers \motor_developments_controller.php, line 7] i'm getting the same notice in \motor_developments\search.ctp as well. The student_info data in $this->redirect is not getting passed from merry_parents_controller's login function to motor_developments_controller's search function. Does anyone know on why student_info is not getting passed? … | |
Hi Everyone... I need your help please... I want to store my extracted string using list() function... Here is my code below and it doesn't work.. Is there a list() function in Javascript? [code] var Mystring; var H; var M; var S; Mystring="01:00:00"; list(H,M,S)=Mystring.split(":"); document.write("Hours: "+H); document.write(" Minutes: "+M); document.write(" … | |
I want to design a form to select the products for each step, such as select products, then page the next page to select accessories. My english is not good, so if you do not understand, this is what I want to do [url]http://www.vbcover.com/icart.php?do=order&productid=53[/url] Here is my form: [CODE]<form action="cart.php" … | |
Hi, I wonder how to create a search box like the following website: [URL="http://www.ferron-pharma.com/?q=en"]http://www.ferron-pharma.com/?q=en[/URL] The search box is on top right corner. Is it using jquery ? Besides the codes, how to create the outlooks ? | |
Hi, well im working on a project for school but I can't seem to get it to work. Its an app that is connected to a DB with 3 tables, this is my sql syntax of the db: [CODE] Table structure for table `income` CREATE TABLE `income` ( `idincome` int(11) … | |
i'm trying to get mongodb to work with cakephp. I'm not sure on where to place ichikaway's mongodb driver for cakephp. The following is my directory structure: under c:/websites/ I have cakephp folder and my project merry_flowers folder. am i supposed to place the mongodb driver in cakephp/app/plugins or merry_flowers/plugins? … | |
Hi I would like the following action to happen without having to have a 'submit' button. This would avoid users having to go from one page to a second page and the action could just happen on the first page by clicking on the word? How could it be done? … | |
Hey everyone, I have a function that has an error reading "Parse error: syntax error, unexpected '}' in C:\Program Files (x86)\EasyPHP-5.3.8.1\www\test5\func\blog.php on line 31" here is the code for that function: [CODE]function get_categories($id = null){ $categories = array(); $query = mysql_query("SELECT `id`, `name` FROM `categories`"); while( $row = mysql_fetch_assoc($query)) { … | |
Not even sure if this is the right spot to post this, but I didn't see any other place. (might have missed them) I have WAMP installed on my computer per the instructions from the book I'm using from Site Point. After I installed it, everything ran just fine up … | |
I have guestbook with two columns, username and Message Suppose multiple visitors are inserting their comments/message how to display latest message first as soon as it is inserted into database and others below without refreshing page? (Exactly same like [URL="http://www.facebook.com/"]facebook [/URL]home page) Please help Thanks! ![]() | |
Hi, As part of my university project i am doing a literature review that looks at the vulnerability of data contained by websites. It will contain the threats to the data and how it can be protected. Wondered if anyone can recommend any journals, websites, books or any other sources … ![]() | |
how to create a live streaming site with php and what are thing we need for that. | |
Hi . I surprised what why my lastIdRows method doesnt work .Please take alook at it's definition and tell me do you see any syntax error [code]public function process($query){ $result=mysql_query($query,$this->connection); if(!$result){ die("Database query failed".mysql_error()); } return $result; }// End "process()" method public function lastIdRows($column_set,$table_name,$last_id){ $query="SELECT '{$column_set[0]}','{$column_set[1]}','{$column_set[2]}','{$column_set[3]}' FROM '{$table_name}' WHERE id>'{$last_id}'"; … ![]() | |
Hi, I want to create Arabic to English dictionary with having pronunciation feature for the English words. How it is possible to implement using PHP and MySQL? Thank you, ![]() | |
Hi again, I am migrating my site from ASP to PHP. Things have been going OK, till I hit the login page. Can anyone please help me convert this thing to PHP? The live page is here: [url]http://www.regina.nu/visa.asp[/url] [CODE]<!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> <title>Inloggningssida</title> … | |
Hello. I am ok at php. I am making a web site. The problem is that when i try to decrease the size of the browser that contains my site, the elements on the page distort and get all tangled up. how do you make the browser just cut of … ![]() | |
Hello. I'm having the most difficult time trying to get the Paypals IPN subscription [CODE]Id. This is my IPN page. <?php // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // post … ![]() | |
my db has members, and statuses. each member can have 1 current status. I have a code that decides what status to give what member. thing is, it can give 2 possible statuses, and then the site admin should approve one of them(if at all) I made a report page … | |
Hey everyone! :) I have a line of code that I am not sure about and I get an error message that says, "Fatal error: Call to undefined function mysql_results() in C:\Program Files (x86)\EasyPHP-5.3.8.1\www\test5\func\blog.php on line 33" when the code is from here in this script: blog.php [CODE]<?php function add_post($title, … | |
Hello guys.. im new to php and this is the first time im making a php website for my project i made a php code for login but its not working.. the error message pop up everytime i tried to log in [CODE]Warning: Cannot modify header information - headers already … | |
Hello everyone. I'm planning of implementing auto-logout in a project I have in mind and I want you guys to tell if the way I plan to do it is the best. This is how I plan doing it. I will have table in my database, say [B]cossay_tb[/B], containing three … ![]() | |
Hi I have some code that I have written that pulls out data from a simple database into a dropdown menu. <?php mysql_connect('localhost' , 'databasename', 'password'); mysql_select_db('databasename'); $result=mysql_query("SELECT * FROM Persons"); if(mysql_num_rows($result)>0) { ?> <select name="Persons"> <?php while($rows=mysql_fetch_array($result)){ ?> <option value="<?php echo $rows['id']; ?>"> <?php echo $rows['FirstName']; ?></option> <?php } … ![]() | |
Hello, How can i get the bytes that uploaded and bytes total after i'm using the move_uploaded_file function ? Without any extension. Thanks. ![]() | |
I have 7 forms with different information to be stored in different tables. User can choose any one form at a time. How to allow user to choose one form at a time and store those values in Mysql tables using? |
The End.