Thanks for the responses.
The required file was pulling in just fine. The database abstraction was not creating a new object since the object had already been created in layout.php.
The solution was to simply create a database object unique to submit.php and it worked just fine.
As for the...
Fair enough. I have stripped non-relevant code such as validation and layout.
container.php
<?php
require("../include/intranet.inc.php");
$refer = $_REQUEST[refer];
$client = $_REQUEST[client];
$appl = $_REQUEST[appl];
?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0...
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 ->...
Vragabond,
Thanks for the response. I tried absolute positioning. The only element it made a difference on was the 'ls' div. Unfortunately, instead of appearing below the textbox the div appears to the far left of the page...basically the same upper-left position as the 'nav_sub_span' div.
- Scott
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...
OK, no need to respond to this. After much digging I found that the automatic trimming of return values was disabled in php_mssql long ago. So, unless someone is upgrading from a pre-2005 version (such as I was), this should not be an issue for anyone.
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...
Well, definitely a path issue. The function call failing was a false lead. I now get the correct error about the required file missing. I do have Errors on. Not sure why it was misleading me....
So the path points to c:\wwwroot\inetpub which is not where i put files. I seem to recall there is...
The include is not the problem, but I believe you sent me on the right track.
I expected that the script would throw an error if it could not load the required file. But, then I noticed images were not loading. If I spell out the path to the image it works though...
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...
Thanks for the responses.
I know the code is a bit sloppy...but I was testing some things out.
Thanks to Vragabond I realized that using the li tag for the class was wrong. I needed to inherit from the base class for the div (that being .menu1) and place the style in the correct hierarchy...
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...
Excellent response. While all the options seem viable, I chose to modify the abstraction layer directly. Not only does it work, but appears to run a bit faster.
Thanks!
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.