RE: [PHP-DB] Sessions problems

2003-01-06 Thread Ford, Mike [LSS]
> -Original Message- > From: Sabina Alejandr Schneider [mailto:[EMAIL PROTECTED]] > Sent: 05 January 2003 20:17 > > Hello everybody > I was trying to use Sessions, but I had some problems. > > I have an old version of the Apache, that comes with the > Red Hat 7.2. > > when executin

RE: [PHP-DB] sorting matrix

2003-01-13 Thread Ford, Mike [LSS]
> -Original Message- > From: xxx [mailto:[EMAIL PROTECTED]] > Sent: 13 January 2003 14:25 > > Hy, > I have a matrix with strings ex. 4 cols and many rows > how could I sort the matrix after the 2nd field with > maintaining the indexes order > > Like in a table > > name surname age

RE: [PHP-DB] Concatenate two strings

2003-01-15 Thread Ford, Mike [LSS]
> -Original Message- > From: Bruno Pereira [mailto:[EMAIL PROTECTED]] > Sent: 15 January 2003 14:48 > > How can i join two strings. > My code is something like: > $valor1="bruno"; > $valor2="Pereira"; > $valor=$valor1 + " " + $valor2 > > Can someone help me. Thanks. http://www.php.net/ma

RE: [PHP-DB] getting client browser info

2003-01-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Mignon Hunter [mailto:[EMAIL PROTECTED]] > Sent: 20 January 2003 16:32 > > Question: Why is it that from an IE client I get the following: > > Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) > > Why does it say mozilla ??? The clue here is in the next wo

RE: [PHP-DB] getting client browser info

2003-01-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Mignon Hunter [mailto:[EMAIL PROTECTED]] > Sent: 20 January 2003 17:05 > > Does anyone know of script or tutorial to point me to that can obtain > client browser info, (got that part) > > but then using php, be able to use if statements to distinguish what > t

RE: [PHP-DB] getting client browser info

2003-01-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Mignon Hunter [mailto:[EMAIL PROTECTED]] > Sent: 20 January 2003 18:40 > > Ah, but I wasnt at a mozilla browser, I was accessing this > script from a > ie browser client. Let me repeat -- that was the IE browser *masquerading* as Mozilla-compatible. ALL ver

RE: [PHP-DB] Re: problems with variables

2003-02-04 Thread Ford, Mike [LSS]
> -Original Message- > From: Mark [mailto:[EMAIL PROTECTED]] > Sent: 04 February 2003 14:38 > > Just a quick correction... if the "q" part is static, I believe you > should use $(q$i) rather than ${$q . $i} Well, actually, I think you want ${'q'.$i} -- or even ${"q$i"} Cheers! Mike --

RE: [PHP-DB] More help with mysql -- solved (bizarre)

2003-02-18 Thread Ford, Mike [LSS]
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 18 February 2003 08:26 > > If I remove the '|| die' part from the mysql_query() > statement, it works > fine. This is bizarre, but there it is. > > ie, if I have: > > $result = mysql_query("SELECT * FROM S

RE: [PHP-DB] Final Date Question :-)

2003-02-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Chris Payne [mailto:[EMAIL PROTECTED]] > Sent: 20 February 2003 01:52 > > OK here is a final date question. It's complex (Atleast to > me :-( but i'm totally stumped. Here's what I need to do. > Say September is Summer and October is winter, now getting >

RE: [PHP-DB] Re: Does Php support Flash files ?

2003-03-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Matthew Moldvan [mailto:[EMAIL PROTECTED] > Sent: 19 March 2003 18:32 > > I am assuming English isn't your first language. > > Yes, fuck is definitely swearing, cursing, or whatever else > you would like > to call it. And yes, it is considered rude in our cu

RE: [PHP-DB] Re: deleting records using a checkbox

2003-03-21 Thread Ford, Mike [LSS]
> -Original Message- > From: Paul Burney [mailto:[EMAIL PROTECTED] > Sent: 20 March 2003 15:22 > > on 3/20/03 1:45 AM, olinux at [EMAIL PROTECTED] appended the > following bits to > my mbox: > > > [ and ] are illegal characters. #javascript > > I'm coming into this a bit late, so I'm no

RE: [PHP-DB] while - if - problem

2003-06-05 Thread Ford, Mike [LSS]
> -Original Message- > From: Earl [mailto:[EMAIL PROTECTED] > Sent: 04 June 2003 22:04 > To: PHP-DB > > FYI > this was beginning to bug me out... so I decided to try the > trim function > and walla... it worked. > > Thanks for ya'll assistance. I was going to say this even before yo

RE: [PHP-DB] PHP sort from .... best solution?

2003-06-06 Thread Ford, Mike [LSS]
> -Original Message- > From: A. Lyse [mailto:[EMAIL PROTECTED] > Sent: 05 June 2003 21:21 > > Thanks! But I got a problem with the code: > > The PHP file as it is with the code pasted into it will i'll > past at the end > of this post. The problem is I get the error: > > Warning: Invali

RE: [PHP-DB] PHP sort from .... best solution?

2003-06-06 Thread Ford, Mike [LSS]
> -Original Message- > From: A. Lyse [mailto:[EMAIL PROTECTED] > Sent: 06 June 2003 11:34 This was sent privately to me, but I'm redirecting the response back to the list in case it helps anyone else. > Feeling kinda stupid. hehe. sorry I didnt label the lines. Probably no more stupid t

RE: [PHP-DB] Multiple inserts revisited

2003-05-29 Thread Ford, Mike [LSS]
> -Original Message- > From: Becoming Digital [mailto:[EMAIL PROTECTED] > Sent: 28 May 2003 23:38 > > My other option, as I saw it, was to loop through the items, > appending value > data to the query text with each iteration. If that seems > cryptic, here's a > basic idea of what I mea

RE: [PHP-DB] Array Pointer

2003-06-04 Thread Ford, Mike [LSS]
> -Original Message- > From: Ian Fingold [mailto:[EMAIL PROTECTED] > Sent: 03 June 2003 16:58 > > Ok I'm trying to write this function to up date some fields > in my database > so i'm grabbing some info from a query and throwing it into > an array (with > mysql_fetch_array). > > one of

RE: [PHP-DB] PHP sort from a database variable..?

2003-06-04 Thread Ford, Mike [LSS]
> -Original Message- > From: heilo [mailto:[EMAIL PROTECTED] > Sent: 03 June 2003 23:35 > > sorry, needed some time to hack this one ::) > > as your print_r shows that you have to sort an array which > includes objects > (in this case an ingress-class - whatever this is). i tried > to s

RE: [PHP-DB] Is this query even possible?

2003-06-10 Thread Ford, Mike [LSS]
> -Original Message- > From: Susan Ator [mailto:[EMAIL PROTECTED] > Sent: 10 June 2003 16:18 > > > This is what I am trying to do: > > > > if ($FUNC==("USERPOST") || $FUNC==("MODU")) { > > $sql = "UPDATE newdacs > > SET emailfwd='$emailfwd', > >

RE: [PHP-DB] Count database-values

2003-06-10 Thread Ford, Mike [LSS]
> -Original Message- > From: Becoming Digital [mailto:[EMAIL PROTECTED] > Sent: 10 June 2003 12:15 > > I screwed up my own code. Silly me. It should read: Surely your first attempt is the right one? There's only ever going to be 1 Total, so why waste a while loop trying to read more t

RE: [PHP-DB] Is this query even possible?

2003-06-10 Thread Ford, Mike [LSS]
> -Original Message- > From: Matthew Moldvan [mailto:[EMAIL PROTECTED] > Sent: 10 June 2003 16:50 > > As for the line breaks, I've used SQL formatted that way before and it > hasn't cause me any problems. It's a matter of preference, but I prefer to keep my query strings as lean as possib

RE: [PHP-DB] Help Please!! Oracle/PHP connection

2003-06-11 Thread Ford, Mike [LSS]
> -Original Message- > From: Matthew Moldvan [mailto:[EMAIL PROTECTED] > Sent: 11 June 2003 01:03 > > Have you tried the built in Oracle functions in PHP? > > http://us3.php.net/oracle That's only for Oracle up to version 7. For Oracle 8 or 9, use the OCI extension http://www.php.net/oc

RE: [PHP-DB] setting session variables via a form

2003-06-16 Thread Ford, Mike [LSS]
> -Original Message- > From: Hutchins, Richard [mailto:[EMAIL PROTECTED] > Sent: 16 June 2003 17:08 > > session_start(); > session_register("isRegistering"); > > $_SESSION["isRegistering"] = "true"; B't! If you're using the $_SESSION array, then you MUST NOT use s

RE: [PHP-DB] moving though an array..SOLVED

2003-06-26 Thread Ford, Mike [LSS]
> -Original Message- > From: Aaron Wolski [mailto:[EMAIL PROTECTED] > Sent: 26 June 2003 16:12 > > Solved my problem! > > Here's the code in case anyone really cares :P > > $col = explode(",",$threadsColumn); > > $col_search = "("; > for ($i=0;$i

RE: [PHP-DB] error checking question

2003-06-27 Thread Ford, Mike [LSS]
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 26 June 2003 20:22 > > What I would like to do is somehow have a redundant error > check on the server > side and then display an error message above the form on the > main page should > fields be left blank

RE: [PHP-DB] latest version of php only cgi?

2003-06-27 Thread Ford, Mike [LSS]
> -Original Message- > From: Doug Finch [mailto:[EMAIL PROTECTED] > Sent: 26 June 2003 21:12 > > Is the newest version of php 4 only available as a cgi-based program? > DF No. Cheers! Mike - Mike Ford, Electronic Info

RE: [PHP-DB] problem with starting a session

2003-07-15 Thread Ford, Mike [LSS]
> -Original Message- > From: Ahmed Abdelaliem [mailto:[EMAIL PROTECTED] > Sent: 15 July 2003 08:54 > > i have a problem with starting a session in the page that > validates the user > input and sends it tothe database, > when the user clicks register he gets this error > > Warning: sess

RE: [PHP-DB] Searching a file for text surrounded by brackets

2003-07-16 Thread Ford, Mike [LSS]
> -Original Message- > From: Jamie Saunders [mailto:[EMAIL PROTECTED] > Sent: 16 July 2003 11:20 > > Hi, I need a way of searching a file for text between two > brackets, below > is an example of a couple of lines from the file I'm searching: > > {L_LOGIN} > {L_LOGOUT} > > So I'll need

RE: [PHP-DB] Maximum execution time of 30 seconds exceeded

2003-08-14 Thread Ford, Mike [LSS]
On 11 August 2003 07:02, Michael Cortes wrote: > I am using the Konqueror browser and browing to > http://localhost/my.php > > Howerver, the script I wrote, doing various queries and lookups, > inserts, etc.. takes a while to complete. That is fine with > me. I'll wait. However, the serve

RE: [PHP-DB] Populating an array from mysql db

2003-08-28 Thread Ford, Mike [LSS]
On 28 August 2003 17:25, mike karthauser wrote: > on 28/8/03 5:00 pm, CPT John W. Holmes at > [EMAIL PROTECTED] wrote: > > > > Thanks for this - I ended up rehashing my query to this: > > > > > > > > $result = mysql_query("SELECT * FROM dates WHERE bookcode = > > > '$bookcode' ORDER BY date1",$

RE: [PHP-DB] Beta 2 of plPHP released.

2003-08-29 Thread Ford, Mike [LSS]
On 29 August 2003 05:27, Joshua D. Drake wrote: > Hello, > > Beta 2 of plPHP has been released. This version contains many bug > fixes. For example, if you write bad plphp code and try to > execute it, > the code will no longer crash PostgreSQL ;). It would be nice if you told us what plPHP ac

RE: [PHP-DB] weird php error

2003-08-29 Thread Ford, Mike [LSS]
On 29 August 2003 06:39, OpenSource wrote: > Hi guys, > > This is weird to me.. > I got this script > --- > if ($_GET[login] == 'forgot') > { > echo "Sorry I forgot my password"; > } else { echo "you

RE: [PHP-DB] include_path problem

2003-09-02 Thread Ford, Mike [LSS]
On 02 September 2003 08:00, Bruce Levick wrote: > Hi guys, > I am re-developing the look and feel of a site and trying to set it up > localy. Its all setup and ready to go but I am getting a > pear.php include > failure. > > Warning: main(/PEAR.php): failed to open stream: No such file > or direc

RE: [PHP-DB] To slash or not to slash....

2003-09-02 Thread Ford, Mike [LSS]
On 02 September 2003 16:45, Craig Cameron wrote: > Ok simple problem I hope. > > > Have the following code, used to store the location and a few > details about meeting minutes. > > > $connection = mssql_connect("server","user","password"); > mssql_select_db("Docume

RE: [PHP-DB] include_path problem

2003-09-03 Thread Ford, Mike [LSS]
On 03 September 2003 01:32, Bruce Levick contributed these pearls of wisdom: > Well yes I have restarted my webserver, and the php.ini file > is under the > "windows directory" (shown in phpinfo page) and I am > definatelty editing it. > > The current value for my include_path is ".;c:\php\includ

RE: [PHP-DB] "Consider upgrading MySQL client" .... how do I do this?

2003-09-03 Thread Ford, Mike [LSS]
On 03 September 2003 10:51, Vinoaj Vijeyakumaar contributed these pearls of wisdom: > Hi, > > Just this morning I upgraded to MySQL 4.1.0 alpha and PHP > 4.3.3. I'm also > running Apache 2 on a WinXP machine. The main reason for the > upgrade was so that I could make use of 4.1.0's sub-select >

RE: [PHP-DB] include_path problem

2003-09-03 Thread Ford, Mike [LSS]
On 03 September 2003 14:10, Bruce Levick contributed these pearls of wisdom: > There is an include_path for unix and an include_path for > windows. They both > differ slightly but aren't of the same value that is being > returned in the > php info page or the error that I am receiving. > > This i

RE: [PHP-DB] Dynamic sites, to appear static...?

2003-09-04 Thread Ford, Mike [LSS]
On 04 September 2003 11:18, [EMAIL PROTECTED] wrote: > I've been building web sites that use a database backend for > some time > now. > I typically use the format. > http://www.mysite.com/index.php?page=contact > http://www.mysite.com/index.php?page=home > http://www.mysite.com/index.php?page=abo

RE: [PHP-DB] How do I get quotes around strings to display?

2003-10-22 Thread Ford, Mike [LSS]
On 22 October 2003 00:41, [EMAIL PROTECTED] wrote: > $fieldarray = array("one","Two", "three", "four"); > $line = "\"".implode("\",\"",$fieldarray) ."\""; Eck, eck, eck!! Definitely a construct crying out for single quotes rather than double: $line = '"'.implode('","',$fieldarray) .'"'; C

<    1   2