I need to pass a set of arrays to a program that does the work (e.g. an ODe solver). Now the way this is written is it allows a parameter array RPAR which is a 1-d double precision array
However, the parameters that must be passed are a number of multidimensional arrays, and in once case a...
I have rewritten legacy code to use allocatable arrays
I am defining these in the Subroutine that calls the ode solver
DOUBLE PRECISION, dimension(:), ALLOCATABLE :: ATOL ,RTOL
DOUBLE PRECISION, dimension(:), ALLOCATABLE :: WORK
integer, DIMENSION(:), allocatable ...
When running the zgees lapack program the actual matrix dimension N (=4)
apparently changes to 0 on a statement SDIM=0 that does not affect N
I looked for a NaN problem, but could not find something
Then I ran gdb and noticed that although the declared matrix dimension LDA=10, these arrays...
I am trying to do the following:
suppose I have a complex structure:
$products=[vegetables=>[peppers=>[green,red,orange],lettuce=>[long,curly],...]];
In the page the user must pick a single produce (e.g. red peppers) and what I want
is to tie two listboxes so that if peppers is chosen on the...
A web page has a list of choices, e.g.
....
<input type="text" name="mychoice" value="" />
....
At the end of the page there is a buton to run an sql query and return the results ON THE SAME PAGE:
...
<th>
<FORM method="post">
<input type="submit" name="runquery" value="Run Query">...
Can one use str_replace to do this:
$string=' AND VALUE=..... AND .....';
should end up removing the leading AND
In perl this would be $string=~s/^\s+AND//
or$string=~s/^AND//
(yes, it can be do in one statement) to remove a leading 'AND' and possibly any whitespaces(blancs) before it.
I'm apparently having some trouble with an odbc connection. I deliberately to debug put the connect script in the main, but still no luck. odbc sees a true $link, but thinks it's not a 'resource'.
<?php
ini_set('display_errors', true);
error_reporting(E_ALL);
if(session_id() == '')...
Just about to move from a local to a remote database. Is there anything else I should worry about except
for :
a) specifying the database e.g.
$link = new mysqli('localhost', $dbusername, $dbpasswd, $db);
changed to
$link = new mysqli('http://www.mybdsite.org/database_path/', $dbusername...
I'm looking for any tips for easy passing of values from a static page to a php page which will do queries. For example I have a static page which is basically a table with lots of different elements, text input, text from listboxes, checkboxes specifying whether one needs an exact match or not...
I get try this on a Windows 7Pro 64-bit and with 64bit office
try{ $link = new PDO("odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=c:/wamp/www/myproject/test.accdb");
with the odbc driver enabled in php.ini
and get
Not sure what "Data source name "means
I checked on the web
I'm...
I'm looking for recommendation on how to:
-install Apache on Windows
-install PHP on Windows
-connect to an Access Database
For Apache and PHP it looks like one may need a C compiler (or probably specifically MS Visual C?)
Is that correct or can one also find a binary or an installer?
Also in...
Consider a set of possible combinations with order important, e.g.
(1,7,8,-1,6,3,5)
(2,6,1,4,7,-1,5)
......
The problem is: First, create(that's not the issue here) and store such a combination in an appropriate datastructure
Second, when later on one generates a nw combination, search...
Just wondering if it is possible for pHP to call an external program. For instance perl can do system("myexecutable.e");
The idea is that the script may want to take a decisions based on more intricate
processing than what a database can do. I've never seen this though, so I'm not sure it's...
I wonder if it is possible to display baloon widgets with PHP/html?
The idea is that following a database query, a table is displayed. Table entries have further information that is too detailed to display, hence it might be a good idea to have a ballon pop up when the mouse hovers over that...
I have two tables(A,B), one of them initially empty
I want to do a select from A if B is empty or if B.field1 does not have a specific value or is NULL.
So something like
SELECT A.field1, A.field2 FROM A JOIN B ON A.field1=B.field1 WHERE [B is empty]
OR B.field2 !=A.field2
How can one do that...
Consider the following: A user selects an option, which result in a query getting run on the server database and the results displayed on the browser.
I am looking for a recommendation to
export these query results in a pdf or spreadsheet. For instance in perl I can use the...
Basically the idea is to have a table and the user selects an entry from the table and clicks on an href, where 3 parameters are passed, of 2 different kinds: A) parameters from an SQL query from the loop that generates the table(e.g. $parameter1 and 2) and B) a free text input from a textbox...
According to http://www.w3schools.com/php/php_ref_mail.asp
for php mail to work, some php.ini configuration is needed, but I mostly see Windows only options. How do I configure php.ini to work with Kmail or other linux mailers?
This is a question on passing the database link. In one form(authentication.php) I have
include ('db_connect.php');
whose code is given below
This runs fine within the form. However the form calls another php form(menu.php) which has a menu and calls a third form(queryform.php)$resultu =...
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.