39,326 Topics
| |
I had this working fine under php 5.2 but my hosting company upgraded to 5.3 and now its broken. I get an erro of Fatal error: Call to undefined method PDF::FPDI() in /home/freedoms/public_html/admin/phptopdf/html_table.php on line 45 Not sure why, any help is appreciated. html_table.php <?php //function hex2dec //returns an associative … | |
Soooo ... quick question :) I need to do some HTML parsing with regex :) I currently use `$output = preg_replace('/>\s+</', "> <", $output)` to strip whitespace between any two HTML tags. What can I do to strip whitespace only between paragraph tags. For example, only between `</p>` and `<p>` … | |
hi everyone.... i have a script i made that chooses a random name from a database i need to output many names on the page the code is used on, one name for each comment shown on screen.....i tried a few things but the code below is resulting 10 names … | |
Hi I would like to create a pop up screen to load from my home page to encourage subscriptions to my newsletter. I can also send email as well as save into a table..? | |
HOW TO FIND A GIVEN KEYWORD FROM A website?? Hi i ve included a search box in the header section of the website.....now how can I use the php code to search a given keyword from the whole website content?? | |
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> … | |
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. … | |
Every time I try to reply to a post, I get an error "Message Field is Required" Wazzup? | |
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 … | |
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 … | |
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). … | |
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 … | |
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, … | |
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 … | |
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. | |
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.:) | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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" || … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … | |
Session is not working everytime,but when i restart my machine everthing works fine .Why this happens? |
The End.