[PHP] I would like to display a list of the same products only if productPublic = staff or members.

2003-01-31 Thread Philip J. Newman
I would like to list 2 possable items in a mysql queary. SELECT * FROM products WHERE productType = '$productType AND Where productPublic = 'staff' OR productPublic = 'members' ORDER BY productId DESC LIMIT 10 I would like to display a list of the same products only if productPublic = staff or me

Re: [PHP] I would like to display a list of the same products only if productPublic = staff or members.

2003-01-31 Thread Tom Rogers
Hi, Saturday, February 1, 2003, 2:00:51 PM, you wrote: PJN> I would like to list 2 possable items in a mysql queary. PJN> SELECT * FROM products WHERE productType = '$productType AND Where PJN> productPublic = 'staff' OR productPublic = 'members' ORDER BY productId DESC PJN> LIMIT 10 PJN> I woul

[PHP] Screen Size detect??

2003-01-31 Thread Dade Register
I'm trying to detect the screen size of any client browser, or at least IE. Is there a php function that can do this? If not, does anyone have any ideas on a JS that would work too? Plz help. Thanx. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affo

[PHP] Bug?

2003-01-31 Thread Todd Barr
Hello all I am having issues passing vars in the url example here is my url http://localhost/tsatest.php?Sub_Task=2 and here is my code $link = odbc_connect( 'TSA','',''); $Query = "SELECT * from projects where sub_task='$Sub_Task'"; $Result = odbc_do($link, $Query); All this returns is a blan

Re: [PHP] Screen Size detect??

2003-01-31 Thread Maxim Maletsky
There is no way to do that with PHP. PHP/JavaScript rule #1: PHP = Client Side JS = Server Side Obviously, client's browser is Client Side and PHP, which is Server Side, cannot be used for detecting Client's properties on page request (page wasn't prepared by PHP yet to activat

Re: [PHP] Screen Size detect??

2003-01-31 Thread Maxim Maletsky
On Sat, 01 Feb 2003 18:44:19 +0100 Maxim Maletsky <[EMAIL PROTECTED]> wrote: > There is no way to do that with PHP. > > PHP/JavaScript rule #1: > > PHP = Client Side > JS = Server Side Geez I mean viceversa :) In Stalin's times I'd get killed for certain mistakes :) -- Maxi

[PHP] fputs / fwrites ?

2003-01-31 Thread Lee Herron
Okay, so I want to open a file, get a small number from it (less than 3 digits) then overwrite a new number (incremented the original by 1) and close the file. The goal is to do this in the fastest way possible .. I don't like having to open the file more than once to do this. I've tried: $cfile

Re: [PHP] fputs / fwrites ?

2003-01-31 Thread Maxim Maletsky
Please, don't hijack(*) the threads. (*) Hijack a thread - replying to an email from the usergroup modifying its subject and body making it look like a new post. Emails have also the in-reply-to headers which make the threads visualize in mail clients as the follow ups, although was intended as a

Re: [PHP] Bug?

2003-01-31 Thread Jason Sheets
Hello Todd, It sounds like register globals are not enabled and your code relies on register globals being enabled, register globals now defaults to off. If you have a recent version of PHP (>= 4.1) you should use the super globals, most likely you are looking for $_GET. You could change your co

[PHP] 4.3 Install on Solaris

2003-01-31 Thread Weston Houghton
All, I seem to be getting a silly error on Solaris when trying to do a PHP 4.3 make. I get an error that looks to me like the liner arguments are just too long. to be honest, I'm a bit stupified as to why this is happening or how to fix it. FWIW, I have compiled 4.23 just fine on that box

RE: [PHP] Bug?

2003-01-31 Thread Sean Malloy
sounds like you should turn error reporting on a blank page usually means PHP has encountered an error, but DisplayErrors is off in php.ini -Original Message- From: Todd Barr [mailto:[EMAIL PROTECTED]] Sent: Saturday, 1 February 2003 4:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Bug? Hel

RE: [PHP] Screen Size detect??

2003-01-31 Thread Sean Malloy
Create index.htm; var width = screen.width; var height = screen.height; window.location = 'index.php?width=' + width + '&height=' + height; and in index.php $width = $_GET['width']; $height = $_GET['height']; etc etc -Original Message- From: Dade Register [mailto:[EMAIL PROTECTED]]

Re: [PHP] 4.3 Install on Solaris

2003-01-31 Thread Philip Olson
On Fri, 31 Jan 2003, Weston Houghton wrote: > > All, > > I seem to be getting a silly error on Solaris when trying to do a PHP > 4.3 make. I get an error that looks to me like the liner arguments are > just too long. to be honest, I'm a bit stupified as to why this is > happening or how to

<    1   2