[PHP-DB] Upgrading from php -4.0.3

2002-02-26 Thread Marco Coletta
I have a linux RedHat 7.1 system with : php 4.0.3 apache 1.3.20 I would like to upgrade to newer version of php, ho can supply detailed instructions. Thanks. Marco Coletta -- -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Advantage Database Server

2002-02-26 Thread Stewart Gateley
Has anybody had any luck or tried connecting to ADS from PHP? What is required? Thanks, Stewart __ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com -- PHP Database Mailing List (http://www.php.ne

Re: [PHP-DB] variable interpolation in mysql queries

2002-02-26 Thread Ryan Snow
Cool, I didn't know you could embed mysql_query(...) inside mysql_fetch_row(...). That's kinda nice--I hate having a line each for 1-connecting, 2-selecting, 3-querying, and 4-resulting. I'll hafta try that. Thanks. Ryan On Tue, 26 Feb 2002, Stewart Gateley wrote: > First of all that sho

Re: [PHP-DB] variable interpolation in mysql queries

2002-02-26 Thread Stewart Gateley
First of all that should throw an error, correct syntax is mysql_result ($query, 0) meaning to grab the 0 index returned. I am not sure about performance wise, however I dislike mysql_result since if nothing is returned then you get a runtime error. Instead I like to use list($pd) = mysql_fetch_

[PHP-DB] Re: php-db Finding records with NULL values

2002-02-26 Thread Frank Flynn
Pretty easy really SELECT * FROM foo WHERE bar is NULL - DON'T use quotes "NULL" is a valid string it is not the same as NULL - Some DBMS's allow you to say bar = NULL but technically this is wrong because NULL is undefined and cannot be equal to anything not even another NULL. - Also "" is n

Re: [PHP-DB] variable interpolation in mysql queries

2002-02-26 Thread William Fong
Would it be faster if all you wanted was one variable, or your SQL statement only returned on cell? -- William Fong - [EMAIL PROTECTED] Phone: 626.968.6424 x210 | Fax: 626.968.6877 Wireless #: 805.490.7732| Wireless E-mail: [EMAIL PROTECTED] - Original Message - From: "Bogda

Re: [PHP-DB] variable interpolation in mysql queries

2002-02-26 Thread Bogdan Stancescu
PS. You should consider using mysql_fetch_row() or at least mysql_fetch_array() for perforance reasons. B Bogdan Stancescu wrote: > $query="query"; > $result=mysql_query($query); > $pd=mysql_result($result); > > Notice the zig-zag - $query is first on the left side, then on the > right side,

Re: [PHP-DB] Finding records with NULL values

2002-02-26 Thread Billy S Halsey
Hi Robin, Use a standard select like you normally would, and in your where clause, use "where [field] is null" : select field1[, field2, ...] from table1[, table2, ...] where fieldx is null [...] -bsh Robin McKenzie wrote: >I have a table of questions, and a table of responses (initiall

Re: [PHP-DB] variable interpolation in mysql queries

2002-02-26 Thread Bogdan Stancescu
$query="query"; $result=mysql_query($query); $pd=mysql_result($result); Notice the zig-zag - $query is first on the left side, then on the right side, then $result is first on the left side, then on the right side. Bogdan Ryan Snow wrote: >Hi, Im kinda new to this list. Can anyone tell me wh

[PHP-DB] variable interpolation in mysql queries

2002-02-26 Thread Ryan Snow
Hi, Im kinda new to this list. Can anyone tell me what is the proper way to interpolate my php variables into my mysql queries? I've been trying $query = "SELECT password FROM users WHERE login='$login'"; then: mysql_query($result); $pd = mysql_result($result); but I get a message that say

[PHP-DB] Finding records with NULL values

2002-02-26 Thread Robin McKenzie
I have a table of questions, and a table of responses (initially empty) which gets updated every time an answer is submitted, with the question number, member id and response. I wish to produce a SELECT query that will find the questions that haven't been answered by a particular member, i.e. a

[PHP-DB] Re: Formating field type text in HTML

2002-02-26 Thread Joe Van Meer
Hi there:) Take a look at nl2br() function ..it converts \n to tag HTH Joe :) Jairo Tcatchenco <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all! > > I have a table in postgres with a field type text, where I can > store a formated text. Whe

[PHP-DB] Formating field type text in HTML

2002-02-26 Thread Jairo Tcatchenco
Hi all! I have a table in postgres with a field type text, where I can store a formated text. When I take this field to my page, there's no one html tag inside the content displayed. Can I read the content of the field, line by line, putting a at the end? How can I do something like

RE: [PHP-DB] PHP, Oracle and iso-8859-1 characters

2002-02-26 Thread Sumesh Nair
try setting NLS_LANG="AMERICAN_AMERICA.WE8MSWIN1252 or ENGLISH.UNITED KINGDOM.WE8MSWIN1252 in php. That should work. -Original Message- From: michele campeotto [mailto:[EMAIL PROTECTED]] Sent: 26 February 2002 15:53 To: [EMAIL PROTECTED] Subject: [PHP-DB] PHP, Oracle and iso-8859-1 charac

Re: [PHP-DB] Passing contents of array on as variables...

2002-02-26 Thread jas
Would you have an example of that? Jas "Beau Lebens" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > rather than all the hidden fields and stuff you guys are trying to do - why > not just build the array variable you want, then save it into a session, on > the n

[PHP-DB] PHP, Oracle and iso-8859-1 characters

2002-02-26 Thread michele campeotto
Hello, I have a database that contains text with accented vowels (àèéìòù). They are displayed just fine when accessing the database from Java/JSP pages on the same machine and DB, but from PHP I get the vowels without the accent (à => a, è => e). The database uses UTF-8 encoding. Platform i

RE: [PHP-DB] Grouped sql output

2002-02-26 Thread Rudi Starcevic
Hi, Thanks for the input, I'll stop messing around and post some code Be warned this code is untested :-) It's kinda like thinking out loud. I think this should produce a nested list output from a query. Given this query : SELECT count(zip) AS zipcount,zip,cust_last_name FROM customers GROUP BY

[PHP-DB] Re: using sendmail w/ windows

2002-02-26 Thread Jennifer Downey
You can use PHP to send mail. If you wish to set it up: Open the php.ini and look for: [mail function] ; For Win32 only. SMTP= this will be your smtp server; for Win32 only ; For Win32 only. sendmail_from= this will be your email address; for Win32 only ; For Unix only. You may supply argument

Re: [PHP-DB] PHP problem

2002-02-26 Thread Maarten Verheijen Mysql en PHP-maillijst
Dear Bartlomiej Pawlik, Try: LONG TEXT 1 LONG TEXT 2 LONG TEXT 3 Greetings, Maarten Verheijen - Original Message - From: "Bartek Pawlik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 26, 2002 11:11 AM Subject: [PHP-DB] PHP problem Sorry to be a little bit off

RE: [PHP-DB] Grouped sql output

2002-02-26 Thread matt stewart
Not entirely sure what you're trying to do, but would it be sensible to use... $sql="SELECT * FROM Customers ORDER BY zip ASC"; . . and then when you've got the results... if ($myrow = mysql_fetch_array($result)) { $zip=0; $zipcount=0; do { if ($zip!=$myrow[

Re: [PHP-DB] Grouped sql output

2002-02-26 Thread DL Neil
Hi Rudi, > I've done this before in coldfusion. > It's the one thing I'm note sure on how to do the same(ish) > in PHP - my language of choice. > If we have the record set the CF code would look like > > > > #zip# > > > #customer# > > > > > > So I'm think also to use 2 loops for the sam

Re: [PHP-DB] PHP problem

2002-02-26 Thread George Pitcher
Bartek, This is snipped from a working form on my site: contains exact match begins with and it works. George - Original Message - From: "Bartek Pawlik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 26, 2002 10:49 AM Subject: Odp: [PHP-DB] PHP pro

Re: [PHP-DB] Grouped sql output

2002-02-26 Thread DL Neil
Hi Rudi, > I've been struggling for a while now so I thought I'd ask. > What's the easiest way to for to print group sql output. > For example I need to output customers grouped by zip. > Like: > zip > customer a > customer b > zip > customer d > customer e > zip > customer c > custoemr f > custo

[PHP-DB] Euro Dates into MySQL

2002-02-26 Thread George Pitcher
Hi all, I have a site where dates are being displayed and also entered by users. I don't want to offend them by asking them to use the -mm-dd format or to split the date into its constituent parts. I am displaying by using the MySQL Date_Format syntax and that's fine. I get dd/mm/ and I

Odp: [PHP-DB] PHP problem

2002-02-26 Thread Bartek Pawlik
Unfortunately, it doesn't work, the same situation > > Sorry to be a little bit off topic > > i have code that generates: > > LONG TEXT 1 > > use: > long text 1 > > mvgr, > Joffrey van Wageningen > > -- > .-[ Joffrey van Wageningen | WoLFjuh | [EMAIL PROTECTED] ]-- > | Networking

Re: [PHP-DB] using sendmail w/ windows

2002-02-26 Thread DL Neil
CrossWalkCentral, > any one know how to use send mail with windows instead of linux. Will > this work are their other options? Beware of crosswires! Yes one can send mail (the activity of email) from PHP running on Windows. I wouldn't bother with loading sendmail (the name of the package) onto

Re: [PHP-DB] Grouped sql output

2002-02-26 Thread Rudi Starcevic
Hi, I've done this before in coldfusion. It's the one thing I'm note sure on how to do the same(ish) in PHP - my language of choice. If we have the record set the CF code would look like #zip# #customer# So I'm think also to use 2 loops for the same purpose in PHP. Can I do this from

Re: [PHP-DB] Grouped sql output

2002-02-26 Thread Rudi Starcevic
Thanks Sven, I've already got the sql OK. I have the records set but I want to print it "report like" So It's needs some thing like a loop with an inner loop Like zip customer customer zip customer customer Hope this makes sense. I'll elaborate more if you think I should. Cheers Rudi.

[PHP-DB] Grouped sql output

2002-02-26 Thread Rudi
Hi friends, I've been struggling for a while now so I thought I'd ask. What's the easiest way to for to print group sql output. For example I need to output customers grouped by zip. Like: zip customer a customer b zip customer d customer e zip customer c custoemr f customer g Do I need to bui

Re: [PHP-DB] PHP problem

2002-02-26 Thread Joffrey van Wageningen
- Original Message - From: "Bartek Pawlik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 26, 2002 11:11 AM Subject: [PHP-DB] PHP problem > Sorry to be a little bit off topic > i have code that generates: > LONG TEXT 1 use: long text 1 mvgr, Joffrey van Wageningen

[PHP-DB] PHP problem

2002-02-26 Thread Bartek Pawlik
Sorry to be a little bit off topic i have code that generates: LONG TEXT 1 LONG TEXT 2 LONG TEXT 3 in the script I check value of $xxx and I get i.e. LONG TEXT 1 despite of 1. Do you have any idea on this. PS. Placing at the end of each line doesn't help thanks in advance Bartlomiej Pawli