39,402 Topics
![]() | |
Hi all, I have a very large amount of files I need to update, so I thought the easiest way would be to do it with php. [B]Below is the current directory structure[/B] [CODE]www.domain.com/branch_finder/country/county/town/[/CODE] I need to replace the existing index page in every "county" level directory inside the branch_finder … | |
Hi, this is my first post to the forum. I am trying to use HTML Mime Mail, a class written by Richard Heyes. I use the new class in this program: [CODE]<?php require_once("/htdocs/htmlMimeMail5/htmlMimeMail5.php"); $mail = new htmlMimemail5(); $mail->setFrom("example@yahoo.com"); $mail->setReturnPath("example@yahoo.com"); $mail->setSubject("Test HTML Mime Mail"); $mail->setText("This is the body of the test … | |
Firstly I should explain that I'm working well outside my comfort zone...:'( I'm trying to add a couple of bits of php script to my website that should generate email. One should send me an email as someone gets a quote from my website, the second should send me a … | |
Hi, I need to put a time on my website which simply shows the current GMT London time... I tried using[inlinecode]<? echo date("g:ia") ?>[/inlinecode] but for some reason it displays the time exactly one hour ahead of my time. It should be displaying Europe/London time. (I do live in the … | |
Hello, I am trying to store in an array the content of <tr> elements in a page. A sample of the page's code looks like this: [CODE]7E7"><img src="inxclus/flags/ES.gif"></td> </tr> <tr> <td height=20 bgcolor="#FFFFFF"><b>asdsdsdf</b></i></td> <td bgcolor="#FFFFFF"><a href="./asdf.php?pid=10460">asdsdsdf</a></td> <td bgcolor="#FFFFFF">asdfasdf</td> <td align="center" bgcolor="#FFFFFF"> <img src="img/note.png"></td> <td align="center" bgcolor="#FFFFFF"><img src="inxclus/flags/ES.gif"></td> </tr> <tr> <td … | |
Hi I have windows XP with service pack 3 machine. I installed Apache 2.2 and tested working fine. And then I installed php 5.3.1. When I start Apache, it doesn't start and not getting get following error. "Apache HTTP Server has encountered a problem and needs to close. We are … | |
This is my code: [CODE] <?php //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","root","PASSWORDREMOVED"); //select which database you want to edit mysql_select_db("tvguide"); //select the table $result = mysql_query("select * from epair LIMIT 20;"); //grab all the content while($r=mysql_fetch_array($result)) { //the format is $variable = … | |
hello all i am trying to write a code by which i can convert a php page generated from mysql query in to a pdf file <?php // create handle for new PDF document $pdf = pdf_new(); // open a file pdf_open_file($pdf, "philosophy.pdf"); // start a new page (A4) pdf_begin_page($pdf, … | |
Undefined Variable record: (in a path)/filename.php $sql= "select * from demo table"; $handler=mysql_query($sql); while($data=mysql_fetch_assoc($handler)){ $record[]=$data } <?php for($i=0;$i<count($record);$i++) ?> | |
Hi folks, I have been trying to figure this out for the last few days, and it's really getting me nowhere. I'm pretty new to PHP and really new to cURL. I'm trying to connect to my [URL="http://highrisehq.com/"]highrise[/URL] account via their [URL="http://developer.37signals.com/highrise/"]API[/URL] I'm trying to implement this through php. Browsing … | |
hi all, how to destroy sessions when user once closes browser without logout, i mean when i logged in and close my browser again when i open browser i keep getting as login so, i want to destroy session upon clossing browser i want this without changing my php settings … | |
I'm just curious to see what are favorite PHPers in terms of the following: 1. What is your favorite IDE (If you can tell why you love it, it will ice the cake)? 2. What is your favorite JS/PHP libraries (I would love to hear why) 3. What PHP framework … | |
I am trying to enable Gzip for CSS and JavaScript but whenever I do it the CSS fails to load (thats what firebug says) and same with some of the JavaScript (like some of it loads and other doesn't. The CSS and JavaScript are external files. I am using the … | |
Hi, I have been writing a PHP code. As I couldn't execute it locally (installation issue), I moved it to my server as a '.php' file. I haven't executed or run a php file in server before. Can anyone please say me how I can view the output of my … | |
[code=php] <?php include 'config.php'; include 'opendb.php'; $result = mysql_query("SELECT * FROM 888db ORDER BY id") or die(mysql_error()); echo "<table border='0'>"; echo "<div id='bodyframe'>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { // Print out the contents of each row … | |
![]() | |
Hi I have windows XP with service pack 3 machine. I installed Apache 2.2 and tested working fine. And then I installed php 5.3.1. When I start Apache, it doesn't start and not getting get following error. "Apache HTTP Server has encountered a problem and needs to close. We are … ![]() | |
Using following HTML Code please show me how to write PHP code to accept and delete the incoming data entered through the form below. from the following MySQL database and table. [B]Database[/B] = hrms [B]Table[/B] = Student [B]Fields[/B] = StdNo(Number), Name(String), Address(String), Contact No(String) [CODE] Student No<Input type='text' name='txtStdNo' /> … | |
hello i m a frameset in which there are three frames..!! i want that user should not see each frame indiviually by clicking on "show this frame" in Mozilla..!! can we stop that.? thanks in advance | |
i am using tiny_mce as a text editor for my CMS. buy now the problem is it add <p> tag with data so while retrieving the data for front end i get an extra space. so there is any why that i can remove <p> </p> from first paragraph. i … | |
Hi All, I am new to php. The form that i am designing has few input input fields with submit and reset button. The functionality of submit and reset are working properly till now. My form [CODE]<form name="search" id="search" action= "search.php" method = "post" onreset="formReset(this);return false;"> <table cellspacing="1" cellpadding="1" > … | |
Hi, I'm looking for a method to get some information from another website ([url]http://contests.covers.com/sportscontests/picksByDate.aspx?date=11/2/2007&ur=265839&contestID=15253&sportID=9[/url]) in an automated way. I need to get the total value of a NBA game between boston and another team (variable team) and if Boston got WIN or LOSS in its row. I've tried this but … | |
I turned on php Domxml module in php.ini and restart apache server, I can read domxml is enabled in phpinfo, however when I try to load XML file: $dom = DOMDocument::load($_FILES['file']['tmp_name']); it shows me the error message: Fatal error: Call to undefined function: load() in c:\program files\apache group\apache\htdocs\bom\tool_rev_import.php on line … ![]() | |
Hi Guys, We bought a Job Portal from Easy Job Portal and made some changes in the design and uploaded before one month but when we tried to work on the portal we found out the following bug : 1. When ever we register as a candidate and then apply … | |
hi all i am using oracle 10g with php (wamp server) but i try to connect that return this error : Call To Undefined Function oci_connect() plz help me that is so imp note : (extension=php_oci8.dll) is enable | |
Hi all kinda new with php and forms so wondering if someone could help me out. I have a form with 4 text fields which are used to add the fields with the result in the 4th field. When i submit the field result the 4th field then displays the … | |
hi, fellow programmers im currently using phpdev and windows xp as a platform. i've been developing this website and now im trying to test it in local network. i have already installed the apache and already set the index.php in the folder www. now my problem is i keep on … | |
hi friends im creating orkut type social networking site so i want to send and receive message(scraps) so please help me with source code thanks in advance | |
I am using the following code to open a pdf document. The pdf document is stored outside of the root directory: [CODE] $file = $_GET['file']; $fileDir = '../../c_direc/'; if (file_exists($fileDir . $file)) { $contents = file_get_contents($fileDir . $file); header('Content-type: application/pdf'); echo $contents; } [/CODE] This code works (the pdf file … | |
Hi, I'm new member I saw this site and it is really interesting , I have new project I worked on it with html and php it is a web site for songs I built the whole site and now start programming the database for singers and songs what I … | |
would you gys help in this i installed wamp5 in my computer and my computer is a workstation of a network so i log in as a user with a limited authority php does not work and the manager keep giving a message "none of 2 services running" i think … | |
Hi All Friends, I Have a Problem in My PHP Code that The $tree Array not Store Third Value(Parent ID). my Code is Display Below. The Below code Show Parent/Child Tree from MySQL Database.: dhtmlgoodies_tree.class.php [CODE]<?php /* This is one of the free scripts from www.dhtmlgoodies.com You are free to … | |
Well having thought I'd got over all the hurdles of this damn database with my previous post, it seems I hadn't quite suffered enough, and have been thrown another challenge. I have a piece of code which fills a form in with the current details of a car record. Form … | |
Hey all you AJAX masters, Here comes a long post but I know someone out there knows what's wrong here.... I have no idea why the following script doesn't work but I think I have isolated the problem. I have an 'order form' page (that calls this script) that generates … | |
I know how to do this to control current navigation display: [CODE]<?php $thisPage="one"; ?>[/CODE] How would I modify it if I wanted there to be two pages, that is, if $thisPage should meet two conditions - 'if this page = one or this page = two'? Something like this but … | |
i have two values in a table and instead of returning the values it returns the word "array" twice. [code] $mysql = new sqlConnection(); $query = "SELECT DISTINCT status FROM status ORDER BY status"; $result = mysql_query($query) or die('Error, query failed'); while ($row = mysql_fetch_array($result)) { echo "$row<br>"; } $mysql->close(); … | |
I'm trying to make a simple login screen with php, but every time I submit the form(with correct values) I am returned to the Login page with the error [COLOR="Red"]"Invalid login, try again"[/COLOR] shown. I can't think of any reason why this will not work, the variables are correct as … | |
Can any one give me php code that can assist to search more than one using textboxes | |
Hi all, I have a webpage in which left side of it has the naviagtion bar and on top of the page has header. Once i click the serach option in the navigation bar then displays a table with 20 columns. As the width of it is so large. The … | |
Hi, How do i prevent printing "Warning" bit of connection error? I only want see my error message on screen. Note: I deliberetly enter wrong Host IP to see the message thou. [code] Warning: mysql_connect() [function.mysql-connect]: Host '127.0.0.123123' is not allowed to connect to this MySQL server in C:\apache\login\database.php on … | |
Please fellows help me out! I have this departure date selection form and eg. today is 17 and i select 20. If i didn't fill in any required field before pressing send, the form will refer back to the form and all the other fields stays remembered but the departure … | |
ok so my development folder is in xammp htdocs (php codes) i am trying to insert an image to a table and when i display it on the php pages, it does not show why is this?? i used the absolute and relative path both. the images i need to … | |
[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form name='frm1' method="post" action="student.php"> Student No <input type="text" name='txtStdNo' /> <BR /> Name <input type="text" name='txtName' /> <BR /> Address <input type="text" name='txtAdd' /> <BR /> Contact No <input type="text" … ![]() | |
Hi guys, I'm back for some help. Spent days googling for the answer... cant do it anymore. Could somebody please tell me how to simulate Joomla readmore function. What I mean is: I have a mysql database with news articles. Each article is stored in the 'news' table in the … | |
Project : Daily emailing of 2000 customers with a personalised pdf attached - I can create pdfs with unique file name these then need to be attached to the correct email and sent out - can anybody help | |
Hi Im a high school student with a decent amount of traffic on my site. Im wondering whether I should blow literally all my money on vBulletin or stick with a phpbb forums? (As of now I havent added the forum function to my site) Is it worth it? What … | |
Hi there, I have written a page which is meant to allow a user to enter details of a new car for sale (via a form), and then the submission of this form should add the details to the database. As far as I can see all the code is … | |
Hi Dear all Its my table structure... [CODE=mysql]CREATE TABLE IF NOT EXISTS `limsrentpayment` ( `PaymentMonth` varchar(15) NOT NULL, `SiteID` varchar(15) NOT NULL, `DurationS` varchar(25) NOT NULL, `DurationE` varchar(25) NOT NULL, `Amount` varchar(15) NOT NULL, `pDate` date NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;[/CODE] and data stored in it [CODE=mysql]INSERT INTO `limsrentpayment` … | |
hi why is sometimes i get this message error during browsing my site ? but when i refresh it comes back , what causes this error ? Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. … |
The End.