RE: [PHP-DB] Getting last row, moving backwards..

2001-01-19 Thread Mark Roedel
desc would likely do the trick (sorting your results by the value of the ID field, in descending order). --- Mark Roedel| "A wise man once told me that everything in Systems Programmer | life is either a lesson or a joke. Our task LeTourneau University | is to figure ou

[PHP-DB] FYI: FreeBSD + Informix

2001-03-02 Thread Mark Roedel
ocate the product in her database and process my request.) For reference, my e-mail confirmation referred to the package as "Orderable Part Number 100-15871-204057-1"...no idea whether that refers specifically to the electronic-delivery option or not, though. --- Mark Roedel|

RE: [PHP-DB] php/linux/mssql

2001-03-19 Thread Mark Roedel
eak a couple of things before I got PHP to work with a MS SQL server, and most of them came in the stages of getting FreeTDS working correctly before I even tried to build it into PHP. Is your SYBASE environment variable set correctly? Have you double-checked the sybase-related settings in your

RE: [PHP-DB] HERE doc

2001-03-29 Thread Mark Roedel
Perl-style "HERE docs". I have tried > to make this work with PHP4.04 with no success. I also haven't > found any reference to HERE docs in the PHP documentation. Is > this really supported in PHP? http://www.php.net/manual/en/language.types.string.php --- M

RE: [PHP-DB] variables gone?

2002-05-29 Thread Mark Roedel
ables.predefined.php --- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer| at himself, for he shall never cease LeTourneau University | to be entertained." Longview, Texas, USA | -- John Powell > -Original Message-

RE: [PHP-DB] array_diff usage

2001-04-02 Thread Mark Roedel
e "5". This, on the other hand, makes me suspect that the arrays themselves don't actually contain what you think they do. How are you assigning the values you described at the top of your message? --- Mark Roedel ([EMAIL PROTECTED]) || "There

RE: [PHP-DB] array_diff usage

2001-04-02 Thread Mark Roedel
> -Original Message- > From: Martin [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 02, 2001 10:48 AM > To: Mark Roedel; [EMAIL PROTECTED] > Subject: RE: [PHP-DB] array_diff usage > > > >> This, on the other hand, makes me suspect that the arrays themse

RE: [PHP-DB] Please help me with this script...

2001-04-02 Thread Mark Roedel
s there was a problem with your query. For more info, including some useable sample code that should help you troubleshoot exactly what went wrong, see http://www.php.net/FAQ.php#7.12 --- Mark Roedel ([EMAIL PROTECTED]) || "There cannot be a crisis next week. Systems Progr

RE: [PHP-DB] mysql_result()

2001-04-04 Thread Mark Roedel
address1'); > $address2 = @mysql_result($result, 0, 'address2'); > $town_city = @mysql_result($result, 0, 'town_city'); > $postcode = @mysql_result($result, 0, 'postcode'); Looks reasonable to me...what happens when you try it? --- Mark Roedel ([EMA

RE: [PHP-DB] A Real PHP problem for a change...

2001-04-10 Thread Mark Roedel
nderstanding, thats not supposed to work. Here, I think, is where we can clear things up for you a bit by explaining that the important quotes, the ones that determine which of the two behaviors you listed will apply, are the *outermost* ones. So... Get the idea? --- Mark Roedel

RE: [PHP-DB] Help Me Fix My User Defined Funtion

2001-04-19 Thread Mark Roedel
> -Original Message- > From: SOHH.com Webmaster [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 19, 2001 4:45 PM > To: Mark Roedel > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP-DB] Help Me Fix My User Defined Funtion > > > However, since posting my question

RE: [PHP-DB] How I can use multiple results in MySQL

2001-04-23 Thread Mark Roedel
king something like SELECT cia.name FROM cia, table WHERE cia.region = table.region AND table.name='Brazil' For the second, I'd do something like SELECT name FROM table ORDER BY count DESC LIMIT 1 --- Mark Ro

RE: [PHP-DB] Supplied argument is not a valid MySQL result resource...

2001-04-23 Thread Mark Roedel
this error-message, > but I cannot find a problem in the Query: > ie.: > $db_handle = mysql_connect("localhost", "mysql", "mysql"); > if($db_handle) > { > $result = mysql_db_query("mysql", "select * from user", $db_ha

RE: [PHP-DB] PHP5 is coming out!!!

2001-05-01 Thread Mark Roedel
Erm...can you give us a bit more information? Does the script bring up an error message? If so, what does it say? If not, what specifically makes you think there's something wrong with it? (What results do you get? How are they different from what you expected?) --- Mark Roedel ([

RE: [PHP-DB] php -> MSSQL

2001-05-14 Thread Mark Roedel
s.org/) on your Linux machine and then build PHP with the --with-sybase configuration parameter. This will enable the mssql_* functions. --- Mark Roedel ([EMAIL PROTECTED]) || "There cannot be a crisis next week. Systems Programmer / WebMaster || My schedule is alr

RE: [PHP-DB] Informix question

2001-06-22 Thread Mark Roedel
hat there's a setting to enable this *if* you're using Informix 11.x (we're still on 9.x here). The speaker didn't know the setting off the top of his head, but indicated it was in Informix's online documentation, searchable at http://www.informix.com/answers/

RE: [PHP-DB] Is MySQL in 4.0.6?

2001-06-26 Thread Mark Roedel
ur copy of PHP *does* include the MySQL client functionality, and (2) it isn't successfully connecting to a MySQL server. > From what i've heard, MySQL is included in PHPbut why > doesn't the connect work if it is included? Do you actually have a MySQL server running?

RE: [PHP-DB] MySQL Error???

2001-06-28 Thread Mark Roedel
tions if you could give a little more information about your database structure and the source for the part of the program that's causing problems... --- Mark Roedel ([EMAIL PROTECTED]) | "There cannot be a crisis next week. Systems Programmer / WebMaster | My schedule is alre

RE: [PHP-DB] mysql_query returns nothing?

2001-07-05 Thread Mark Roedel
or in the query or a problem with your database access or connection.) --- Mark Roedel ([EMAIL PROTECTED]) || "There cannot be a crisis next week. Systems Programmer / WebMaster || My schedule is already full." LeTourneau University ||-- Henry Kis

RE: [PHP-DB] Production: Linux/Apache/PHP <--> FreeTDS <--> W2K/MSSQL 7.0

2001-07-12 Thread Mark Roedel
ield, mssql_field_seek, mssql_result, mssql_affected_rows, mssql_min_error_severity, and mssql_min_message_severity.) --- Mark Roedel | "The most overlooked advantage to owning a Systems Programmer| computer is that if they foul up there's no LeTourneau University | la

RE: [PHP-DB] Random Password Generation/MSSQL

2001-07-12 Thread Mark Roedel
eme, but then it's hard to make much of a judgment on that without knowing more about the machine in question, what else it's being used for besides sql services, how heavily it's being utilized, etc. --- Mark Roedel | "Nothing in life is so bad that it cannot be S

RE: [PHP-DB] Re: enum !!

2001-07-16 Thread Mark Roedel
;0; But the following will also work: mysql> SELECT * FROM tbl_name WHERE set_col = 'val1,val2'; mysql> SELECT * FROM tbl_name WHERE set_col & 1; The first of these statements looks for an exact match. The second looks for values containing the first set m

RE: [PHP-DB] Re: Making a new row in HTML tables

2001-07-25 Thread Mark Roedel
h=3; break; case 8: $row_width=4; break; case 9: $row_width=3; break; default: $row_width=6; } should do the trick. --- Mark Roedel | "The most overlooked advantage to owning a Systems Programmer| computer is that if they foul up there's no LeTourneau U

RE: [PHP-DB] ms sql connect

2001-08-06 Thread Mark Roedel
which seems like sort of a futile exercise. Try changing it to the IP of the NT machine.) --- Mark Roedel | "The most overlooked advantage to owning a Systems Programmer| computer is that if they foul up there's no LeTourneau University | law against whacking them aroun

RE: [PHP-DB] MS SQL 6.5 connection

2001-08-07 Thread Mark Roedel
n, $myuser, $mypass) or die ("Unable > to connect MS SQL"); Does mssql_get_last_message() say anything interesting when this line fails? --- Mark Roedel ([EMAIL PROTECTED]) | "There cannot be a crisis next week. Systems Programmer / WebMaster | My schedule is already full."

RE: [PHP-DB] PHP vs. 2 database softwares

2001-10-01 Thread Mark Roedel
SSQL and am able to successfully use all three -- even within the same script when it's called for. What's the error message you get when you try to build with multiple DB's supported? --- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer| a

RE: [PHP-DB] MSSQL error codes :/

2001-10-01 Thread Mark Roedel
oday that the Sybase database engine likes to have a single quote escaped by another single quote, not by a slash. Perhaps this is a case where MSSQL is showing its Sybase roots...do you get the same errors if you change \' to ''? --- Mark Roedel | "Blessed is he w

RE: [PHP-DB] Bug in new PHP Version?

2001-10-04 Thread Mark Roedel
printing of those messages). I didn't see anything in either of the messages you posted that appeared to indicate a change in functionality...do you have some reason to believe that things aren't working the same behind the scenes as they did before? --- Mark Roedel |

RE: [PHP-DB] Informix + PHP any gotcha's to watch out for?

2001-10-23 Thread Mark Roedel
do the same thing as mysql_num_rows(). It counts the number of rows that you've viewed from the result set, not the total number of rows returned. If you use mysql_fetch_array(), the equivalent Informix function is ifx_fetch_row(). --- Mark Roedel | "Blessed is he who ha

RE: [PHP-DB] parse error

2001-12-13 Thread Mark Roedel
Is it possible that there's a string farther up with an unclosed single-quote? --- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer| at himself, for he shall never cease LeTourneau University | to be entertained." Longv