39,323 Topics

Member Avatar for
Member Avatar for Angelojoseph17

I have a drop down box which has two values, when either is chose a seperate text box or another drop down box is opened. However it part works with the second option but not the first one. can someone have a look: php/html code: <tr><td> Choose Delivery Type </td> …

Member Avatar for Angelojoseph17
0
154
Member Avatar for danielsikes

Hi, I am trying to copy a directory from one spot on my server to another spot on my server. I have copied the directory successfully, but suppose I delete a file in the "parent" directory. I want the "child" directory to be exactly the same as the parent directory. …

Member Avatar for pritaeas
0
239
Member Avatar for mortyBox
Member Avatar for pritaeas
0
71
Member Avatar for ebanbury

Hi I'm having problem getting what should be a simple INSERT using a preparared statement to work? Am I missing something? Many thanks require_once ('myaccess/dbc.php'); // $stmnt1 = $dbc->stmt_init(); if ($stmnt1 = $dbc -> prepare("INSERT INTO DEV_property_trades VALUES (?,?,?,?,?) ")) { $stmnt1->bind_param("sssss",$trade_name,$trade_number,$trade_email,$trade_list,$trade_details); $stmnt1->execute(); $stmnt1->close();Code blocks are created by indenting at …

Member Avatar for ebanbury
0
115
Member Avatar for mtho

Hi guys, I know its too much to ask for but i am a beginner (self-taught) at PHP. Iam tring to build a news website and have this script that i want to implement pagination on. Any kind of pagination will do. Please help and if you can explain how …

Member Avatar for veedeoo
0
120
Member Avatar for mortyBox

Hi guys, I'm trying to take a csv from mySQL DB and have it display in an html table with line breaks instead of the csv format. In the below example, the variable "Flag" is a csv format, so it shows up in the html table like so:(company1, company2, company3). …

Member Avatar for diafol
0
96
Member Avatar for clarme

Hi All, the other day I somehow messed up my companies website and I am not quite sure what I did. all the logos at the bottom of the page used to be centered, but now I can not get them back. I am pretty sure this a footer.php file …

Member Avatar for Biiim
0
176
Member Avatar for ebolt007

Ok, so I have a few ajax pieces on my site, and I am trying to include functionality when something is clicked. Basically, lets say like on facebook, when someone makes a comment, then that new comment is created. My return is for the pieces with the ID's pulling in, …

0
80
Member Avatar for cascer1

hello, i'm currently working on a website for my team fortress 2 server, and am now getting to the premium part. i would like to make a page where people select either a subscription or a one-time payment and then pay it. when the payment is done, they would be …

Member Avatar for Biiim
0
181
Member Avatar for jacob21

I am working on a module where i have to show all the videos list on the left side of a page with thumbnail.& videos player on the center which plays video after clicking. from the list. Need suggestions for open source video player.

Member Avatar for veedeoo
0
197
Member Avatar for Jdsiteworks

example: daniweb is very useful webs(read more) or (...) at the end whole message is: daniweb is very useful website. please help thank you in advance.:)

Member Avatar for codemonkey88
0
76
Member Avatar for J.Killa

I'm doing an online store for one of my Computer Science classes and I have a little problem with the registration form. Somehow, the password field automatically fills itself with the password 'mypassword' and I don't understand why. At first I didn't know what the password was because it's obviously …

Member Avatar for codemonkey88
0
102
Member Avatar for dyingatmidnight

Hello. So I'm a junior web developer at an marketing company (and when I say junior I mean I'm not techincally entirely qualified for the position and overly a large learning exprience :P So bear with me here). Anyway, I was asked to look into a way to rewrite our …

Member Avatar for cereal
0
116
Member Avatar for baig772

i have following .htaccess RewriteEngine On DirectoryIndex index.php RewriteRule ^([a-zA-Z0-9_-]{3,20})/([^/]+)/([^/]+)?$ index\.php?page=$1&s=$2&o=$3 [L] RewriteRule ^([a-zA-Z0-9_-]{3,20})/([^/]+)?$ index\.php?page=$1&s=$2 [L] RewriteRule ^([a-zA-Z0-9_-]{3,20})/?$ index\.php?page=$1 [L] RewriteRule ^([a-zA-Z0-9_-]{3,20})?$ index\.php?page=$1 [L] ErrorDocument 404 /404 it displays mu url as localhost/mysite/home for first perimeter and its going fine but when my url is localhost/mysite/home/user, whole look of page …

Member Avatar for pritaeas
0
106
Member Avatar for arihantphp

Hey all ! I am wondering if there is any way by which we can take an input from a user using a html form and write it to a file inside a specific div tag in a specific file. for ex: I enter a Name in a form the …

Member Avatar for broj1
0
219
Member Avatar for iThaos

I've been away from web coding for some time but I feel like coding PHP again. I was phpDesigner a lot and I got use to it. Its features are great but the trial ran out. Can anyone recommend a free PHP IDE that has all or most of the …

Member Avatar for cloder
0
234
Member Avatar for nationwide13

okay, so im decently new to php, but im learning, and i've hit a small block. i'm creating a table to display points per game, but i dont have a column in my database for average points, i have points and games played, so the table is getting the value …

Member Avatar for diafol
0
62
Member Avatar for Rewired

For some reason I can ONLY upload .JPEG but not .GIF, .BMP, .PNG Can someone help fix this please? Is their something I did wrong? [CODE]<?php ini_set("memory_limit", "200000000"); ?> <?php if ((isset($_POST["submitted_form"])) && ($_POST["submitted_form"] == "image_upload_form")) { if (($_FILES["image_upload_box"]["type"] == "image/jpeg" || $_FILES["image_upload_box"]["type"] == "image/pjpeg" || $_FILES["image_upload_box"]["type"] == "image/gif" || …

Member Avatar for akira_lee
0
190
Member Avatar for UFO Disko

Hello there, I installed a php script that uses the [Uber-Uploader](http://uber-uploader.sourceforge.net/?section=flength) and everytime I try to upload an image, I get this error ERROR: Failed to find flength file I tried adding this to the .htaccess file in the /cgi-bin/ folder but it didn't work <IfModule mod_security.c> # Turn off …

Member Avatar for diafol
0
191
Member Avatar for minisrija

I want to have a calender coding in php for inserting in the date of birth field. And to make text in text box to move especially for student name field. <code> <?php $con = mysql_connect('localhost','root', ''); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("stu", $con); $result …

Member Avatar for diafol
0
133
Member Avatar for minisrija

I want to generate the deptno automatically. Im using backend as mysql which allows auto-incrementation only for an integer, not supports for varchar. So any code to do it? Thank you. Code blocks are created by indenting at least 4 spaces ... and can span multiple lines <?php $con = …

Member Avatar for diafol
0
136
Member Avatar for programmer12

Hi, I am trying to write a code in php where I retrieve the DateTime from the database and find what time is it 15 minutes before the DateTime. Such as //Receiving the Start Time from the database. $time1 = "2012-03-17 15:00:00"; //Reformating time to get the date 1hr or …

Member Avatar for programmer12
0
167
Member Avatar for theNORTH

Hi, I want to replace `$data['introhtml']` with some actual html, any ideas? I need to update a friends CMS database driven Website the content panel does not allow Div which I need to put a Calendar in so the only option is to change the PHP. The PHP code is …

Member Avatar for theNORTH
0
164
Member Avatar for klemme

I have this function, which sends an email to the user and confirms an order. I cant figure out why I cant get to display the image IN the email, at the very top. I have tried with: `"Content-Disposition: attachment; filename=\"mail-top-img.gif\""` And `"Content-Disposition: inline; filename=\"mail-top-img.gif\""` Both sends the mail as …

Member Avatar for klemme
0
192
Member Avatar for dineshswamy

Session is not working everytime,but when i restart my machine everthing works fine .Why this happens?

Member Avatar for CoursesWeb
0
99
Member Avatar for cr7489

i have a db with 3 tables review, pos and neg words for a film review im trying to detect if the word 'not' appears before a positive or negative word then add 1 to the pos count if it appears before a neg word ie this was not bad, …

Member Avatar for cr7489
0
294
Member Avatar for youvi

Hello, Am doing a web application which have multiple file uploads.My problem is,when i click upload..file is uploading successfully but,the progressbar is not moving.Here is my code.. ` $('#gallery_uploader').uploadify({ 'uploader' : '<?=base_url()?>uploadify/uploadify.swf', 'cancelImg' : '<?=base_url()?>uploadify/cancel.png', 'folder' : '<?=base_url()?>uploads', 'auto' : false, 'multi' : true, 'buttonText' : 'Browse Images', 'fileExt' : …

Member Avatar for pritaeas
0
131
Member Avatar for chieny

<?php require ("includes/DBConnection.php"); ?> <?php $id =$_REQUEST['a_id']; // sending query //mysql_query("INSERT INTO audittrail(article.a_title,article.a_author,article.a_description,article.a_date, article.dept_id) //WHERE article.a_id='$id'") mysql_query("INSERT INTO audittrail SELECT * FROM article WHERE a_id='$id'") or die(mysql_error()); mysql_query("DELETE FROM article WHERE a_id = '$id'") header("Location: articlelist-a.php"); ?> Parse error: syntax error, unexpected T_STRING in C:\wamp_chieny\www\MULTI\ADMIN_MULTI\article-del.php on line 17 i try …

Member Avatar for chieny
0
122
Member Avatar for newbie1234

I have div.js which is for popup in this i define 2 function getPageSize(); and getPageScroll(); and other file a.php and b.php in a.php as below <script language=Javascript src="/div.js"></script> <script language=Javascript> function divOn (aId_task) { var arrayPageSize = getPageSize(); var arrayPageScroll = getPageScroll(); //bgrnd4 = '<div style="position:absolute; top:0; left:0; width:100%; …

Member Avatar for newbie1234
0
12K
Member Avatar for ARKaMAN

Hi! I am just starting PHP. I am learning to sanitze my data. I found this exmaple from the web. It displays the sanitized data, but... it does not insert the sanitized data. :( What shouuld I do to make that happen? <?php $filters = array( "firstname" =>array("filter"=>FILTER_VALIDATE_INT, "flags"=>FILTER_FLAG_ARRAY|FILTER_NULL_ON_FAILURE, "options"=>array("min_range"=>0, …

Member Avatar for joshmac
0
128

The End.