Re: [PHP] Help with logic :(

2005-10-11 Thread aaronjw
?php include (../utils.inc); $date = date(U); $dateExpire = $date + 90 * 86400; $code = jack; $query = INSERT INTO CouponTable VALUES ('','$date','0','$code','preset','$dateExpire','3.75'); $result = mysql_query($query); echo

RE: [PHP] Help with logic :(

2005-10-11 Thread Kilbride, James
Did you remember to open the database connection? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 1:34 PM To: Dan McCullough Cc: php-general@lists.php.net Subject: Re: [PHP] Help with logic :( ?php include

Re: [PHP] Help with logic :(

2005-10-11 Thread Silvio Porcellana
[EMAIL PROTECTED] wrote: ?php include (../utils.inc); $date = date(U); $dateExpire = $date + 90 * 86400; $code = jack; $query = INSERT INTO CouponTable VALUES ('','$date','0','$code','preset','$dateExpire','3.75'); $result =

RE: [PHP] Help with logic :(

2005-10-11 Thread aaronjw
Cc: php-general@lists.php.net Subject: Re: [PHP] Help with logic :( ?php include (../utils.inc); $date = date(U); $dateExpire = $date + 90 * 86400; $code = jack; $query = INSERT INTO CouponTable VALUES ('','$date','0','$code','preset','$dateExpire','3.75

Re: [PHP] Help with logic :(

2005-10-11 Thread John Nichel
[EMAIL PROTECTED] wrote: ?php include (../utils.inc); $date = date(U); $dateExpire = $date + 90 * 86400; $code = jack; $query = INSERT INTO CouponTable VALUES ('','$date','0','$code','preset','$dateExpire','3.75'); $result =

Re: [PHP] Help with logic :(

2005-10-11 Thread Dan McCullough
$result = mysql_query($query) or die(mysql_error()); On 10/11/05, Silvio Porcellana [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: ?php include (../utils.inc); $date = date(U); $dateExpire = $date + 90 * 86400; $code = jack; $query = INSERT

Re: [PHP] Help with logic :(

2005-10-10 Thread Dan McCullough
create a function to check if the rndnumber=couponcode row count = 0 if not then redo rndnumber if it does = 0 then insert rndnumber On 10/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hey guys, Having trouble coming up with a solution to this idea I am trying to implement. I have a

Re: [PHP] Help with logic :(

2005-10-10 Thread Richard Lynch
On Mon, October 10, 2005 3:24 pm, Dan McCullough wrote: create a function to check if the rndnumber=couponcode row count = 0 if not then redo rndnumber if it does = 0 then insert rndnumber N! You are creating a RACE CONDITION in which ONE user might generate a

Re: [PHP] help out a noob w/ include switch?

2005-09-21 Thread Philip Hallstrom
Hi All, My very first post to this group as I'm a freshly spanked new born php baby. Hope I have the correct stop for noob tech questions. Please re-direct me if I have it wrong. I've been doing web dev for a quite while with a variety of methods (html, xhtml/css, cfml, flash/as, on and

Re: [PHP] help out a noob w/ include switch?

2005-09-20 Thread Robert Cummings
On Tue, 2005-09-20 at 18:41, jay thompson wrote: Hi All, My very first post to this group as I'm a freshly spanked new born php baby. Hope I have the correct stop for noob tech questions. Please [-- SNP --] Try verifying your include path in php.ini for the NT version.

Re: [PHP] help out a noob w/ include switch?

2005-09-20 Thread Thorsten Suckow-Homberg
Hi All, My very first post to this group as I'm a freshly spanked new born php baby. Hope I have the correct stop for noob tech questions. Welcome :) [source] First guess: On your live server the ini-value error_reporting is switched to report anything but notices and warnings or

Re: [PHP] help out a noob w/ include switch?

2005-09-20 Thread Jasper Bryant-Greene
jay thompson wrote: index.php: ?php include 'content.php'; //sets the section title echo $title; ? ?php include 'navigate.php'; //sets appropriate navigation menu echo $navigate; ? ?php echo $content; //loads body text ? There is no need to switch

Re: [PHP] help out a noob w/ include switch?

2005-09-20 Thread Robert Cummings
On Tue, 2005-09-20 at 19:14, Thorsten Suckow-Homberg wrote: Hi All, My very first post to this group as I'm a freshly spanked new born php baby. Hope I have the correct stop for noob tech questions. Welcome :) [source] First guess: On your live server the ini-value

Re: [PHP] help out a noob w/ include switch?

2005-09-20 Thread jt
Thanks Thorsten and Rob, Sry my bogus code was error filled. This is not the case with the actual code. I was a little quick in removing the large amounts of text that are actually contained in the cases and case 1,2,3: is just to say there are many more cases. Could this be a problem

Re: [PHP] help out a noob w/ include switch?

2005-09-20 Thread Robert Cummings
On Tue, 2005-09-20 at 19:41, jt wrote: Thanks Thorsten and Rob, Sry my bogus code was error filled. This is not the case with the actual code. I was a little quick in removing the large amounts of text that are actually contained in the cases and case 1,2,3: is just to say there are

Re: [PHP] help out a noob w/ include switch?

2005-09-20 Thread Thorsten Suckow-Homberg
[...] Try the following: 1) include() will only trigger a warning if the requested file is not within the include path. Thus, to make sure the file is found, you should use require() which triggers a fatal error and prevends the script from being executed if the given filename as the

Re: [PHP] help me to draw a listview in my website

2005-09-12 Thread Burhan Khalid
Nahalingam N. Kanakavel wrote: hi all, If any scripts available to draw a list view. Plz help me, by giving some links or scripts avilable with you. What is a list view? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help me to draw a listview in my website

2005-09-12 Thread Gustav Wiberg
Hi there! What do you mean with listview? Of what? /G http://www.varupiraten.se/ - Original Message - From: Nahalingam N. Kanakavel [EMAIL PROTECTED] To: PHP php-general@lists.php.net Sent: Monday, September 12, 2005 11:05 AM Subject: [PHP] help me to draw a listview in my website

Re: [PHP] help me to draw a listview in my website

2005-09-12 Thread Nahalingam N. Kanakavel
hi, I want to display several fields of values as a row, with header such as -- | Name age mail-id | Header part, by clicking over this I want to sort the --- | rows

Re: [PHP] help me to draw a listview in my website

2005-09-12 Thread Jesper Gran
Maybe this could be something? I haven't tried it though. http://www.activewidgets.com/grid/ /Jesper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with Class

2005-09-09 Thread Ryan Creaser
Ian Barnes wrote: Hi Ryan, I am including a different class.inc.php file each time the foreach loops. Each one sits in a different dir. Yes, I do get that error. My understanding of OOP is that I could null the $sdk variable and re-init it when the loop starts again.. You'd be right if

RE: [PHP] Help with Class

2005-09-08 Thread Ian Barnes
Hi Thomas, Thanks for the help. That didn't work though ... Its now set to be $SDK = new sdk; Nothing :( -Original Message- From: Thomas [mailto:[EMAIL PROTECTED] Sent: 08 September 2005 09:08 AM To: 'Ian Barnes' Subject: RE: [PHP] Help with Class Sorry for not explaining ... [code

Re: [PHP] Help with Class

2005-09-08 Thread Ryan Creaser
Ian Barnes wrote: require_once ( $fetchd['path'].'sdk/ipbsdk_class.inc.php' ); What is the above line doing? It looks like you are trying to redeclare the ipbsdk class each time around the loop which is illegal in php. You can't do : class ipbsdk {

RE: [PHP] Help with Class

2005-09-08 Thread Ian Barnes
: Ryan Creaser [mailto:[EMAIL PROTECTED] Sent: 09 September 2005 12:34 AM To: Ian Barnes Cc: PHP General Subject: Re: [PHP] Help with Class Ian Barnes wrote: require_once ( $fetchd['path'].'sdk/ipbsdk_class.inc.php' ); What is the above line doing? It looks

Re: [PHP] Help with Class

2005-09-07 Thread Jason Davidson
I would have guessed unset($sqk); to work, but also try $sdk = null; Jason On 9/7/05, Ian Barnes [EMAIL PROTECTED] wrote: Hi, I am writing a site where I need to access multiple classes of the same name located under certain directories. The reason for each directory is because

RE: [PHP] Help with Class

2005-09-07 Thread Ian Barnes
Hi, Thanks for the help, but none of those worked. Anyone else got any suggestions? Or possibly another way of achieving this ? Cheers Ian _ From: Jason Davidson [mailto:[EMAIL PROTECTED] Sent: 07 September 2005 05:47 PM To: Ian Barnes Cc: PHP General Subject: Re: [PHP

RE: [PHP] Help with Class

2005-09-07 Thread Ian Barnes
Hi, Thanks for the help, but none of those worked. Anyone else got any suggestions? Or possibly another way of achieving this ? Cheers Ian _ From: Jason Davidson [mailto:[EMAIL PROTECTED] Sent: 07 September 2005 05:47 PM To: Ian Barnes Cc: PHP General Subject: Re: [PHP

Re: [PHP] Help: Get the value of pi up to 200+ digits?

2005-09-01 Thread Torgny Bjers
Wong HoWang wrote: Dear all, I'm trying to do like this but failed: ?php ini_set('precision',16); echo pi(); ? How can I get more digits after . ? I am fairly sure that you have to use BCMath for this: http://www.php.net/manual/en/ref.bc.php Give it a go and see what happens! :)

Re: [PHP] Help: Get the value of pi up to 200+ digits?

2005-09-01 Thread Wong HoWang
but my server configure don't have bcmath enabled, is there any other way to do so? Torgny Bjers [EMAIL PROTECTED] wrote:[EMAIL PROTECTED] Wong HoWang wrote: Dear all, I'm trying to do like this but failed: ?php ini_set('precision',16); echo pi(); ? How can I get more digits after . ?

Re: [PHP] Help: Get the value of pi up to 200+ digits?

2005-09-01 Thread Oliver Grätz
Wong HoWang schrieb: but my server configure don't have bcmath enabled, is there any other way to do so? Since the internal routines of PHP have limited precision, you these options: - Find a way to activate bcmath (not likely to happen on a shared hosting account) - Find an external program

Re: [PHP] Help: Get the value of pi up to 200+ digits?

2005-09-01 Thread Jordan Miller
http://us3.php.net/manual/en/ini.core.php#ini.precision precision sets the number of significant digits, *NOT* the number of digits displayed after the decimal point. If you want to get pi out to 16 decimal places you need a precision of *17* because the beginning 3 is a significant digit.

Re: [PHP] Help: Get the value of pi up to 200+ digits?

2005-09-01 Thread Wong HoWang
Dear Jordan, I know what you mean. But you may try this one and you will know: ?php ini_set('precision',200); echo pi(); ? the result is the same as 16!!! So that's why I ask this question! I am not stupid like that! Please help, thx! Jordan Miller [EMAIL PROTECTED] wrote:[EMAIL PROTECTED]

Re: [PHP] Help: Get the value of pi up to 200+ digits?

2005-09-01 Thread Steve Edberg
Hi - The 'precision' ini value refers, I believe, only to float numbers, not BC_math numbers (which are stored as strings). I believe the bcmath.scale parameter is the one you need. It can be set via ini_set or bcscale() - http://php.he.net/manual/en/function.bcscale.php Perhaps you

Re: [PHP] Help: Get the value of pi up to 200+ digits? -- oops

2005-09-01 Thread Steve Edberg
Oops...I didn't see the earlier message that BC functions were not enabled on your server. So, I'd have to concur with Oliver Grätz's suggestions, and add some of my own: - can you change hosts? - are you allowed to install software in your own directory? You may be able to

Re: [PHP] Help Needed

2005-08-26 Thread Raz
David but it does not seem to be working. Might be helpful for folks if you describe the nature of the fault i.e. what you get back when you run this - at this stage there are a multitude of possibilities... raz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Help Needed

2005-08-26 Thread David Skyers
Hi Raz Good Point. It displays 'No data found' when it should display 'Data found' Thanks David -Original Message- From: Raz [mailto:[EMAIL PROTECTED] Sent: 26 August 2005 12:06 To: David Skyers Cc: php-general@lists.php.net Subject: Re: [PHP] Help Needed David but it does not seem

Re: [PHP] Help Needed

2005-08-26 Thread Raz
Leading back in the code, that would suggest that $nrows is not greater than zero - could be a problem with $nrows then, and anything associated with that, i.e. $stmt, whether there is content in the db where REC_VALUE = 'uczmdsk1' etc. etc. Work back down the chain and see if you can find

Re: [PHP] Help Needed

2005-08-26 Thread Angelo Zanetti
does the actual SQL statement bring back any info if you do it through the oracle interface, perhaps the problem isnt php but the SQL statement. HTH Angelo Raz wrote: Leading back in the code, that would suggest that $nrows is not greater than zero - could be a problem with $nrows then, and

RE: [PHP] Help Needed

2005-08-26 Thread David Skyers
] Sent: 26 August 2005 13:14 To: Raz Cc: David Skyers; php-general@lists.php.net Subject: Re: [PHP] Help Needed does the actual SQL statement bring back any info if you do it through the oracle interface, perhaps the problem isnt php but the SQL statement. HTH Angelo Raz wrote: Leading back

Re: [PHP] Help Needed

2005-08-26 Thread Raz
David, If I change the code to ($nrows = 1) then it displays 'Data found', however if I have a REC_VALUE = 'does not exist' it still displays 'Data found' That would suggest that something is being returned - do you have command line access or some other way to look at what is being

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Joe Wollard
I would first start out by dumping the values of $_POST['gmev'] by using print_r($_POST['gmev']); Sounds to me like you're not getting the data that your expecting from the form for some reason. Maybe $_POST['gmev'] is an array of null values? -Good Luck On Aug 17, 2005, at 12:15 PM,

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread zedleon
thanks for the reply... after using the print_r($_POST['gmev']); and selecting all the checkboxes to send to the form the return is Array ( [0] = on [1] = on [2] = on [3] = on ). So the values are missing. don't really know how to proceed at this point. any help is appreciated. Joe Wollard

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Jordan Miller
wherever you think you are adding data to the gmev array, you are merely adding the on string. I would search your script for the string on and you will find the problem. what you need is the value in the HTML form to be the text you want inserted into the array, such as: input

RE: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread php-mail
:[EMAIL PROTECTED] Sent: 17 August 2005 21:30 To: php-general@lists.php.net Subject: Re: [PHP] Help correcting a form mailer problem... thanks for the reply... after using the print_r($_POST['gmev']); and selecting all the checkboxes to send to the form the return is Array ( [0] = on [1] = on [2

RE: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread php-mail
Hi If the checkbox exists in the array it is selected... if it isn't there it's not selected That's my experience :) -Original Message- From: zedleon [mailto:[EMAIL PROTECTED] Sent: 17 August 2005 21:30 To: php-general@lists.php.net Subject: Re: [PHP] Help correcting a form mailer

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Jordan Miller
] = on 1 and 3 are selected -Original Message- From: zedleon [mailto:[EMAIL PROTECTED] Sent: 17 August 2005 21:30 To: php-general@lists.php.net Subject: Re: [PHP] Help correcting a form mailer problem... thanks for the reply... after using the print_r($_POST['gmev']); and selecting all

RE: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread php-mail
@lists.php.net Subject: Re: [PHP] Help correcting a form mailer problem... Sorry, I believe you are mistaken here... you *can* specify a value for each checkbox and have it come through. I have written scripts that do this, and here is another example: http://www.tizag.com/phpT/examples/formex.php/ all

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Jordan Miller
: php-general@lists.php.net Sent: Wednesday, August 17, 2005 5:28 PM Subject: Re: [PHP] Help correcting a form mailer problem... Sorry, I believe you are mistaken here... you *can* specify a value for each checkbox and have it come through. I have written scripts that do this, and here is another

Re: [PHP] Help with a Parse Error

2005-08-01 Thread Edward Vermillion
Tom Chubb wrote: I have changed it a bit, and don't have the old code now!!! I saw a post which identified a problem using isset when $var = ; as it returns true, so I changed my code to use... if ($_GET['id'] != ) { $article=$id.php; if (file_exists($article)) { include $article; }

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Edward Vermillion
Tom Chubb wrote: I am trying to create my own news system and to start with I'm using static news pages until I get the db working properly. I'm using the following code: ?php if(!isset($_GET['id'])) { $article=$id.php if (file_exists($article)) { include $article; } else { echo The

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Tom Chubb
I have changed it a bit, and don't have the old code now!!! I saw a post which identified a problem using isset when $var = ; as it returns true, so I changed my code to use... if ($_GET['id'] != ) { $article=$id.php; if (file_exists($article)) { include $article; }

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Jochem Maas
Tom Chubb wrote: I have changed it a bit, and don't have the old code now!!! I saw a post which identified a problem using isset when $var = ; as it returns true, so I changed my code to use... the fact that you are using $id suggests you have register_globals on - not recommended practice.

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Tom Chubb
Thanks Jochem, useful info. I've changed that now, but why is there still an Undefined index: id error? Any ideas? On 31/07/05, Jochem Maas [EMAIL PROTECTED] wrote: Tom Chubb wrote: I have changed it a bit, and don't have the old code now!!! I saw a post which identified a problem using

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Jochem Maas
Tom Chubb wrote: Thanks Jochem, useful info. I've changed that now, but why is there still an Undefined index: id error? its a notice technically not an error. and its showing up because you have error reporting set to show notices. to be really purist/correct do it something like this: if

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Jochem Maas
Tom Chubb wrote: The purist method is what I wanted. dev'ing with E_ALL is a good thing, but turn off E_NOTICE on productions sites... IMHO in fact make sure your production sites don't output any php errors at all (even if they occur!), sure log them, but don't show - it makes it just a

Re: [PHP] Help with Functions

2005-07-30 Thread sub
I would recomend for sanity and clean code that you define your functions outside of the file you will be calling it from and include that file in any file you need to call a function from. Here's a function that I defined in my db.php file.

Re: [PHP] Help with Functions

2005-07-30 Thread Rory Browne
You're declaring your function wrong. You're doing: function (function_name) You should be doing function function_name($arg1, $arg2, $arg3) // with as many comma seperated arguments as you want. or if you don´t want to pass any arguments function function_name() Try this out: function

Re: [PHP] Help with Functions

2005-07-30 Thread Tom Chubb
Thanks guys for all your help. I've managed to get it working. I tried calling the function from within the file and it turned out that somehow I had messed up my include statement. I understood about adding argument variables to the syntax, but I needed to add a text argument as I couldn't think

Re: [PHP] help with print value

2005-07-30 Thread Miles Thompson
You're talking about a table in a database, correct? Assuming the database is MySQL, you would: 1. open a connection to the database 2. execute a SQL select statement to fetch the data 3. process the results, formatting them into HTML. There are a number of tutorials on doing this, but it's

RE: [PHP] help with ORDER BY query

2005-07-29 Thread Carlo Razzeto
The following line: $query_r = mysql_fetch_array($query) Will pop off the first result from the query, you can avoid this problem by using mysql_num_rows instead: if( mysql_num_rows( $query ) 0 )... Carlo Razzeto Programmer Mortgage Information Services Phone: (216) 514-1025 ex. 1212

Re: [PHP] help with ORDER BY query

2005-07-29 Thread André Medeiros
if( mysql_num_rows( $query_r ) 0 ) { while( $currentResult = mysql_fetch_array( $query_r ) ) { // do something with the result. } } else { echo 'No results.'; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] help with ORDER BY query

2005-07-29 Thread John Nichel
Jesús Alain Rodríguez Santos wrote: I have a query: $query = mysql_query(SELECT event FROM table WHERE month = 'x' ORDER BY day ASC); I have all days of the month insert in day field: 1, 2, 3, 4, 5 ... when I print the query: if ($query_r = mysql_fetch_array($query)) { -^

RE: [PHP] Help with a home-grown function

2005-07-26 Thread Ford, Mike
On 21 July 2005 22:19, Chris W. Parker wrote: 2. It will be a good idea to get out of the habit of breaking in and out of PHP like that. Instead just do: echo 'hi1'; Why? Some of us just strongly prefer the breaking in and out style -- I use it almost exclusively. In my 10,000s of lines of

Re: [PHP] Help with a home-grown function

2005-07-26 Thread Matthew Weier O'Phinney
* Ford, Mike [EMAIL PROTECTED] : On 21 July 2005 22:19, Chris W. Parker wrote: 2. It will be a good idea to get out of the habit of breaking in and out of PHP like that. Instead just do: echo 'hi1'; Why? Some of us just strongly prefer the breaking in and out style -- I use it almost

Re: [PHP] Help needed in changing row color

2005-07-26 Thread Dotan Cohen
On 7/26/05, suma parakala [EMAIL PROTECTED] wrote: Hi I am retrieving data from postgresql and displaying it in form of table in different rows. my problem is when check box is clicked i need to change the color of the row .agai when the check box is unclicked it should hold the old color.

Re: [PHP] Help needed in changing row color

2005-07-26 Thread Burhan Khalid
suma parakala wrote: Hi I am retrieving data from postgresql and displaying it in form of table in different rows. my problem is when check box is clicked i need to change the color of the row .agai when the check box is unclicked it should hold the old color. Can any one please help me

Re: [PHP] Help with a home-grown function

2005-07-22 Thread André Medeiros
On Thu, 2005-07-21 at 13:37 -0700, Dan Trainor wrote: Hello, all - I've been looking around for a function that would tell me if a $value in a $key=$value array was empty, and I could not find one. So I decided to make my own. Even if I am re-inventing the wheel, I thought that the

RE: [PHP] Help with a home-grown function

2005-07-21 Thread Mike Johnson
From: Dan Trainor [mailto:[EMAIL PROTECTED] Hello, all - I've been looking around for a function that would tell me if a $value in a $key=$value array was empty, and I could not find one. So I decided to make my own. Even if I am re-inventing the wheel, I thought that the practice

Re: [PHP] Help with a home-grown function

2005-07-21 Thread Dan Trainor
Mike Johnson wrote: From: Dan Trainor [mailto:[EMAIL PROTECTED] Hello, all - I've been looking around for a function that would tell me if a $value in a $key=$value array was empty, and I could not find one. So I decided to make my own. Even if I am re-inventing the wheel, I thought that

Re: [PHP] Help with a home-grown function

2005-07-21 Thread Dan Trainor
Dan Trainor wrote: Mike Johnson wrote: From: Dan Trainor [mailto:[EMAIL PROTECTED] Hello, all - I've been looking around for a function that would tell me if a $value in a $key=$value array was empty, and I could not find one. So I decided to make my own. Even if I am re-inventing the

RE: [PHP] Help with a home-grown function

2005-07-21 Thread Chris W. Parker
Dan Trainor mailto:[EMAIL PROTECTED] on Thursday, July 21, 2005 2:03 PM said: I never see hi even if an array is set as such: $vars = array(one,two,three,four,five); That's because your function always returns true. If it finds a missing value it returns true. If it doesn't find a

Re: [PHP] Help with a home-grown function

2005-07-21 Thread Dan Trainor
Chris W. Parker wrote: Dan Trainor mailto:[EMAIL PROTECTED] on Thursday, July 21, 2005 2:03 PM said: I never see hi even if an array is set as such: $vars = array(one,two,three,four,five); That's because your function always returns true. If it finds a missing value it returns

RE: [PHP] Help installing on Win2003 server?

2005-07-11 Thread Jay Blanchard
[snip] Can someone tell me where I can find some detailed instructions on how to install PHP on a Win2003 Server? I've tried to install it using the PHP instructions, but it doesn't seem to be working, think I'm missing something. [/snip] Did you install Apache? -- PHP General Mailing List

RE: [PHP] Help installing on Win2003 server?

2005-07-11 Thread Jay Blanchard
[snip] No, this is on a IIS6 install [/snip] Have you read this... http://us2.php.net/manual/en/install.windows.iis.php ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Help installing on Win2003 server?

2005-07-11 Thread Grosz, Steve (IPG IT)
Yes, I have looked at that info, but am still having a problem. -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Monday, July 11, 2005 12:39 PM To: Grosz, Steve (IPG IT); php-general@lists.php.net Subject: RE: [PHP] Help installing on Win2003 server? [snip

Re: [PHP] Help installing on Win2003 server?

2005-07-11 Thread John Nichel
Grosz, Steve (IPG IT) wrote: Yes, I have looked at that info, but am still having a problem. snip And that problem is? Error messages? Logs? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Help installing on Win2003 server?

2005-07-11 Thread Grosz, Steve (IPG IT)
Subject: Re: [PHP] Help installing on Win2003 server? Grosz, Steve (IPG IT) wrote: Yes, I have looked at that info, but am still having a problem. snip And that problem is? Error messages? Logs? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List

RE: [PHP] Help installing on Win2003 server?

2005-07-11 Thread Richard Lynch
On Mon, July 11, 2005 12:43 pm, Grosz, Steve (IPG IT) said: I get a message in the browser saying it can't find the file, will find standard .htm or .cfm files, but when I try to browse to a .php file, nothing. What is the EXACT error message?... An error message isn't nothing -- It's an

Re: [PHP] Help - need to quickly optimize a record count!

2005-07-10 Thread Burhan Khalid
Brian Dunning wrote: I am cross-posting this to the PHP and the MySQL lists because I'm not sure in which technology my solution will lie. I have a pretty busy PHP/MySQL site that executes the following query a lot: select count(*) as `count` from terms; My MySQL account was disabled by

RE: [PHP] Help - need to quickly optimize a record count!

2005-07-10 Thread Warren Vail
Khalid [mailto:[EMAIL PROTECTED] Sent: Sunday, July 10, 2005 12:21 AM To: Brian Dunning Cc: php-general@lists.php.net; mysql@lists.mysql.com Subject: Re: [PHP] Help - need to quickly optimize a record count! Brian Dunning wrote: I am cross-posting this to the PHP and the MySQL lists

Re: [PHP] Help - need to quickly optimize a record count!

2005-07-06 Thread Brian Dunning
It is indexed, and it's fast, but nevertheless my ISP won't allow it any longer. At least not as often as I need it. On Jul 6, 2005, at 2:10 PM, Philip Hallstrom wrote: If you have an index on the terms table that query should return almost instantly... Anyway, I'd start there first...

Re: [PHP] Help - need to quickly optimize a record count!

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 1:43 pm, Brian Dunning said: I am cross-posting this to the PHP and the MySQL lists because I'm not sure in which technology my solution will lie. I have a pretty busy PHP/MySQL site that executes the following query a lot: Define a lot Every page hit? select count(*)

Re: [PHP] Help - need to quickly optimize a record count!

2005-07-06 Thread Brian Dunning
Hi Richard - like I said, whatever the merits of the situation, that's the query that the ISP is not permitting. As soon as I change that, they'll reactivate the account. The ISP is PowWeb if anyone else wants to take it up with them; I've already talked myself red in the face. On Jul

Re: [PHP] help, no jpeg support compiled in

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 5:42 pm, Christopher J. Bottaro said: Warning: imagecreatefromstring() [function.imagecreatefromstring]: No JPEG support in this PHP build This is how I configured my php: ./configure --with-pgsql=/usr/local/postgres/ --with-apxs2=/usr/sbin/apxs --with-gd

Re: [PHP] Help with preg_replace

2005-07-04 Thread Jason Wong
On Tuesday 05 July 2005 02:21, Marcos Mendonça wrote: This works fine for links with id 0, 1 and 4. But i haven´t been able to figure out how to match and replace links with id 2 and 3. Works for me. Check whether $body_html really does contain what you're looking for in id 2 id 3. You may

Re: [PHP] Help a Norwegian student!

2005-07-03 Thread Richard Davey
Hello Bjørn-Erik, Sunday, July 3, 2005, 1:09:29 PM, you wrote: BED for can not start the myswli extension, BED please check the PHP-configuration A link follows to: BED http://localhost/phpMyAdmin/Documentation.html#faqmysql - [1.20] I receive the error cannot load MySQL extension, please BED

Re: [PHP] Help with image map problem...

2005-06-23 Thread Richard Lynch
On Wed, June 22, 2005 10:16 pm, Joey said: If I put this in the .php file, the results are as expected: Value: % echo $value; % If in the SAME file I put: map name=FPMap0 area href=display_status.php?searchby=cust_nosearch=1value=% echo $value % shape=rect coords=51, 1, 215, 34 /map I'm

Re: [PHP] Help recognizing bots?

2005-06-22 Thread Richard Lynch
On Wed, June 22, 2005 3:57 pm, Brian Dunning said: I'm using the following code in an effort to identify bots: $client = $_SERVER['HTTP_USER_AGENT']; if(!strpos($client, 'ooglebot') !strpos($client, 'ahoo') !strpos ($client, 'lurp') !strpos($client, 'msnbot')) { (Stuff that I do if

RE: [PHP] HELP! form validation

2005-06-09 Thread Dave Sayer
PROTECTED] Sent: 08 June 2005 15:33 To: '[EMAIL PROTECTED]' Subject: RE: [PHP] HELP! form validation I can see that being a very nice way of doing it. I will get on and give it a go this afternoon. Thanks so much for the speedy response! It just so happened that I, just last week

RE: [PHP] HELP! form validation

2005-06-09 Thread Jim Moseby
Hi Jim, Ive modified the code for the form by adding the style info vars to the relevant fields and set the var for the error style but for some reason the $error_var wont pick up the syle from $error_syle_var. Eg: $error_style = 'color: rgb(255,0,0)'; if(!$name){$err1 =

Re: [PHP] HELP! form validation

2005-06-09 Thread Dave Sayer
]'; Jim Moseby Cc: php-general@lists.php.net Subject: RE: [PHP] HELP! form validation Hi Jim, Ive modified the code for the form by adding the style info vars to the relevant fields and set the var for the error style but for some reason the $error_var wont pick up the syle from

RE: [PHP] HELP! form validation

2005-06-09 Thread Jim Moseby
Eg: $error_style = 'color: rgb(255,0,0)'; if(!$name){$err1 = $error_style; $error[]=*please enter your name\n;} snip! Does it re-populate the fields with the previously entered data? Yes, it does. I already have set the variables manually like you say. Its just the

RE: [PHP] HELP! form validation

2005-06-09 Thread Dave Sayer
- From: Jim Moseby [mailto:[EMAIL PROTECTED] Sent: 09 June 2005 15:49 To: '[EMAIL PROTECTED]'; php-general@lists.php.net Subject: RE: [PHP] HELP! form validation Eg: $error_style = 'color: rgb(255,0,0)'; if(!$name){$err1 = $error_style; $error[]=*please enter your name\n

Re: [PHP] HELP! form validation

2005-06-08 Thread Paul Waring
On 6/8/05, Dave Sayer [EMAIL PROTECTED] wrote: What would be the best method of validation a large (8 stages) form written in php? The form validates using php at the moment but it only displays the errors in a group, what we want it to do is highlight the fields or labels for the incorrect

RE: [PHP] HELP! form validation

2005-06-08 Thread Jim Moseby
Hi phpers, What would be the best method of validation a large (8 stages) form written in php? The form validates using php at the moment but it only displays the errors in a group, what we want it to do is highlight the fields or labels for the incorrect entries (if that makes

RE: [PHP] HELP! form validation

2005-06-08 Thread Dave Sayer
-Original Message- From: Jim Moseby [mailto:[EMAIL PROTECTED] Sent: 08 June 2005 15:18 To: '[EMAIL PROTECTED]' Subject: RE: [PHP] HELP! form validation -Original Message- From: Dave Sayer [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 9:58 AM To: php

Re: [PHP] Help with some OOP

2005-06-05 Thread Jochem Maas
JamesBenson wrote: Hello all, Ive been working with PHP for my websites for a few months, just attempted to build my own class, after reading all this stuff about automated robots and XSS attacks etc decided to step up security a bit, my result is an attempt to create a class for using the

Re: [PHP] Help with using SPL to build a MySQL Iterator

2005-05-18 Thread Chris
V Kam wrote: Hello all I was trying to write an SPL Iterator for a MySQL result set but not having any luck. Specifically I'm not sure how to overload the key() and current/next() methods. Does anyone here have a working code sample that does this, or can offer some guidance on how to overload

Re: [PHP] Help!!! Cannot do Authentication

2005-05-13 Thread Richard Lynch
On Thu, May 12, 2005 9:27 am, K.S. TANG said: I have a page using the Basic HTTP Authentication and works well before. But this night, the server seems to not receiving any $_SERVER pass in from Web browsers. if ( (!isset($_SERVER['PHP_AUTH_USER'])) || ($_SERVER['PHP_AUTH_USER'] !=

Re: [PHP] Help with regex: breaking strings down to 'words' and 'phrases'

2005-05-10 Thread Philip Hallstrom
On Wed, 11 May 2005, Murray @ PlanetThoughtful wrote: Hi All, I'd very much appreciate some help building a regular expression for preg_match_all that can differentiate between 'words' and 'phrases'. For example, say I have a string that contains: 'this is an example of a phrase' I'd like to be

<    2   3   4   5   6   7   8   9   10   11   >