Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: svar
  • Content: Threads
  • Order by date
  1. svar

    weird storage behaviotr leading to segfault

    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...
  2. svar

    What can go wrong with deallocate?

    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 ...
  3. svar

    Debugging issue

    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...
  4. svar

    Tying listboxes?

    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...
  5. svar

    'passing' variables to the same page

    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">...
  6. svar

    Regular expression question

    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.
  7. svar

    odbc connect and check issue

    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() == '')...
  8. svar

    Local vs remote database

    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...
  9. svar

    passing options from a static page for a query

    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...
  10. svar

    ODBC issue with Windows[SQLSTATE[IM002] SQLConnect: 0 [Microsoft][ODBC Driver Manager] Data source.

    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...
  11. svar

    php on an access database?

    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...
  12. svar

    Looking for a convenient datastructure for checkingexistence

    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...
  13. svar

    calling a non-php program?

    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...
  14. svar

    Baloon with PHP code?

    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...
  15. svar

    Use of not exists?

    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...
  16. svar

    Looking for screen capture to pdf/excel recommendation

    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...
  17. svar

    get a freetext entry from a textbox, then pass it to a php href

    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...
  18. svar

    _SESSION variables in a loop in a form

    Consider this (after a query): while($row = mysqli_fetch_array($result,MYSQLI_NUM)): $html='<html> <body> <table width="100%" border="1"> <tr> <th>$row[1]</th> <th>$row[2]</th> <th>$row[4]</th> <th>$row[5]</th> <th>$row[6]</th> <th>HREF="dosomething.php" Do...
  19. svar

    php mail configuration

    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?
  20. svar

    Tip on passing the database connection $link around forms

    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 =...

Part and Inventory Search

Back
Top