I am using PHP 5, Pervasive ODBC Client Interface 8.70.14.00 and I have a database connection set up using the code block below. I'm connecting to the Exact Max ERP to do select queries using odbc_connect().
[PHP]$link = odbc_connect("D SN", "", "") or die("Error connecting to DSN.");
if($link <= 0) {
echo "Error:";
echo odbc_errormsg() ;
exit;
...
User Profile
Collapse
-
PHP odbc error reporting
-
It seems like I've created a closure with the AJAX call being in the for loop, and that's the reason why everything is returned at once at the end of all loop cycles instead of once per. Can anyone shed some light on how to fix this? -
I was trying to set it up so that the function inside the for loop would append the information onto each address entry after the Fax line. Do I not have that set up correctly? Thank you for your reply.Leave a comment:
-
So this would effectively change the value of a to "b" globally?
Code:var a = "a"; function test() { blah = function() { a = "b"; } alert(a); }
Leave a comment:
-
Nested AJAX Calls Problem
I am trying out nested AJAX calls for the first time, but I seem to have hit a snag. The code snippet is the outer AJAX call and a function, it gathers information about a company.
As we get towards the bottom of the onComplete function, there is a call to doGetAddressCon tacts(), which accepts an address ID. This then returns a list of contacts at that address.
What I am trying to do is for each address that it retrieves and outputs,... -
Javascript Closure Question
Hello all,
I have been trying to understand how JavaScript closures work but I have been struggling. In this code snippet that I created to test things, I can't figure out how to change the value of the variable a to "b" without passing an argument into the function or returning the value. Can someone please help? Also, does anyone know of a site that explains closures in simple detail? Thanks.
Code:function
-
Hello again,
I've solved my previous problem with using GROUP BY originalid and ORDER BY originalid DESC.Leave a comment:
-
Need help with query to select the latest revisions of records
Hello all,
I have a revisions table with the fields uniqueID, originalID, revNumber, data1, data2 and so on. What I am trying to do is select only the latest revisions for every unique originalID.
For example, if I have the records of uniqueID, originalID, revNumber as follows:
1, 1, 1
2, 1, 2
3, 1, 3
4, 1, 4
5, 2, 1
6, 2, 2
7, 3, 1
8, 3, 2
I want... -
That worked great, thank you very much. Is the count attribute a custom attribute? I thought one could only set attributes that pertain to the element.
I was trying out my own fixes to this problem and I encountered something weird.
[CODE=javascript]
for(var i=1; i<=numRows; i++) {
alert(i);
tbl.rows[i].cells[1].childNodes[1].onclick = function () {
alert(i);
...Leave a comment:
-
Thanks for replying iam_clint, I tried that method and it threw me an error "missing formal parameter"...Leave a comment:
-
Dynamic Event Handler problem
Hello all,
I am working on a function that renames each table row's elements, as well as reassigning the function calls dynamically. I ran into a problem where I am trying to assign the new functions. Pardon me if this sounds confusing, here is the snippet of code.
[CODE=javascript]
var i;
for(i=1; i<=numRows; i++) {
tbl.rows[i].id = "row" + i; //Rename each row
tbl.rows[i].cells[0].firstChild.id... -
-
Question about using templates with FPDI
Hello all,
I've recently started to work with FPDF/FPDI to generate dynamic PDFs based on an existing template. The problem is I am trying to import an existing template with FPDI, and the template is in landscape. When I import it into the new document that is already landscape, the template gets inserted as portrait. The result is of course a cropped template insertion.
Does anybody know if it is possible to use a...
No activity results to display
Show More
Leave a comment: