39,320 Topics

Member Avatar for
Member Avatar for johnbo100

Hi all, My head is about to explode and I was wondering if anyone has ever found a solution to my problem. Using MYSQL and PHP I need to gather those people under 5 years of age and break up the ages into 6 month periods whilst keeping a count …

Member Avatar for pritaeas
0
173
Member Avatar for newbie26

hey..how can i add a time picker in php/html??? where in i can edit or adjust the hour and minutes?? and when i already adjust the time, the succeeding text boxes will automatic increment the minutes by one. i need this urgent for my project. thanks

Member Avatar for newbie26
0
229
Member Avatar for veledrom

Hi, Based on what learned from my readings on web and forums, I'll go for DOM with DOMDocument. "SAX is better for memory efficiency but a bit complex and chalenging." "DOM is uses loads whole xml into memory but easier and widely prefered and used." The question is, based on …

Member Avatar for veledrom
0
90
Member Avatar for Djmann1013

Hi. I am having trouble with this: <?php $host="localhost"; // Host name $username="username"; // Mysql username $password="password"; // Mysql password $db_name="database"; // Database name $tbl_name="table"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); // Line with the error (Line 8) mysql_select_db("$db_name")or die("Error. MySQL …

Member Avatar for pritaeas
0
355
Member Avatar for smoothe19

I am using PHP to output an HTML table but when it does the pictures refuses to display. The php array $members['smallimg'] linkts to the .jpg file for example [url]http://www.powerme.edu/me/images/faculty/70_70/gkumar_2012.jpg[/url] // If there is at least 1 member listed as Faculty, then we are going to get the header and …

Member Avatar for blocblue
0
127
Member Avatar for waluigi

Hi, i'm working on page, where I need to add contact-form. I've used code from NiceAndSimpleForm, i mean [code=php] <?php $EmailFrom = "blablabla"; $EmailTo = "blablabla"; $Subject = "blablabla"; $Name = Trim(stripslashes($_POST['Name'])); $City = Trim(stripslashes($_POST['City'])); $Email = Trim(stripslashes($_POST['Email'])); $Message = Trim(stripslashes($_POST['Message'])); // prepare email body text $Body = ""; $Body …

Member Avatar for sayantanbagchi
0
6K
Member Avatar for dicksonkaranja

Hi, Am building a web application and i would like to integrate it with the internet payment gateways like paypal or moneybookers. Plz can anyone explain to me how i can go about it. Thanks

Member Avatar for newbie1234
0
164
Member Avatar for Djmann1013

Hi I am having trouble with this code: <? $host="mysql6.000webhost.com"; // Host name $username="removed"; // Mysql username $password="removed"; // Mysql password $db_name="removed"; // Database name $tbl_name="direct"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("Error. MySQL Not Responding."); $SQL = "SELECT * …

Member Avatar for Djmann1013
0
194
Member Avatar for divyakrishnan

Hi, I have used the following code to load data from a php page using AJAX with JQuery.The script running well in all browsers except Firefox. The script I used is as follows. test_ajax.php <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title></head> <body> <script type="text/javascript" src="jquery-1.3.1.min.js"></script> <script type="text/javascript"> function …

Member Avatar for asaretitilope
0
242
Member Avatar for Valkyrian

Hi I know that multiple checkbox values has been discussed earlier but I have't got any wiser starring at them. This is how I want the database entries to look like: id ... drillID ...kommentar ==================== 1559...1...........NULL ------------------------------- 1559...2...........NULL ------------------------------- 1559...3...........NULL With the code below I can print out both …

Member Avatar for diafol
0
370
Member Avatar for Valkyrian

Hi! I have a dynamic checkbox group to chose drills for golf players. When finished there might be 100 or so drills to select from and every player might have 20 drills selected. The code below works fine but prints a long vertical list of ckeckboxes straight down. Is it …

Member Avatar for diafol
0
608
Member Avatar for dhruv_arora

Hey I created this application, where a user needs to enter a code (which he has bought from me, offline), after filling up the form, he is redirected to a form. The form checks the mysql database where a coloumn "barcode" has been where all the codes already inserted, if …

Member Avatar for phorce
0
106
Member Avatar for newbie1234

I saw many website user page is like www.xyz.com/hhh From these complete information can be retrive of "hhh" user. I want to know that how www.xyz.com?username=hhh can be convert to www.xyz/hhh Any help

Member Avatar for IIM
0
154
Member Avatar for veledrom

Hi, Code below doesn't work for a file contains HTML content? How do we solve this issue? Result must be *<span* but it dispays blank screen. Thanks in advance **Content of index.txt** <span class="mw-headline" id="Zero"><a href="/wiki/Zero" title="Zero">Zero</a></span></h2> **PHP to read the file** <?php $handler = fopen('index.txt','r'); while ($line = fgets($handler)) …

Member Avatar for veledrom
0
203
Member Avatar for kaysarchw

Hi there, I have a form with some fields. Address is one of them. I used textarea tag for address. Now the problem is, when i search something according to one address, it only works for the one line addresses. I mean if i entered a newline (Paragraph format) in …

Member Avatar for pritaeas
0
204
Member Avatar for zeeshanmughal

Hi, FYI. I have very very little knowledge of PHP & MYSQL. i am trying to create a simple webform with insert statement what i am trying to do is that, when i enter a new data into this form this will show the message "1 record is added" and …

Member Avatar for ehpratah
0
131
Member Avatar for LastMitch

Hi, I'm trying to learn how to create an upload file form. I'm stuck on a couple of things. This is something I learn in the past but I forgot how to create one, so it's new to me now. I got the script from http://www.w3schools.com/php/php_file_upload.asp 1) I want to …

Member Avatar for LastMitch
0
444
Member Avatar for Khav

I am having kind of stupid problem:P <?php echo $url; // In my php files $url contain multiple values ?> This works fine The different values of url get displays properly For e.g http://www.google.com http://www.daniweb.com That's perfect Now when i tried to echo the variable in some html <?php $url …

Member Avatar for jasonsarino
-1
43K
Member Avatar for MarielaMontaldo

Hey, I've been trying to generate a pdf file using html2pdf library (http://html2pdf.fr/en/example). What I need to do is to print a table with PHP in that pdf file, so I stored the table in a variable called $contain with all html tags. My code goes this way: 1) It …

Member Avatar for chrishea
0
879
Member Avatar for BadManSam

Hi, I want to have my Short Register Form's content go to the main registration page. So like I type some information into a short register form like username and email but when I click the submit button I get transfered to another page which already has the information entered …

Member Avatar for Travus
0
176
Member Avatar for phaedrusGhost

Hey all, Am working with anothers script on a Wordpress plugin. There is a menu added to one page in the admin area of the plugin using this: <div class="menu-cat"> <h2>select category</h2> <div class='submenu' > <a href="<?= $curaddress ?>" >home</a> </div> <? foreach($cat as $n=>$c): echo " <h3>{$c['info']->name}</h3> "; foreach …

Member Avatar for Travus
0
146
Member Avatar for apanimesh061

if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $url, $match)) { $video_id = $match[1];.... How do I get all the youtube video links ona page as well as their IDs? Please help!

Member Avatar for diafol
0
67
Member Avatar for osamabin.idrees

hi everybody, i am 2nd year student of computer science department, and now i am thinking about choosing my main field about programming. There are two choices in my mind either to start learning php development(because it has a lot jobs) or start learning java and become a java developer. …

Member Avatar for DarkMonarch
0
128
Member Avatar for ska_defender

I am trying to use bad words filter but I want to load the bad words from a txt file on my server but some how failed to do so.here is my bad words filter code function badWordFilter(&$text, $replace) { $patterns = array( '/butt/i', '/poop/i', '/crap/i' ); $replaces = array( …

Member Avatar for diafol
0
786
Member Avatar for latooplat

I wanted to save this array: $words = array ("close","fed","house"); into : $words_assoc = array (21=>"close",13=>"fed",15=>"house");

Member Avatar for diafol
0
79
Member Avatar for presly

using few softwares we can create web site and even can create better web pages than writing programs by our own itseems. is it true? if so then can any1 suggest me a simple software? please help me in this..

Member Avatar for rotten69
0
144
Member Avatar for javacle

Hi, guyz. I'm kinda lost on how to do this. I wnat to connect from a facebook application that i have to a database in my own custom server, that i'm working on. I've connected with the right connection parameters from facebook to my server for inputing records, but it's …

Member Avatar for pritaeas
0
72
Member Avatar for da(code)da

My Table create is giving me problems. i probably missed something small but i cant find it. $dbase = $_COOKIE['ID'] . "char"; // Create table mysql_select_db($dbase, $con); $sql = "CREATE TABLE games ( gameID int NOT NULL AUTO_INCREMENT, PRIMARY KEY(gameID), gameName varchar(25), intro TEXT, bground TEXT, cast ENUM( '0', '0', …

Member Avatar for phorce
0
109
Member Avatar for magicmarkuk

Hi I am trying to add a small piece of code to a script to validate two user inputs. 1. Whether a minimum bid is less that 20 - if so show an error; and 2. Check that the maximum bid is higher than the minimum bid - if not …

Member Avatar for phorce
0
167
Member Avatar for da(code)da

Ok I have a promblem. Im getting a unidentified variable error from **$found:** Whats wrong here? while($row = mysql_fetch_array($result)) { **$found** = true; echo "Character/Alias: " . $row["CharName"] . "<br>Created: " . $row["CharBorn"] . "<br>Game: "; if ($row["CharGame"] == '0') { echo "None"; } else { echo "In-Game"; } } …

Member Avatar for da(code)da
0
120

The End.