Re: [PHP] help me in creating tables on the fly

2005-10-12 Thread Jochem Maas
Suresh Pandian wrote: hello friends, im currently working on creating musical forum. i need to create tables for every song uploaded on the fly to save the comments and rates entered by the viewers. im unable to create tables on the fly. ... if I upl

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: > > > > > include ("../utils.inc"); > > > > $date = date("U"); > > $dateExpire = $date + 90 * 86400; > > > > $code = "jack"; > > > >

Re: [PHP] Help with logic :(

2005-10-11 Thread John Nichel
[EMAIL PROTECTED] wrote: This SHOULD error out but I'm getting the error instead. It's just a test page to test my logic... A Check to see if there is an error first if ( ! $result = mysql_query ( $query ) ) { echo ( mysql_error() ); } -- John C. Nichel ÜberGeek KegWorks.com 7

RE: [PHP] Help with logic :(

2005-10-11 Thread aaronjw
r 11, 2005 1:34 PM >> To: Dan McCullough >> Cc: php-general@lists.php.net >> Subject: Re: [PHP] Help with logic :( >> >> > >> include ("../utils.inc"); >> >> $date = date("U"); >> $dateExpire = $date + 90 * 86400

Re: [PHP] Help with logic :(

2005-10-11 Thread Silvio Porcellana
[EMAIL PROTECTED] wrote: > > 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

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 :( >

Re: [PHP] Help with logic :(

2005-10-11 Thread aaronjw
This SHOULD error out but I'm getting the error instead. It's just a test page to test my logic... A > got some code so we can see? > > On 10/11/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> Thanks everyone. Makes sense. Now I got another issue. >> >> When I try to see if an error exists

Re: [PHP] Help with logic :(

2005-10-11 Thread Dan McCullough
got some code so we can see? On 10/11/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Thanks everyone. Makes sense. Now I got another issue. > > When I try to see if an error exists I get this: > > Warning: mysql_error(): supplied argument is not a valid MySQL-Link > resource in /home//

Re: [PHP] Help with logic :(

2005-10-11 Thread aaronjw
Thanks everyone. Makes sense. Now I got another issue. When I try to see if an error exists I get this: Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home//public_html/Store/test.php on line 14 Is there a setting somewhere that I need to set to make sur

Re: [PHP] Help with logic :(

2005-10-11 Thread Jochem Maas
Dan McCullough wrote: Yes I believe that is what Richard was saying about "Trap the INSERT error", you should get an error back from the database about having a problem with the insert instead of showing that error you will want to add some logic that when that error occurs you simply generate an

Re: [PHP] Help with logic :(

2005-10-11 Thread Dan McCullough
Yes I believe that is what Richard was saying about "Trap the INSERT error", you should get an error back from the database about having a problem with the insert instead of showing that error you will want to add some logic that when that error occurs you simply generate another number. On 10/11/

Re: [PHP] Help with logic :(

2005-10-11 Thread aaronjw
Hi Richard, Ok... I do already have a Unique index on the column but this process is something that I cannot echo out the error code to the user. The code is generated on the fly when an order an is placed so you can see... I can't echo out the error to the customer. Can I do an if statement IF a

Re: [PHP] Help with logic :(

2005-10-11 Thread Jochem Maas
Richard Lynch wrote: 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 use

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 'val

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 hav

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

2005-09-20 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 on.

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 param

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 ther

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: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

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

2005-09-20 Thread Jasper Bryant-Greene
jay thompson wrote: index.php: There is no need to switch in and out of PHP there. Replace all the ?> immediately followed by content.php: some text some more text - artist name'; break; case artist2,3,4: [...]

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 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 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 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 be

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" Sent: Monday, September 12, 2005 11:05 AM Subject: [PHP] help me to draw a listview in my website hi all, If any scri

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 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 t

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' ); > >

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
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 expla

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 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 >

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 com

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?

2005-09-01 Thread Wong HoWang
Dear Jordan, I know what you mean. But you may try this one and you will know: 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] > http://us3.php.net/manual/en/ini.core.p

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 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 progra

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: >> >> > ini_set('precision',16); >> echo pi(); >> ?> >> >> How can I get mo

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: > > 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! :) R

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 r

RE: [PHP] Help Needed

2005-08-26 Thread David Skyers
lto:[EMAIL PROTECTED] 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 wrot

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 a

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 anomali

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 &

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: http://ww

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

2005-08-17 Thread Jordan Miller
w is this done? test form is on http://www.passeycorp.com/event_reg.php check it out and I think you'll see what I mean. The suggestions and help are greatly appreciated. Ted - Original Message - From: "Jordan Miller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]&g

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

2005-08-17 Thread php-mail
hp-general@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

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

2005-08-17 Thread Jordan Miller
mev[3]" And your array contains [1] => on : [3] => 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 u

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 correctin

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

2005-08-17 Thread php-mail
-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 the checkboxes to

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: Jordan On

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 Wolla

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, zedl

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 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 litt

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 (is

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 usi

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
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: if(!isset($_GET['id'])) { $article="$id.php" if (file_exists($article)) { include $article; } else { echo "The articl

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 on

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 o

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 ma

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 "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 "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: http://www.php.net/un

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 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 This

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 col

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 > i

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 o

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 Dan Trainor
Chris W. Parker wrote: > Dan Trainor > 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 mis

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

2005-07-21 Thread Chris W. Parker
Dan Trainor 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

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

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, >

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 practic

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 installing on Win2003 server?

2005-07-11 Thread Grosz, Steve (IPG IT)
p.net 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. And that problem is? Error messages? Logs? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing Li

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. 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: http://ww

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] No

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 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 (http

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

2005-07-10 Thread Warren Vail
; From: Burhan 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-post

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 m

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 --with-z

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 6,

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 c

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 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 ma

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, pleas

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: > > $value %>" shape="rect" coords="51, 1, 215, 34"> > I'm gonna go out on a limb and put my money on: Your stuff is inside of a

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 t

RE: [PHP] HELP! form validation

2005-06-09 Thread Dave Sayer
age- > 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)';

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";} > > > > > > Does it re-populate the fields with the previously entered data? > > Yes, it does. I already have set the variables manually like > you

Re: [PHP] HELP! form validation

2005-06-09 Thread Dave Sayer
15:02 > > To: '[EMAIL PROTECTED]'; 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 > > >

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
; -Original Message- > From: Jim Moseby [mailto:[EMAIL 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 > >

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