39,320 Topics
| |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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'] = … | |
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 … | |
I am trying to automatically resize the iframe to fit the content. Works great in chrome, firefox and opera. Fails in Internet Explorer. Ideas? <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Leontinas</title> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> var framefenster = document.getElementsByTagName("iFrame"); var auto_resize_timer = window.setInterval("autoresize_frames()", 20); function autoresize_frames() { for … | |
The programming page to view all the headlines and made the title link when pressed refer you to the details page, but unfortunately when the conversion page details are not shown to any details on the page <a style="color: red;" href="newspage.php?id=<?php echo $rows[0]?>"><?php echo $rows[1]?></a> the details page code ..... … | |
<html> <body> <input type="text" name="cname" value="" onkeyup="shownames()"> </body> </html> Finally the thing is when ever user was input the text it should display the name from database dynamically. The user Should have capable to select the name generated from database. I'm Searching for jquery plugins if any one Knows Please … | |
| # As of 4/4/2013 # This class has now been updated and posted here: http://www.daniweb.com/web-development/php/code/451674/all-in-one-daniweb-api-class# # ORIGINAL POST # This code can be used to retrieve a forum list with various options with regard to display. This class could be extended for articles, posts, etc etc. The retrieval methods include … |
I have a piece of code: // trainer query $query = "INSERT INTO ".TBL_USERS." SET username = :username, password = :password, alliance = :alliance, avatar = :avatar, gender = :gender, usersalt = :usersalt, userid = 0, userlevel = $ulevel, email = :email, timestamp = $time, actkey = :token, ip = … | |
I have a form which is like a question paper. It has multiple text fields for entering a question and related information like marks allotted for that question, complexity level, tags in that question etc. I enter all this info into my db. **Tags are the keywords in that question**. … | |
I have the follow code. And what I like to have, is, the value from the select1 in the 2. Form, input "girl" value. But I do not know, how to do... I always have an empty value in the 2. form. <?php mysql_connect("localhost:8888", "root", "root") or die("Connection Failed"); mysql_select_db("usr_web202_9")or … | |
I'm looking for something like this [Click Here](http://screencast.com/t/gTJFzquJ) Lets say I have bucket A of items: * Name * Email * Phone * City * Country * Sex I have another bucket B in which I can put the items of my choice: * Name * Email * Sex I … | |
hello i only want to reshresh a part of a page <?php include 'index.php'; ?> is this possible ? Thank you | |
Guys can I connect my vb.net program to my php website's database even if I already uploaded it in a web server, is the database that will be use by my PHP is the database that I made in my PC? please help me because this is the first time … | |
I have PHP page and i am trying user can update phone number when click on EDIT button. For that i created 1 button and when user click on EDIT the button changed to SAVE and now user enter phone number and press save button. Now user click save button … | |
## RSS Class ## The code snippet is a PHP class for retrieving RSS feeds from the DaniWeb website. There are two exposed methods, one for retrieving the list of predefined article types, and another to get a specific RSS feed. If you pass parameters to this method, there is … | |
I have a list of columns of table that holds boolean values. consider a,b,c,d,e,f,g,h as column names with **YES** or **NO** values. I want to query and list column names whose value is YES. can some write a mysql query that can list the columns. if a column has an … | |
Hi hope someone can help me with the folowing How can i echo only the first letter of given words Example if i have: Jozef Margaretha Fransiscus i Want: J.M.F. Thanks | |
Hallo, I am trynig to built a poll system. i want to place it in a div of a php file. So i created a form that takes all the data that needs from 2 txt files (questions, options etc). When the user votes the vote.php executes. vote.php <?php $poll_file … | |
I am using codeigniter 2.1.2 and Bootstrap. I am opening a form in a modal window. The form is inside a div with id status. The form has a few input fields and an upload file field. I am trying to submit the form with ajaxForm. In my controller I … | |
Hi, I would like to know which is THE BEST platform to develop a web application which will be used by a huge amount of users. Is it PHP or ASP.NET? I am giving more importance to the application performance and security. Thanks! | |
Hello I watched lots of tutorials but i can't find what i need. I have two fields `textbox1` and `textbox2` and 1 button `button1` WHen button button1 is pressed request is send to mysite.com/user.php?user=`textbox1`&password=`textbox2` ( i have the php code) and if the response is `exist` new form to be … | |
I need in a project to be multi language.Can we show the html result or website content in other language from english with the help of google translat api.and how to use it in project. | |
Hello, I need help on how to integrate the passing of information in XML format from ASP.Net(from client) to PHP(my server). I've been searching for solution but cannot find accurate results. A sample code is very much appreciated. Thank you. | |
i wanted to do a feedback or contact us page where user can give feedback and automatically will be sent to a specific admin (example@gmail.com).. i encounter this error..i dont know what to do.. Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and … |
The End.