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...
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...
....menu1 ul li a{
display: block;
background: #5b717d;
padding: 8px 10px;
border-right: 2px solid #ccd6df;
color: #db6b10;
text-decoration: none;
}
* html .menu1 ul li a{
display: inline-block;
}
.menu1 ul li a:link, .menu1 ul li a:visited{
color: white;
}
.menu1 ul li a.selected{...
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!
Thanks for responding...
However, it does not address the issue. Once I run the second query, I can only access the number of columns in the first query that I selected in the second.
Sooo...if I have 3 columns in the rs1, and 1 in the rs2, I get:
rs1[col1], rs1[col2], rs1[col3], rs2[col1]...
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...
May have spoke too soon. While the syntax for calling subs in the main routine seems to be OK, I seem to have lost the reference to my hash of hashes.
The hash is %ulFile. I declare it in the main script as 'our %ulFile;'. I explicitly pass the key for each client using a file id...
Well, was kind of excited so made the last post before testing. I see now that the main::some_sub() syntax works great.
Of course if there is something better, please let me know.
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.