38,020 Topics

Member Avatar for
Member Avatar for skliz

Please can any body help me with a simple script on how to write an ajax longing in php. I doing some on chat and have been using the old polling. so I want to switch to long pooling. so the browser would only display messages when there is a …

Member Avatar for pritaeas
0
1K
Member Avatar for Wailintun

Hi! everyone, Can someone tell me about this in drop down menu? http://www.siteexperts.com/dhtml/ch9/chapter/samples/map1/switch.htm Thanks for your time.

Member Avatar for diafol
0
62
Member Avatar for Gloak

I am designing my very own first web page. It's a real estate page where some users will add open house information while others can pull the info out. The code for the database and the web is very good (after two months...) and inserting and getting data is sweet. …

Member Avatar for LastMitch
0
1K
Member Avatar for civirol02

<?php $startdate = date('Y-m-d H:i:s'); echo $startdate."</br>"; $offset = strtotime("+1 day"); $enddate = date("Y-m-d H:i:s", $offset); echo $enddate."</br>"; $newamount = $availablequantity - $quantity; if($enddate > $startdate) { if($availablequantity != 0) { $sql = mysql_query("UPDATE size SET quantity ='$newamount' WHERE id ='$item_id'") or die (mysql_error()); } //$sql = mysql_query("UPDATE size SET …

0
87
Member Avatar for CHELKAL

i want to know phonegap to php connection. example $ajax({ } with json then php form return result i need a code for both phonegap html and php

Member Avatar for LastMitch
0
33
Member Avatar for tpickett

I have created a function that creates .xml files from input from a form provided in another script and saves the file in a network location. I got this working correctly, however, when i tried to convert it into a wordpress plugin (creating the .xml file from post meta data …

Member Avatar for LastMitch
0
2K
Member Avatar for hbm11

Hi I'm having got a problem with some of my code and can't figure out what it is. I'm receiving the following error: Parse error: syntax error, unexpected T_STRING in /home/a1907007/public_html/index.php on line 11 This is my code: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>31seconds</title> <link rel="icon" href="Images/Favicon.ico" url="image/x-icon"> <link …

Member Avatar for hbm11
0
245
Member Avatar for shahai.ali

hi i wan to add my `.xml` files into `database` and into the directory `uploads` . i have following done into the `php` if(isset( $_FILES["f_name"]) { $path = ""; if(file_exists("uploads/" . $_FILES["f_name"]["name"])) { echo $_FILES["f_name"]["name"] . " already exists. "; } else if($_FILES["f_name"]["type"]!= "text/xml") { echo "invalid type is tried …

Member Avatar for Daniel Claff
0
264
Member Avatar for ACRDepos

Hello, I'm trying to validate specific fields in my PHP form, such as FirstName, LastName, etc. I've tried several techniques so far from various articles to confirm these fields and nothing seems to work at the moment. Here is the code: <?php $host = "xxxxxx"; $username = "xxxxxxx"; $password = …

Member Avatar for Octet
0
268
Member Avatar for phoenix_2000

Heya all, I'm using a special cakePHP plugin for displaying a fully fledged calendar. ([CakePHP full calendar plugin](http://bakery.cakephp.org/articles/silasmontgomery/2011/03/02/cakephp_full_calendar_plugin_2)) By clicking on an appointment in the calendar, the user is redirected to an edit screen, where he or she can change the date, time and a lot of other related data. …

Member Avatar for LastMitch
0
600
Member Avatar for pomy

Hello you all, I'm new here.. Hope it will become a good place for me. People are asking questions on bbPress support forums, but bbPress support looking inactive after 2.0 announcement. That's why I moved to DaniWeb. Let's see how developer community of DaniWeb will help me :) -- If …

Member Avatar for dstzloi
0
1K
Member Avatar for aisha.edris1

hi everuone i have website but i cant connect to database for login & register how can i connect? here my code <?php $connect=mysql_connect("184.154.164.202","ahmedhay_royal","xxxxxxx") or die("couldnt connect to data base:".mysql_error()); mysql_select_db("ahmedhay_login",$connect) or die ("couldnt find data base"); ?>

Member Avatar for aisha.edris1
0
247
Member Avatar for joeyliew7

I want to display pdf file in browser. odo1.php has the file to select the date. read.php will read the date from odo1.php. i have this files 2013-03-26_SAP.pdf, 2013-03-05_SAP and more to come. the name of this file is combination of date and outlet. when i change the `readfile($filename);` to …

Member Avatar for dorco
0
2K
Member Avatar for hindu times

Hi there, I'm wanting to display Tweets as blog posts in my website. I'm currently using a Wordpress plugin called Twitter Tools ([http://wordpress.org/extend/plugins/twitter-tools/](http://wordpress.org/extend/plugins/twitter-tools/)) to do this, and it works to an extent. So far I can get it to pull my tweet into the content of a post and publish …

Member Avatar for hindu times
0
257
Member Avatar for dalilice

Hello, I'm tring to develop a mysql news scroller for my website. The problem that i'm facing is that i need to have multiple mysql querys joing together beceuase i have multple categories like: select * from news where category LIKE '$cat1' order by id desc limit 1 select * …

Member Avatar for diafol
0
320
Member Avatar for amith_ami

hi all pls help me... im trying to display categories and its sub categories... but i dont know how to display subcategory.. ijust only know to display the category.. i created two tables in the database named tbl_category and tbl_subcategory in both table the field cat_id is common.... here is …

Member Avatar for amith_ami
0
6K
Member Avatar for daniel36

i have created a contact form in which captcha is inplemented.the captcha value is stored in session.i am storing value of session in a hidden input field due to ajax.but when i reload the page the session value in hidden field comes ,old value.here is my form- <?php session_start(); ?> …

Member Avatar for Webville312
0
172
Member Avatar for abhi10kumar

What kind of security measures I have to take to develop Core PHP and MySQL projects ? I used session and encruption, which are basics, there are any security technologies for Core or advanced PHP ?

Member Avatar for broj1
0
138
Member Avatar for Venter

<html> <head> <script> function change(x) { var str=x; <?php $name=?>str; } </script> <?php echo $name; </head> <body> <form> <select name="customers" onchange=change('this.value')> <option>Varma</option> <option>Phani Varma</option> <option>Prabhas Varma</option> <option>Kishore Varma</option> </select> </form> </body> </html> so when ever user change the select,the value should be passed to php & it must be echoed …

Member Avatar for minitauros
0
250
Member Avatar for Martin C++

Hello, I made a class to connect with database but now I have run into a little problem. I need to get the id of last inserted row, but I dont know how to accomplish it. Here is my connection class: <?php class Connection{ public function __construct($config){ $this->mysqli = new …

Member Avatar for Martin C++
1
151
Member Avatar for Venter

<html> <head> <script> function change(x) { var str=x; <?php $name=?>str; } </script> <?php echo $name; </head> <body> <form> <select name="customers" onchange=change('this.value')> <option>Varma</option> <option>Phani Varma</option> <option>Prabhas Varma</option> <option>Kishore Varma</option> </select> </form> </body> </html> so when ever user change the select,the value should be passed to php & it must be echoed …

Member Avatar for radhakrishna.p
0
244
Member Avatar for tacticalweb

I just uploaded my current project on a free PHP hosting website and when i and my friend visited the website i got from PDO (MySQL) the error SQLSTATE[08004] [1040] Too many connections. I use a Singleton class to manage the PDO (so i create only 1 PDO instance to …

Member Avatar for tacticalweb
0
275
Member Avatar for deepesh01

Hi, i am making a dynmic website and form text editor i want to add hindi font to the website in some section and other section it will be in english . Please guide me how to do that

Member Avatar for chrishea
0
185
Member Avatar for davy_yg
Member Avatar for LastMitch
0
113
Member Avatar for Awah Mohamed

hi guys, how are you all? well, i am participating in the google's science fair and my question is: how can we make social networks student friendly? and my aim is to make a social network that can be student friendly and also as professional as other social networks in …

Member Avatar for LastMitch
0
113
Member Avatar for laura301019

Hi, ive a piece of code which i have to modify so that the output is modified to appear as a table. The code is to do with buying songs etc, the output is Beatles Abbey Road Come Togeher Something Revolver Taxman Yellow Submarine Eleanor Rigby Oasis Be Here Now …

Member Avatar for LastMitch
0
216
Member Avatar for jessicam93xx

I have seen this in a few posts, but i still cant seem to find the problem. Im basically trying to log in to a chat page and don't know what I'm doing wrong. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php //Start a session session_start(); //Setup and use …

Member Avatar for pritaeas
0
304
Member Avatar for Martin C++

Hello, I want to delete a user from database and destroy the session after he has been idle for some time, lets say 5 mins. How can I do that ? For starters, how to check if the user is idle? I need it mainly for when a user closes …

Member Avatar for pritaeas
0
210
Member Avatar for johndohmen1963

Hi hope someone can help me with the following I am creating a webpage in different language with ip2country. i use the following code COMMON.PHP session_start(); header('Cache-control: private'); // IE 6 FIX header('Content-Type: text/html; charset=UTF-8'); if(isSet($_GET['lang'])) { $lang = $_GET['lang']; // register the session and set the cookie $_SESSION['lang'] = …

Member Avatar for johndohmen1963
0
403
Member Avatar for bassanio

am looking for a php code that can link column of symptom checker like system n process data on that database....for example column one has symptom of a computer virus user selects, column two the choice he or she has selected then column three the possible attack or conddition...plis help …

Member Avatar for jkon
0
114

The End.