I have three files: container.php, content.php, and action.php. All three files use a "require" statement to bring in some global data.
- container.php loads -> all good
- container.php requests data via Ajax from content.php ->all good
- container.php sends form data to action.php via Ajax ->...
First off, design is definitely not my strong point...but I need to get this working. It is an Ajax search box that drops down a suggestion list - standard stuff these days. But I just cannot get the CSS right:
Here's the html:
<body style="margin-top: 0px; padding-top: 0px;">
<div...
Using PHP 4.3.9 results from a query DID NOT include spaces at the end of a fixed length column:
select fld from tbl where id = 1
assuming fld is varchar(12)
returns '12345'
I moved my site to a new server using PHP 5.2.8. No changes at all to the database. The same exact query now returns...
As the subject says, I am converting an existing site. Specifically from 4.3.9 to 5.2.8 on Windows 2003 server using IIS6.
I seem to have two problems that, although I have read the manual and many sites, I just cannot get my brain around.
1. Scope: Something has changed here, but I do not...
CSS is NOT my strong point, but I need to get this template working. I use PHP and a database to dynamically generate a navigation menu. Although I 'know' which page the user is on, I cannot seem to make my list item display correctly.
Here is an example of the generated HTML:
<div...
I am having an issue with doing a query while looping through a result set. I do use a database abstraction layer written years ago by Frank Kromman...but not sure if that is causing the problem.
Here is an example of what is going on (I am typing this on the fly):
$sql1 = "Select name, age...
We run a site using PHP 4.3.9. It has successfully run for years using 3 database servers. All of the servers are W2K running SQL Server 2000 SP3 or SP4.
In expanding our site, we now need to connect to 3 additional database servers. All of these servers run SQL Server 2000 SP4 on Windows 2003...
I am hoping to maybe get some ideas on how to accomplish the task I have more efficiently.
I have a script that queries a DB table for new files received from clients. The script stores the info for these files in a hash of hashes, with one of the values being a unique code for that client...
I need to have a page that shows "Please Wait" and shows progress periodically while a background process runs (think Expedia or Orbitz).
I found some code on the web and tested it on my Windoze XP Pro box...worked just fine. I then placed the code on my web server (W2K server, IIS 5) in a new...
Is it possible to do nested queries with DBD::ODBC?
I have been taking the first query, throwing the results into a hash, then looping through the hash for the next query. It just seems there should be a more efficient way.
If I just nest the queries I get an error that the execute statement...
I have a script that does several functions, one of which is decrypt a file. We previously used PGPCmdLine, but need to switch to GnuPG (GPG) v1.2. We are running on W2K Server using Perl 5.8.
The specific line in question is:
$status = system($gpg, "--passphrase-fd", "0"...
I am just playing around with this, and have run into a problem I cannot fix. Here is the code:
use PDF::API2;
my @cols = @ARGV;
my $yLoc = 720;
my $pdf = PDF::API2->new(-file => "$0.pdf");
$pdf->mediabox(595,842);
my $page = $pdf->page;
my $box = $page->gfx();
$box->fillcolor( 'lightgrey'...
I need to understand all the PCL5 commands that would cause a printer to start on the next piece of paper (eject the current page). Obviously an x0C and the Esc&a#G would do this (this is for duplex printing), but what are the other codes??
I have a binary file (PCL5) where I need to insert some information at specific points. The file consists of groups of pages (from 1 to n) separated by XML comments. The largest files are only about 50MB.
This is the first binary file I have worked with, so I am having difficulty...and after...
I have a file that I need to modify, but would like to do so without creating a new file. There are 2 form feeds in the file that must be removed. The first is near the top of the file...always at the start of line 52. The last form feed is the only thing on the last line of the file.
I know I...
OK, I cannot figure this one out.
In one table, tblAPPLICATION, I need to retrieve one or more rows for a specific client. The key for each row is the application code, which is a one byte alpha character.
From another table, tblESTIMATE, I need to retrieve the SUM of all estimates for each...
I know the answer to this is not terribly difficult -- except I seem to not be able to get it.
I am querying a table that has multiple fields that refer to other tables. Two of the fields refer to the same table, but different records.
Example:
Table1, Field1 = Sales Rep ID : get name from...
First of all, this is a "lazy" post...I am so inundated with work I do not have the energy to research this so I am looking for a gimme. My apologies for being so rude.
Now, I need a quick and easy:
$var = 12345.7809-
I need to read that as a true numeric value, i.e. -12345.7809...
I have a simple script that scans FTP directories every 15 minutes for new files. When a file is found the script:
1. puts the file name in an array
2. moves/renames the file to another server
3. queries a DB to see who the file belonged to
4. sends an email listing the...
I have a script which performs some complex data manipulation on multiple files. I am looking to decrease the processing time, but have not been very successful.
THE SCRIPT
-Read 6 files directly into hashes. These files are about 14MB in size.
-Read the main file line by line using...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.