[PHP-DB] Re: SQL syntax

2013-01-15 Thread Frank Flynn
> Or is there a better way to check multiple options against an enum inside > your select statement? IN for example: orderstatus IN ( 'Cancelled', 'New', 'Denied', 'Expired') However this is not exactly what you are doing. You want different orderdate > $yesterday depending on the orderstatu

[PHP-DB] Re: mysqldump

2013-01-01 Thread Frank Flynn
mands on the same line. Other than that it looks correct - what is the error? Frank > From: "Ethan Rosenberg, PhD" > Subject: mysqldump > Date: January 1, 2013 3:50:50 PM PST > To: PHP Database List > Reply-To: erosenb...@hygeiabiomedical.com > > > Dear List

[PHP-DB] Re: php-db foreign key

2011-08-09 Thread Frank Flynn
hat match that store_by? Good Luck, Frank On Aug 9, 2011, at 11:31 AM, php-db-digest-h...@lists.php.net wrote: > From: Chris Stinemetz > Subject: foreign key > Date: August 9, 2011 11:31:51 AM PDT > To: php-db@lists.php.net > > > Okay. I am pretty new to mysql so this may

Re: [PHP-DB] db privileges

2009-01-06 Thread Frank Flynn
where concat(user, '@', host) like (select CURRENT_USER())\G That worked for me, I'm sure you can go join to INFORMATION_SCHEMA and do more exotic (more precise) things too. Good Luck, Frank -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP-DB] Efficient way to access MS SQL server

2008-02-04 Thread Frank M. Kromann
platforms. - Frank > There's a limit of 30 characters for column names, but only if you > connect to your mssql server from windows (more info on > http://hu2.php.net/mssql). > > > The native SQL driver for PHP has a problem with a limit on the number > > of cha

Re: [PHP-DB] How do I use chunks for nText fields?

2007-03-22 Thread Frank M. Kromann
Keep calling odbc_resilt() untill everything is returned: $str = ""; while ($tmp = odbc_result($rs, $column)) { $str .= $tmp; } You can also use odbc_longreadlen() to set the number of bytes returned by each call to odbc_result(). - Frank > Hi, > > I've got a PHP

Re: [PHP-DB] Connecting to MS Access Database using PHP via ODBC.

2007-03-15 Thread Frank M. Kromann
Sounds like a permission problem. Make sure the IIS user (IUSR_) has access to the share. - Frank > Hello, > > Im using PHP to connect to a Microsoft Access database which is not stored > on the machine where IIS is installed. It's located on a different file > server on

Re: [PHP-DB] error creating tables

2007-02-28 Thread Frank Flynn
Luck, Frank On Feb 27, 2007, at 3:58 AM, [EMAIL PROTECTED] wrote: From: aconite <[EMAIL PROTECTED]> Date: February 27, 2007 3:58:23 AM PST To: php-db@lists.php.net Subject: error creating tables im trying to create a database in a php file.i have MySql 5.0.33 PHP 5.2.1 this is the cod

Re: [PHP-DB] Re: MSSQL Server

2007-02-21 Thread Frank M. Kromann
Or use the mssql.secure_connection = On in php.ini to allow the system to use the current user account for authentication. - Frank > Hello, >If you can change the SQL Server Authentication to the Mixed Mode > (Windows and Remote User), your problem will be fixed. If you use

Re: [PHP-DB] Problem with PHP 4.4.4 and MSSQL in Centos

2007-01-12 Thread Frank M. Kromann
so I think you will be happy about the change. - Frank > Hi Frank, > > El vie, 12-01-2007 a las 10:49 -0800, Frank M. Kromann escribió: > > > 1) Check the version of FreeTDS on both systems. > > It proved irrelevant. See above. > > > 2) Check the freetds.c

Re: [PHP-DB] Problem with PHP 4.4.4 and MSSQL in Centos

2007-01-12 Thread Frank M. Kromann
Hi Claudio, 1) Check the version of FreeTDS on both systems. 2) Check the freetds.conf file for differences (use the sam TDS version) 3) Check that php is compiled using --with-mssql on both systems (--with-sybase will give you aliases to some mssql_( functions but not all) - Frank > Hi

[PHP-DB] RE: What's the PHP equivallent of "mysql mydb < somefile.sql"

2006-11-07 Thread Frank M Flynn
erhaps there is another account the sys admin wants to use. Good luck, Frank On Oct 10, 2006, at 7:39 AM, [EMAIL PROTECTED] wrote: From: "Daevid Vincent" <[EMAIL PROTECTED]> Date: October 9, 2006 6:01:16 PM PDT To: Subject: What's the PHP equivallent of "mysql mydb

[PHP-DB] Re: php-db Digest 7 Oct 2006 03:29:53 -0000 Issue 3503

2006-10-06 Thread Frank Flynn
If you only have Wednesdays in you table - that is select the next 12 records after today it's easy: SELECT * FROM christian_discipleship WHERE created_for_date > now() ORDER BY created_for_date ASC LIMIT 12 Good luck, Frank On Oct 6, 2006, at 8:29 PM, [EMAIL PROTECTED] wrote:

Re: [PHP-DB] Php 5 and Mysql on Windows

2006-10-03 Thread Frank M. Kromann
IIRC: When you are using ISAPI you must have php,ini in the windows directory. If you are using CGI you can have it in the same directory as all other PHP files. - Frank > Hi > > Make sure that the php.ini file being used is the one you thinkit is. > > I keep mine in the php

Re: [PHP-DB] SQL Server COM question

2006-08-09 Thread Frank M. Kromann
Try the MSDN library: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdobjconnectionpme.asp - Frank > Chris wrote: > > Todd Cary wrote: > >> [Sorry - I misposted this in the General group] > >> > >> I am in the process of conver

Re: [PHP-DB] LIMIT

2006-06-29 Thread Frank M. Kromann
What about 'select count(*) from aTable' - Frank > Is there a way to get the number of rows that would have been returned had > there not been a LIMIT clause in a SELECT statement? > > For example, if > Query #1) SELECT * FROM aTable > would normally return 100 r

RE: [PHP-DB] Problem installing mssql extension

2006-01-25 Thread Frank M. Kromann
t it depends only on dblib from Microsoft. - Frank > You still need to set the PHPRC system variable to c:\php5 (on the > System Properties menu, Advanced tab, click Environment Variables). > Also, PHP4 has an "extensions" directory. PHP5 should point to > > extension

Re: [PHP-DB] RE: Problem installing mssql extension

2006-01-25 Thread Frank M. Kromann
u don't install these) and create Server aliases. - Frank > mssql has a dependency on mysql. Go figure. > > MySQL has some dependencies, also, although they are a little easier to > find info on and do not require installing other extensions. If you > have the PHPRC

RE: [PHP-DB] Re: Storing Credit Cards, Passwords, Securely, two-wayencryption

2006-01-08 Thread Frank Hamersley
rolly won't get any insurance of this risk unless you are prepared to pay a big premium - which defeats the purpose! Others no doubt will be able to add more control layers - these are just what first comes to mind in a few minutes. Bon voyage! Frank. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: retaining and displaying line returns in a text field

2006-01-06 Thread Frank Flynn
u can put on your web page) depending on how deep you want to get. Good Luck, Frank On Jan 6, 2006, at 2:45 PM, [EMAIL PROTECTED] wrote: From: "swoll2" <[EMAIL PROTECTED]> Date: January 6, 2006 3:34:52 AM PST To: php-db@lists.php.net Subject: retaining and displaying line retur

[PHP-DB] Re: SELECT

2005-12-11 Thread Frank Flynn
for what your after. Good Luck, Frank On Dec 10, 2005, at 5:02 PM, [EMAIL PROTECTED] wrote: From: "Ron Piggott (PHP)" <[EMAIL PROTECTED]> Date: December 10, 2005 5:04:28 PM PST To: PHP DB Subject: SELECT Reply-To: [EMAIL PROTECTED] I am trying to put together a SELECT syntax. I

[PHP-DB] Re: SQL Insert INTO question

2005-12-08 Thread Frank Flynn
stay unchanged but REPLACE will delete the old row so all other columns will be their default values or NULL. Feel free to write with more questions, Good Luck, Frank On Dec 7, 2005, at 9:42 PM, geekgirl1 wrote: This is the problem. I want to add the value of $_POST[review] to the reviews t

Re: [PHP-DB] Login Auth help? | Handling pages help? (2 questions)

2005-11-13 Thread Frank Flynn
nnot find the page you asked for) and have this page look at it's url, parse it and figure out which DJ's page to show. You can also handle other pages that may not be there (http:/mysql.com/ is like this - type anything after that URL and it will go to that page if it finds it or it will go to the generic search page). You've got a lot of work in front of you, Good Luck, Frank

[PHP-DB] Re: insert error for mysql

2005-09-22 Thread Frank Flynn
n the new version of mySQL 'view' will be a reserved word (and views will be supported). This is not causing your problem but you do want to choose another name for your table. Good Luck, Frank On Sep 19, 2005, at 11:25 AM, [EMAIL PROTECTED] wrote: From: Yui Hiroaki <[EMAIL PRO

[PHP-DB] Re: Highlighting data selected from one table that appear in another

2005-09-01 Thread Frank Flynn
the select that belong to the right hand table will be NULL where there is no row to join to). But if you could be more specific - send the schema and precisely what you were looking to do I could give you an example of how to make it work. Good Luck, Frank On Sep 1, 2005, at 5:00 AM, [

Re: [PHP-DB] php_mssql - 'space' instead of empty string

2005-08-25 Thread Frank M. Kromann
tension (so far only available under php5) but the problem could be fixed there. Just replace php_mssql.dll with php_dblib.dll. You can download a copy from my site (http://kromann.info/php.php). - Frank > I've found that since PHP 4.3.4 many people had problems with MSSQL > extension. >

Re: [PHP-DB] Connecting to SQL Server

2005-08-10 Thread Frank M. Kromann
Hi Todd, PHP has native support for MSSQL Server. On a *nix platform you need to install and configure FreeTDS and recompile php using --with-mssql, but then you will be able to use the mssql_* functions. - Frank > I have been asked by my client to use SQL Server for my php applicat

[PHP-DB] PHP and Sybase text datatype question

2005-07-19 Thread Frank Hamersley
sybase_query('update tbl set col = "hello world" where key = "therowkey"') Cheers, Frank. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] PHP Bug handling Messages from MSSQL ?

2005-07-12 Thread Frank M. Kromann
call. This will only be available in PHP 5 as PHP 4 is closed for new features. - Frank > Hello, > > I'm trying to build a demo of SQL Injection (SI) to discuss with my > students. The idea is to use the live demo to show and discuss how to > avoid SI using some secure code tech

Re: [PHP-DB] PHP/MySQL with Javascript

2005-06-15 Thread Frank M. Kromann
You can have PHP generate a small javascript section where you define the variables or you can use cookies. - Frank > Hi there everyone, > > > > Just a quick question, I have a login system that stores whether you are > logged in or not with a PHP Session. However, I need

RE: [PHP-DB] Re: sybase_connect(): Sybae:Unable to allocate connection record

2005-06-07 Thread Frank Hamersley
> > Philip Wasshington wrote: > > [snip] > >> After installing php-4.3.9-3.6.src.rpm on RHEL4 I modified the > >> php.spec file to > >> add --with-sybase-ct=/opt/sybase/OCS-12_5 Try adding --with-apxs as well! Cheers, Frank. -- PHP Database Mailing Li

RE: [PHP-DB] multiple queries, one transaction - REWORDED

2005-05-21 Thread Frank Flynn
then execute $myQuery as one statement. 2 - Why `DELETE FROM purchaseItems WHERE orderID = '789' ` why not: DELETE FROM purchaseItems WHERE orderID = '789' and itemIDs = Good Luck, Frank On May 20, 2005, at 5:02 PM, [EMAIL PROTECTED] wrote: From: "mayo" &l

[PHP-DB] Re: Moving data from one MySQL table to another

2005-05-20 Thread Frank Flynn
newTable (column1, column2, ...) SELECT column1, column2, ... FROM oldTable WHERE column3 < "some date" /* or whatever */ DELETE FROM oldTable WHERE column3 < "some date" /* or whatever */ Be sure the two where clauses match exactly. Good Luck, Frank On May 19, 2005, at

Re: [PHP-DB] Having a DUH Moment with mysql_fetch_array

2005-05-09 Thread Frank M. Kromann
Hi Jim, echo cannot display the content of an array or object. try print_r() or var_dump() - Frank > Ok, > > > > I'm a PHP newbie and I'm having a problem. All I want to do is parse > some information out of a database and send someone and email stating &

[PHP-DB] Re: SQL or array ?

2005-04-23 Thread Frank M Flynn
d see the files on it's machine but not on the others). Personally I'd use the DB but I know SQL pretty well and I think I would always have a DB available. Good Luck, feel free to ask more specific questions. Frank On Apr 23, 2005, at 2:07 PM, [EMAIL PROTECTED] wrote: From: Paul Reill

[PHP-DB] Re: php and tables

2005-04-18 Thread Frank M Flynn
k exactly but look at: <http://www.phpbuilder.com/manual/function.array-multisort.php> to see). I'd do it in MySQL but that's me... Good luck, Frank On Apr 17, 2005, at 2:13 PM, [EMAIL PROTECTED] wrote: From: Vikas Nanda <[EMAIL PROTECTED]> Date: April 17, 2005 7:39:57 AM PDT To:

[PHP-DB] Re: MySQL query problems...

2005-03-24 Thread Frank M Flynn
me and you can't join two strings in SQL with a '.' like you can in PHP you should use a + for the two strings. I think what you want is: AND acct_db.key1 LIKE \"%\" + AllMid_Data.CPU_Hostname Good Luck, Frank On Mar 24, 2005, at 1:33 AM, [EMAIL PROTECTED] wrote:

Re: [PHP-DB] where can i get "fixed" mssql extension??

2005-03-19 Thread Frank M. Kromann
If you are looking for precompiled win32 binaries you can find them here: http://kromann.info/php.php or included in the zip files on http://snaps.php.net - Frank > Does Anyone know where can i get the latest and already fixed mssql extensions?? > > thank you > > -- > PH

Re: [PHP-DB] Complicated Question (maybe)?

2005-01-11 Thread Frank M Flynn
and set valid to 0; then insert a new record. This may not work if you are joining off of the ID (all related records will still point to the old record). You could also remove of disable all the UPDATE code from your PHP pages, no? Good luck, Frank On Jan 11, 2005, at 9:39 AM, [EMAIL PROTECT

[PHP-DB] Re: How to build a dinamic link...

2004-12-27 Thread Frank M Flynn
ay the body of an article given it's ID. I've been kind of brief here - but if you need more details please ask. Frank On Dec 27, 2004, at 5:23 PM, [EMAIL PROTECTED] wrote: From: "Daniel A. Betancourt" <[EMAIL PROTECTED]> Date: December 27, 2004 2:25:11 AM PST To: Subject: H

Re: [PHP-DB] Dates prior to Dec 31, 1969

2004-12-15 Thread Frank Marousek
Ramil and Jochem, Having mySQL format the date is the best solution... thanks! Frank -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Dates prior to Dec 31, 1969

2004-12-14 Thread Frank Marousek
31, 1969 are displayed as 12/31/69. What am I doing wrong? Thanks, Frank -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] IIS/PHP question

2004-11-16 Thread Frank M. Kromann
Sessions work fine with IIS. Check you php.ini file for register_globase if that is off (default) you can only access your variables through $_SESSION[] - Frank > can you show some code? > > bastien > > >From: "Adil" <[EMAIL PROTECTED]> > >To: [EMAIL

Re: [PHP-DB] IIS and php sessions

2004-11-15 Thread Frank M. Kromann
Hi Adil, You need to configure session.save_path in php.ini. This setting needs to point to a directory where the IIS user can write files. If you are running the ISAPI version of php you also need to restart the web service for the changes to take place. - Frank > Hey everyone, >

[PHP-DB] Re: MySQL backup software

2004-10-27 Thread Frank Flynn
(how long) could you tolerate loosing? It's a kind of interesting discussion and the only wrong answers are not to back up and perhaps to back up to the same disk if you want to be able to recover. But if you answer these questions we'll give you some options. Frank On Oct 27, 2004, at

Re: [PHP-DB] Multi Page Form

2004-10-04 Thread Frank Flynn
users browser; you may want to display it but always look it up from your DB). -if there is an error what does the error look like? It should not reveal anything about your data, database, structure, Good Luck, Frank On Oct 4, 2004, at 7:31 PM, [EMAIL PROTECTED] wrote: From: Stuart Fel

RE: [PHP-DB] which DB to use?

2004-10-04 Thread Frank Hamersley
ways of running it on Fedora Core. I am using RH 7.3 because 7.2 was the last free distro identified and I had it handy. Zap me a mail if you need more info - news sites etc. Cheers, Frank. * 1 CPU for the dataserver - you can run it on a multi cpu system with more than 2 Gb RAM. In a dual CPU

[PHP-DB] Re: spliting keywords by GET method and SQL query

2004-09-30 Thread Frank Flynn
The method doesn't matter, use whatever you like. Did this quick just for the fun, it seems to work. Set $search to whatever you'd like to try or to your GET or POST argument. " ,,, eurpoe" won't cause a problem but " + + + europe" will generate some odd SQL (although it will work as expected -

Re: [PHP-DB] Re: Debian & mssql_init

2004-07-14 Thread Frank M. Kromann
mssql_init() is a function used to initialize stored procedures and it was introduced inphp 4.1.0 (according to the docs). The versions you are listing for both PHP and FreeTDS are very old so I would suggest updating these first. - Frank > "Damien Babilon" <[EMAIL PROTECTED]&g

Re: [PHP-DB] Multiple MSSQL Connections

2004-07-02 Thread Frank M. Kromann
That depends on the SAPI you are using. With CGI or FastCGI there is no problem but with ISAPI or Apache module you might get problems, as the DBLIB library used to build the extension is not thread safe. - Frank > I am currently writing code to write and read data to a Microsoft SQL 2

[PHP-DB] RE: [PHP-WIN] [ANNOUNCEMENT] ODBTP 1.1.1 Released

2004-06-03 Thread Frank M. Kromann
mssql_field_type() is the function for that. - Frank > Robert, > > Do you have an example of pulling the Column types from an MS Sql query? For example: select top 1 * from mytablename. > > loop thru the fields in the recordset and print out their data types? > > &g

[PHP-DB] Re: Using Cursors

2004-06-01 Thread Frank Flynn
abilities). But think of cursors just like your results set - you define them by running a SELECT statement and the results are put into this cursor and now you can run a loop of some kind on that cursor. Personally I can't remember the last time I used one, but I know I have used one - I

[PHP-DB] Re: "Where" Error

2004-05-29 Thread Frank M Flynn
y = "select * from foo where status = "i""; One last note - if you build your query in different strings be sure to leave white space between the strings: Like this: $myQuery = "select * from foo "; $myQuery = $myQuery =" where status = 'i' &qu

[PHP-DB] using php to manage multiple databases

2004-05-28 Thread frank dziuba
multaneous connections to 500 or so different MySQL servers? Any feedback would be appreciated. thanks frank dziuba

[PHP-DB] Re: Insterting date in an MySQL table

2004-05-06 Thread Frank Flynn
har, getdate(), 102) Then change the "." for - and change the getdate() for your date column. Good Luck, Frank > From: "charalambos nicolaou" <[EMAIL PROTECTED]> > Date: Thu, 06 May 2004 13:13:27 +0300 > To: [EMAIL PROTECTED] > Subject: Insterting date in an My

[PHP-DB] Re: Looking for simpler way to do this...

2004-03-22 Thread Frank Flynn
of the last post person (and if you're doing that you might as well add the time and count - now your query doesn't need a GROUP BY at all). Good Luck, Frank On 3/22/04 9:09 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > From: -{ Rene Brehmer }- <[EMAIL PROTECTED

Re: [PHP-DB] Re: SQL Server Query Failed

2004-03-18 Thread Frank M. Kromann
Hi David, You problem might be a thread safty issue. the MSSQL extension is not thread safe (caused by the Microsoft Library used to create the extension). Use CGI or FastCGI to avoid this problem. - Frank P.S. I don't have the full thread of this discussion so I might miss some impo

[PHP-DB] Re: mssql query

2004-03-16 Thread Frank M Flynn
elect convert(varchar, getdate(), 11) select convert(varchar, getdate(), 12) select convert(varchar, getdate(), 110) /* adding 100 is the same but with a 4 digit year */ Good luck, Frank -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Accessing MS SQL from Linux

2004-03-12 Thread Frank M. Kromann
You need one ofe the folowing extensions compied as a shared or static module: ODBC (UnixODBC) MSSQL (FreeTDS) ODBTP compiling as a shered module does not require recompile of PHP. You just need to load the extension with dl() or from php.ini. - Frank > > My domain is hosting through a h

Re: [PHP-DB] MS-SQL server connection

2004-03-08 Thread Frank M. Kromann
amed pipes for the connection, but if the server and the client uses different protocols you will not be able to connect without creating an alias. - Frank > I am trying to create a connection w' MS-SQL Server to use with php. I have > the server name (on our LAN) and my UID & PWD

[PHP-DB] Re: php-db Digest 8 Mar 2004 20:50:10 -0000 Issue 2294

2004-03-08 Thread Frank Flynn
w */ echo "Category = $Category "; } /* now all you need is $Model - $Description - $Price */ $Model = htmlspecialchars($SRecord["ItemModel"]); $Description = htmlspecialchars($SRecord["ItemDescription"]); $Price = htmlspecialchars($SRecord["ItemPrice"]

Re: [PHP-DB] how to do query on partial field contents ???

2004-02-24 Thread Frank Flynn
Too true - this is why a page that I promised would only take a few minutes winds up taking all week. But it makes steady employment for the QA team... Frank On 2/24/04 10:37 AM, "Andy Armstrong" <[EMAIL PROTECTED]> wrote: > Frank Flynn wrote: > >> And if you

[PHP-DB] Re: php-db Query

2004-02-24 Thread Frank Flynn
y["title"]; > $datum= date("d-m-Y", strtotime($datum)); > $datum is 20-02-2004 > ?> > I want to show here the events by month for example table with events of > 02(February) then if there are events from 03(March) another table and so > one > How can I make this work do I need to make another query > Any idea > -- Frank Flynn Poet, Artist & Mystic -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] how to do query on partial field contents ???

2004-02-24 Thread Frank Flynn
ND `model` LIKE '%".$_GET['search']."%'"; Is it will return many results if $_GET['search'] is very small like one letter. Good Luck, Frank On 2/24/04 8:20 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > From: "Nitin Meh

RE: [PHP-DB] MS SQL 'Changed database context' error

2004-02-21 Thread Frank M. Kromann
sage() function will always return the last message from the server. This function should not be used to check for errors. The function is intended to give the programmer a tool to fetch the message if an error is detected. - Frank > Hi Robert, > > I've seen your name on a few of t

[PHP-DB] Re: Stored procedure with UNION---no unique id, how to page?

2004-02-19 Thread Frank Flynn
in MS SQL getdate(). - Have your Stored Proc return only the web_user value to PHP. Now run a new query on the table where web_user = the value you just got. Your "Next 10" button only needs to store the web_user value and the number of the row you're on now. If you need some s

RE: [PHP-DB] MS SQL 'Changed database context' error

2004-02-19 Thread Frank M. Kromann
You are getting a message from the SQL Server. If you increase the values of mssql.min_error_severity and mssql.min_message_severity (default is 10) you will get more messages if you descrease the value you will get less messages. - Frank > Adam, Thanks for the suggestions. I don't

Re: [PHP-DB] sql, problem with join and presentation

2004-02-17 Thread Frank Flynn
new class, display it's info*/ echo result["classDescription"] /* don't forget to reset this */ $thisClassID = result["classID"]; } /* now display the section info... */ Good Luck, Frank On 2/17/04 9:49 AM, "[EMAIL PROT

Re: [PHP-DB] PHP and php_mssql.dll

2004-02-15 Thread Frank M. Kromann
You need to install the MSSQL Client Tools or alt least copy ntwdblib.dll from the SQL Server (this will allow connections but not configuration). - Frank > I have the php_mssql.dll in the extension directory but when I execute a > PHP page, I am told that the dll does not exist. This

[PHP-DB] Re: boooking: get available dates

2004-02-12 Thread Frank M Flynn
uot;NOT IN" and drop the group by but basically we're looking for the unit_ID's of any reservations that are live any time between your $arrivalDate and $departureDate and then looking for unit.id that match 0 of them. Good Luck, Frank On Feb 12, 2004, at 2:23 PM, [EMAIL PROTECTED] wrot

[PHP-DB] Subscribe digest

2004-02-12 Thread Frank Flynn
Subscribe digest -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] PHP Standalone? (fwd)

2004-02-05 Thread Frank M. Kromann
Take a look at http://gtk.php.net/apps. Lots of references to code that will work on both *nix and Win32 systems. - Frank > Hi there, > > Unfortunately I don't know much Perl at all ATM, and I've suddenly has this > job arise that needs me use an ACCESS Database (Yuck)

Re: [PHP-DB] PHP Standalone?

2004-02-05 Thread Frank M. Kromann
http://gtk.php.net - Frank > Hi there everyone, > > > > I need to produce a system which uses databases but NOT on a webserver, I > heard something about a PHP distro that is being developed which acts like > an executable, does anyone know anything of this? >

Re: [PHP-DB] MSSQL stability problem

2004-01-24 Thread Frank M. Kromann
I'm guessing that you are using PHP as ISAPI or Apache module and that might not always work with the MSSQL extension. The library (ntwdblib.dll from Microsoft) used for this extension is not thread safe. If you switch to CGI or FastCGI you will not have these problems. - Frank > Stua

Re: [PHP-DB] Creating temp tables in MSSQL

2003-12-19 Thread Frank M. Kromann
Hi Matt, Tables in tempdb are deleted when the connection is closed or when the user deletes them with drop table #tempname. - Frank > Hi Frank. > > When does this table get deleted? when the DB connection closes or does > one have to run a process to clear the temp tables? > &

Re: [PHP-DB] Creating temp tables in MSSQL

2003-12-19 Thread Frank M. Kromann
the database. - Frank > Thanks for your response Frank, but this is still driving me nuts and > making me look like a moron at the same time (-: > > This simplified query: > $query = "SELECT distinct convert(varchar(36),a.traineeID) INTO #tempdata1"; > $query

Re: [PHP-DB] Creating temp tables in MSSQL

2003-12-16 Thread Frank M. Kromann
Hi, Any table that starts with # is a temp table. You can use create table #mytemp (...) or you should be able to use the query you suggest. You just have to make sure you have enough space in tempdb (a system database) - Frank > Hi all, > > I've been handed a query which I'

[PHP-DB] Root-Server Firebird PHP

2003-12-11 Thread Frank Kieselbach
ke[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/php4/php-4.2.2/ext/interbase' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/php4/php-4.2.2/ext' make: *** [all-recursive] Error 1 i see an error, but i dont now what i must do. Can anybody he

Re: [PHP-DB] How To Recompile For FreeTDS + MS SQL Support?

2003-11-21 Thread Frank M. Kromann
ve to recompile any of your existing modules or apache. - Frank > I have RedHat 9 and FreeTDS. I used tsql to test FreeTDS and it works > great, connecting to my remote SQL 6.5, 7, and 2K servers, accessing > pubs.authors. > > Now I want to connect PHP to it. I seem to be doing

Re: [PHP-DB] Linux/PHP with M$/SQL Server

2003-11-20 Thread Frank M. Kromann
Hi, It is also described in the documentation at http://php.net/mssql. - Frank > Thanks Jeff, I'll look into FreeTDS. > > Matt > > [EMAIL PROTECTED] wrote: > > >you can use freetds (http://freetds.org) i think there is even an rpm... > >Then you just u

Re: [PHP-DB] SQL Server Connect Issues

2003-11-03 Thread Frank M. Kromann
simply copy ntwdblib.dll from the SQL Server tp the web server, but this will not install the tools needed to change the configuration! - Frank > First, I will admit that I am new to PHP. I'm installing PHP on our Windows > 2K / IIS server for some users who want to use it. We also host

Re: [PHP-DB] Problems with Sybase and MSSQL

2003-10-08 Thread Frank M. Kromann
mssql functions to handle stored procedures etc. If you can recompile the Sybase extension, you can disable the definition of the mssql_* function aliases and that should solve the problem too. - Frank > Well, this is the situation: > > i have a Win32 server running Apache2 and PHP4

[PHP-DB] Count down

2003-09-22 Thread Frank McIsaac
from right now). Is this possible? If so, how. Thanks for the help. Frank -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] MSSQL2000 and PHP

2003-09-04 Thread Frank M. Kromann
procedures, through mssql_init, mssql_bind and mssql_exec functions. It is required that you ink with FreeTDS though. - Frank > Yes > > You cannot read varchar(>255) data fields. > > You cannot easily read ntext and nvarchar (UNICODE) fields. > > No direct support for stored

[PHP-DB] php.ini

2003-07-05 Thread frank
i found that even i have not the php.ini in my SYSTEMROOT, php can still run ... why? For window XP, should it be placed in c:/WINDOWS? or any other ? thx for answer! -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] php_mssql.dll

2003-06-15 Thread Frank M. Kromann
need to install the tools. - Frank > I got the following error when I tried to connect to MS SQL server: > > Unknown () mssql: unable to initialize module > > Please advise > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscrib

Re: [PHP-DB] MSSQL Procedures

2003-06-14 Thread Frank M. Kromann
and retreive the return values. http://www.php.net/manual/en/function.mssql-execute.php. - Frank > Jeson Hi , this is Nabil from PHP list, i wonder if u could help with the > following: > > I have a stored procedure on a remote Microsoft (stupid) SQL server.. > and I have t

Re: [PHP-DB] Date Formatting in PHP

2003-06-10 Thread Frank Keessen
Hi David, Try this one: Regards, Frank - Original Message - From: "David Shugarts" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 10, 2003 11:23 PM Subject: [PHP-DB] Date Formatting in PHP > > > > I have a simple need to reformat

Re: [PHP-DB] MSSQL Optimize?

2003-06-04 Thread Frank M. Kromann
. No attempt is made to relocate rows to unallocated pages. target_percent is ignored when TRUNCATEONLY is used. - Frank > Please forgive me for being somewhat off topic. > This information is going towards a db class written in php. > Does MSSQL have an SQL command counterpart to mysql'

Re: [PHP-DB] strip

2003-06-04 Thread Frank M. Kromann
That depends on your backend. Some database systems uses \ to escape ' others uses '. In the last case use $value = str_replace("'", "''", $value); - Frank > Don't. addslashes() instead. > > Chris Mach wrote: > > >does an

[PHP-DB] Resize pictures and store with MySQL

2003-03-30 Thread Frank McIsaac
help. Frank -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] mssql_query & ROLLBACK

2003-03-24 Thread Frank M. Kromann
Hi, You can't split a transaction between multiple calls to mssql_query. The memory used (in the server and client) are cleared between each call. You would have to create a batch of statements and execute these with one call to mssql_query. - Frank > I have an opened connection t

Re: [PHP-DB] RE: [PHP] Random not working?

2003-03-01 Thread Frank Keessen
Thanks guys for the info; I will speak to my ISP! Have a nice weekend! Regards, Frank - Original Message - From: "Rich Gray" <[EMAIL PROTECTED]> To: "Frank Keessen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday,

[PHP-DB] Random not working?

2003-03-01 Thread Frank Keessen
and when i'm taking off the LIMIT 1 it will display all the records in ascending order so also not in random.. Regards, Frank

Re: [PHP-DB] PHP 4.3.0 + MSSQL database authenticationproblem?

2003-02-12 Thread Frank M. Kromann
ine script using the mssql_*() functions ? This should work with php 4.3.0, but I have made a few changes to the code in CVS and I can send you the latest files if you need them. This configuration is tested on sevral different Linux configurations and I use it every day so I know it works :-) - F

Re: [PHP-DB] PHP 4.3.0 + MSSQL database authenticationproblem?

2003-02-11 Thread Frank M. Kromann
ing --with-mssql=/path/to/freetds. FreeTDS needs to be compiled with --enable-msdblib, and you need to change your code (sybase_* should be mssql_*). The upside is access to all the mssql_* functions. I'm using this on a Mandrake 9.0 system and it works fine (FreeTDS 0.61) - Frank &g

Re: [PHP-DB] for xml auto from MS Sql Server

2003-02-11 Thread Frank M. Kromann
developed to access MS SQL and Sybase servers from (nix, and I have just tested 'for xml auto' from my Mandrake 9.0 box to a SQL Server 2000, and it seams to be working. - Frank > Folks, > > I'd like to use Microsoft SQL Server 2000 XML capabilities for generating > query

Re: [PHP-DB] PHP 4.3.0 + MSSQL database authenticationproblem?

2003-02-11 Thread Frank M. Kromann
Hi Alan, I'm not sure what 'Control Panel PHP script' means ? What version of FreeTDS are you using ? Do you use the sybase or the mssql extension in PHP ? - Frank > Hello, > > Because I am not sure if this is just a PHP issue or a > PHP+DB issue, I will be posting

Re: [PHP-DB] MySQL Query Question

2003-01-23 Thread Frank Peavy
Jeremy, This question probably should be posted to the MySql mailing list but here goes. Take a look at this link: http://www.mysql.com/doc/en/Where_optimisations.html Your example was not very explicit so I am not sure, but I believe you are in need of a WHERE clause. For example; Select a, b

Re: [PHP-DB] DB_FETCHMODE_ASSOC result differs forMySQL and MS-SQL

2003-01-21 Thread Frank M. Kromann
Hi Gunther, there was an error in the mssql.php file. I have just fixed that in cvs. Change line 161 from $ar = @mssql_fetch_array($result); to $ar = @mssql_fetch_array($result, MSSQL_ASSOC); And it will work on your system - Frank > I have a problem with

  1   2   >