[PHP] RE: need a find/replace command to fix my require_once

2009-11-20 Thread Daevid Vincent
> -Original Message- > From: Nathan Rixham [mailto:nrix...@gmail.com] > Sent: Friday, November 20, 2009 1:29 AM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: need a find/replace command to fix my require_once > > Daevid Vincent wrote: > > I was reading this: > ht

RE: [PHP] Re: need a find/replace command to fix my require_once [webform solved]

2009-11-20 Thread Daevid Vincent
> I tried to post this note to here: > http://us2.php.net/manual/add-note.php > But the stupid-ass form says: > "Your note contains a prohibited (usually SPAM) word. Please > remove it and try again." > WTF!? It doesn't even TELL me what f'n word is the problem. > Seriously? It already asked me

[PHP] Creating users and generating privileges for users

2009-11-20 Thread nitin reddy
Hey can one help me in creating different users using mysql for php and assigning different privileges for them ..any sample code available? -- PASULA NITIN REDDY Graduate Student in Computer Science Department University of Minnesota,Twin Cities Minneapolis.

RE: [PHP] Re: need a find/replace command to fix my require_once [solved]

2009-11-20 Thread Daevid Vincent
> -Original Message- > From: Shawn McKenzie [mailto:nos...@mckenzies.net] > Sent: Friday, November 20, 2009 7:42 AM > To: Nathan Rixham > Cc: Daevid Vincent; php-general@lists.php.net > Subject: [PHP] Re: need a find/replace command to fix my require_once > > Nathan Rixham wrote: > > D

Re: [PHP] Which query is more correct?

2009-11-20 Thread Rick Pasotto
On Fri, Nov 20, 2009 at 04:41:58PM -0600, LAMP wrote: > Hi, > I need to pull all records from the table Registrants they are NOT > in the table ToBeRecleared > > Registrants.Reg_ID is PK > ToBeRecleared.tbrc_Reg_ID is PK > > Which query is more correct? > > SELECT r.* > FROM registrants r > wher

[PHP] Re: Which query is more correct?

2009-11-20 Thread Nisse Engström
On Fri, 20 Nov 2009 16:41:58 -0600, LAMP wrote: > SELECT r.* > FROM registrants r > where r.reg_status=1 AND r.reg_id NOT IN (SELECT tbrc_reg_id FROM > toberecleared) > > > SELECT r.* > FROM registrants r > where r.reg_status=1 AND (SELECT count(*) FROM toberecleared where > tbrc_reg_id=r.reg_

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Mari Masuda
On Nov 20, 2009, at 2:29 PM, Ashley Sheridan wrote: > On Fri, 2009-11-20 at 17:23 -0500, Phil Matt wrote: > >> Ashley Sheridan wrote: >> >>> put >>> >>> var_dump($row); >>> >> I inserted this line in the script at the end of the html table, still >> inside the PHP echo statement. >> >> This

Re: [PHP] Which query is more correct?

2009-11-20 Thread Ashley Sheridan
On Fri, 2009-11-20 at 16:41 -0600, LAMP wrote: > Hi, > I need to pull all records from the table Registrants they are NOT in > the table ToBeRecleared > > Registrants.Reg_ID is PK > ToBeRecleared.tbrc_Reg_ID is PK > > Which query is more correct? > > SELECT r.* > FROM registrants r > where r.r

[PHP] Which query is more correct?

2009-11-20 Thread LAMP
Hi, I need to pull all records from the table Registrants they are NOT in the table ToBeRecleared Registrants.Reg_ID is PK ToBeRecleared.tbrc_Reg_ID is PK Which query is more correct? SELECT r.* FROM registrants r where r.reg_status=1 AND r.reg_id NOT IN (SELECT tbrc_reg_id FROM toberecleare

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Ashley Sheridan
On Fri, 2009-11-20 at 17:23 -0500, Phil Matt wrote: > Ashley Sheridan wrote: > > > put > > > > var_dump($row); > > > I inserted this line in the script at the end of the html table, still > inside the PHP echo statement. > > This yields: > > bool(false) > > Cheers --- Phil That means that

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Phil Matt
Ashley Sheridan wrote: put var_dump($row); I inserted this line in the script at the end of the html table, still inside the PHP echo statement. This yields: bool(false) Cheers --- Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Ashley Sheridan
On Fri, 2009-11-20 at 17:08 -0500, Phil Matt wrote: > Ashley Sheridan wrote: > > > > As Mike pointed out, I meant var_dump(), sorry! > > > > Is the idea to put the variable in question within the parentheses? > > I tried the statement, > > var_dump($row[3]; > > And I got in the output: > >

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Phil Matt
Ashley Sheridan wrote: As Mike pointed out, I meant var_dump(), sorry! Is the idea to put the variable in question within the parentheses? I tried the statement, var_dump($row[3]; And I got in the output: NULL Also tried var_dump(); And I got in the output: Warning: Wrong parameter co

RE: [PHP] Does PHP block requests?

2009-11-20 Thread Ford, Mike
> -Original Message- > From: Peter Ford [mailto:p...@justcroft.com] > Sent: 20 November 2009 16:40 > You're right about trying to use the same session - that was the > plan to get the > progress state passed across from one call to the other. > Closing the session on the generator script

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Ashley Sheridan
On Fri, 2009-11-20 at 16:41 -0500, Phil Matt wrote: > Ashley Sheridan wrote: > > > That's not a vardump, a vardump would contain the type of variable. I > > wanted to see the whole thing. > > I played with this for a while and checked the PHP manual; not sure how > to use this. > > > Cheers

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Phil Matt
Ashley Sheridan wrote: That's not a vardump, a vardump would contain the type of variable. I wanted to see the whole thing. I played with this for a while and checked the PHP manual; not sure how to use this. Cheers --- Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] Change styling depending on var value

2009-11-20 Thread Ford, Mike
> -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: 20 November 2009 21:16 > To: Phil Matt > Cc: php-general@lists.php.net > Subject: Re: [PHP] Change styling depending on var value > > On Fri, 2009-11-20 at 16:17 -0500, Phil Matt wrote: > > > Ashley Sh

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Ashley Sheridan
On Fri, 2009-11-20 at 16:17 -0500, Phil Matt wrote: > Ashley Sheridan wrote: > > > copy the results of this: > > > > vardump($row); > > > Sirloin SteakfreshAcmemeat > Chicken Breast frozen Acmemeat > Decaf Columbian pantry Giant coffee > Ice

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Phil Matt
Ashley Sheridan wrote: copy the results of this: vardump($row); Sirloin Steak freshAcmemeat Chicken Breast frozen Acmemeat Decaf Columbianpantry Giant coffee Ice Cream frozen Giant dessert All looks as expected. NB: This is just te

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Ashley Sheridan
On Fri, 2009-11-20 at 15:52 -0500, Phil Matt wrote: > Ashley Sheridan wrote: > > > Copying back the phplist *again*! > Sorry. I'll remember to copy in... > > > > what does your code currently look like now, with the right == in? > > $entree="meat"; > $beverage="coffee"; > if ($row[3] == $entree

Re: RES: [PHP] CSS and variables

2009-11-20 Thread Phil Matt
Jônatas Zechim wrote: Try: echo '' . $row[1] . ''; Thanks, Jônatas. This was the solution. Cheers --- Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Phil Matt
Dan McCullough wrote: To add to what Ashley said about $row[3], remember that when you are returning from the db the counter for fields will start at 0 not 1, so if its the 3rd field that will be $row[2]. You might also want to do switch rather then elseif but thats always a good debate.

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Phil Matt
Ashley Sheridan wrote: Copying back the phplist *again*! Sorry. I'll remember to copy in... what does your code currently look like now, with the right == in? $entree="meat"; $beverage="coffee"; if ($row[3] == $entree) { $newcolor="color:red"; } elseif ($row[3] == $beverage) { $newcol

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Dan McCullough
To add to what Ashley said about $row[3], remember that when you are returning from the db the counter for fields will start at 0 not 1, so if its the 3rd field that will be $row[2]. You might also want to do switch rather then elseif but thats always a good debate. On Fri, Nov 20, 2009 at 3:16

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Ashley Sheridan
On Fri, 2009-11-20 at 15:30 -0500, Phil Matt wrote: > Ashley Sheridan wrote: > > > print $row[3]; > > > > Does it contain a string like you expect? > > > > Yes. I'm going to try the same kind of formatting on a different $row > cell and see what happens. > > Cheers and thanks again --- Phil

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Ashley Sheridan
On Fri, 2009-11-20 at 15:11 -0500, Phil Matt wrote: > Ashley Sheridan wrote: > > > Well, you're main problem here is that you are only using a single = > > character. What that is saying to PHP is: "if you let me assign the > > value of $beverage to $row[3] then do this next bit", but what I th

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Ashley Sheridan
On Fri, 2009-11-20 at 14:45 -0500, Phil Matt wrote: > I am trying to style HTML table cells depending on the values stored in > a MySQL db. Thanks to other on this list, I can now refer to the > variable that holds a CSS styling value. > > Now, I need to apply different values of that variable,

Re: [PHP] How to create a web application like igoogle?

2009-11-20 Thread Ashley Sheridan
On Fri, 2009-11-20 at 23:15 +0330, Ali Asghar Toraby Parizy wrote: > Hi > How can i create a web page that include some gadgets? what kind of > technology do i have to use to creating web pages like igoogle and gmail? > How can i create them by php? Wow! Well, first what is it you want to do? M

[PHP] Change styling depending on var value

2009-11-20 Thread Phil Matt
I am trying to style HTML table cells depending on the values stored in a MySQL db. Thanks to other on this list, I can now refer to the variable that holds a CSS styling value. Now, I need to apply different values of that variable, depending on the content of the table cell itself. I tried

[PHP] How to create a web application like igoogle?

2009-11-20 Thread Ali Asghar Toraby Parizy
Hi How can i create a web page that include some gadgets? what kind of technology do i have to use to creating web pages like igoogle and gmail? How can i create them by php?

Re: [PHP] securing php pages

2009-11-20 Thread niccguard-dev
From: nitin reddy To: php-general@lists.php.net Sent: Fri, November 20, 2009 8:56:39 AM Subject: [PHP] securing php pages Hi I am a new user of PHP..in my project i have put login forms and i am able to login successful but the pages after the login can be accessed directly by typing the address

Re: [PHP] securing php pages

2009-11-20 Thread LinuxManMikeC
On Fri, Nov 20, 2009 at 8:56 AM, nitin reddy wrote: > Hi I am a new user of PHP..in my project i have put login forms and i am > able to login successful but the pages after the login can be accessed > directly by typing the address so if any one can help in this matter. > > > Thank you, > > -- >

RES: [PHP] CSS and variables

2009-11-20 Thread Jônatas Zechim
Try: echo '' . $row[1] . ''; -Mensagem original- De: Phil Matt [mailto:ad...@philmatt.com] Enviada em: sexta-feira, 20 de novembro de 2009 14:12 Para: php-general@lists.php.net Assunto: [PHP] CSS and variables De-lurking here. I'm trying, with no success, to use some CSS styling on my

Re: [PHP] Does PHP block requests?

2009-11-20 Thread Peter Ford
Ford, Mike wrote: >> -Original Message- >> From: Peter Ford [mailto:p...@justcroft.com] >> Sent: 20 November 2009 15:18 >> To: php-general@lists.php.net >> Subject: [PHP] Does PHP block requests? >> >> I have a tricky problem. >> >> I'm trying to make a progress feedback mechanism to keep u

Re: [PHP] CSS and variables

2009-11-20 Thread LinuxManMikeC
On Fri, Nov 20, 2009 at 9:12 AM, Phil Matt wrote: > De-lurking here. > > I'm trying, with no success, to use some CSS styling on my PHP output. > > Here's the code I want to style: > > echo ''.$row[0].''.$row[1].' > > I want to use a CSS style for the second cell, picking up the style > from the

RE: [PHP] Upgrading PHP versions

2009-11-20 Thread Bob McConnell
You may be right, I keep thinking of the bugs that were dropped out of 6.0, like magic quotes and register globals. They're only deprecated in 5.3. bm -Original Message- From: David Stoltz [mailto:dsto...@shh.org] Sent: Friday, November 20, 2009 10:59 AM To: Bob McConnell; php-general@li

Re: [PHP] Upgrading PHP versions

2009-11-20 Thread Brady Mitchell
> We are currently using PHP version 5.2.6. in production, and I'd like to > upgrade to the latest 5.3.1 Before upgrading production, upgrade your staging server and do QA. Any big changes like this should be tested in staging before being pushed to production. Also take a look at http://php.net/C

Re: [PHP] CSS and variables

2009-11-20 Thread richard
Hi, > $newcolor = "color: red"; > > '.$row[1].' > > But it doesn't work. No problem with th "spacer" class, works fine. I just > can't get the syntax for pulling a CSS style from a PHP var. You could do this: {$row[1]}"; ?> -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 14th

[PHP] CSS and variables

2009-11-20 Thread Phil Matt
De-lurking here. I'm trying, with no success, to use some CSS styling on my PHP output. Here's the code I want to style: echo ''.$row[0].''.$row[1].' I want to use a CSS style for the second cell, picking up the style from the value of a variable. I tried this: $newcolor = "color: red"; '

[PHP] Re: Thread Safe?

2009-11-20 Thread Shawn McKenzie
David Stoltz wrote: > Forgot to ask: > > On the Windows download page, there are options like: > > VC9 Thread Safe > VC9 Non-Thread Safe > VC6 Thread Safe > ...etc > > What is the VC, and what is thread safe? > > Thanks! VC = Microsoft Visual C. 9 and 6 are the versions. http://en.wikipedia.o

RE: [PHP] securing php pages

2009-11-20 Thread David Stoltz
You can use either cookies of sessions to maintain security: Some pseudo code: Login page: Login successful? If yes, set session value "LOGIN" = "YES" Then on all other pages, 1st check session value "LOGIN"if != "YES" then bump them to the login page. Make sense? -Original Message---

RE: [PHP] Upgrading PHP versions

2009-11-20 Thread David Stoltz
Bob - I checked the changelog - 99% of it are bug fixes I don't see anything about 5.2.x features not being available as you suggest. But thanks for the reply. -Original Message- From: Bob McConnell [mailto:r...@cbord.com] Sent: Friday, November 20, 2009 10:50 AM To: David Stoltz; p

[PHP] securing php pages

2009-11-20 Thread nitin reddy
Hi I am a new user of PHP..in my project i have put login forms and i am able to login successful but the pages after the login can be accessed directly by typing the address so if any one can help in this matter. Thank you, -- Nitin

[PHP] Re: DOM append to the top

2009-11-20 Thread Nathan Rixham
Matthew Croud wrote: > The XML looks like: > > > ... > ... > ... > <- new items are added here > > > This is what my code looks like: > > $y = $dom -> getElementsByTagName("item"); > $dom -> documentElement -> insertBefore($Xitem,$y); > > If trying to pass the top most "item" node to inse

RE: [PHP] Upgrading PHP versions

2009-11-20 Thread Bob McConnell
Assumption 2 is invalid. You need to take a close look at the change log. Many "features" from 5.2 are no longer available and will break code that depends on them. Bob McConnell -Original Message- From: David Stoltz [mailto:dsto...@shh.org] Sent: Friday, November 20, 2009 10:50 AM To: p

[PHP] Thread Safe?

2009-11-20 Thread David Stoltz
Forgot to ask: On the Windows download page, there are options like: VC9 Thread Safe VC9 Non-Thread Safe VC6 Thread Safe ...etc What is the VC, and what is thread safe? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Upgrading PHP versions

2009-11-20 Thread David Stoltz
Hi, We are currently using PHP version 5.2.6. in production, and I'd like to upgrade to the latest 5.3.1 My Assumptions: - I can simply download the Windows binary file, and install it. - None of the 5.2.6 code will break Will there be a momentary interruption of web services during the install?

[PHP] Re: need a find/replace command to fix my require_once

2009-11-20 Thread Shawn McKenzie
Nathan Rixham wrote: > Daevid Vincent wrote: >> I was reading this: http://pear.php.net/manual/en/standards.including.php >> and it states: >> >> "Note: include_once and require_once are statements, not functions. >> Parentheses should not surround the subject filename." >> >> I never knew t

RE: [PHP] Does PHP block requests?

2009-11-20 Thread Ford, Mike
> -Original Message- > From: Peter Ford [mailto:p...@justcroft.com] > Sent: 20 November 2009 15:18 > To: php-general@lists.php.net > Subject: [PHP] Does PHP block requests? > > I have a tricky problem. > > I'm trying to make a progress feedback mechanism to keep users > informed about a >

[PHP] Does PHP block requests?

2009-11-20 Thread Peter Ford
I have a tricky problem. I'm trying to make a progress feedback mechanism to keep users informed about a slowish process on the server end of a web app. The backend is generating a PDF file from a bunch of data which extends to many pages. I can keep tabs on the progress of this generation by work

RE: [PHP] need browser auto-form predictable fill-in randomizer addon

2009-11-20 Thread Bob McConnell
From: Daevid Vincent > I have a form with probably 100+ elements from input, checkbox, select > boxes, textareas, etc. It's extremely tedious to fill these in all the time > and submit while developing/testing. > > Anyone know of a plugin to Firefox (or IE for that matter) that will fill in > the

[PHP] DOM append to the top

2009-11-20 Thread Matthew Croud
Yo! I have a working form that adds user input to an XML file, it adds the new "item" element to the bottom of the list of previously created "item" elements. I would now like the new elements to be added to the top of the list. So far i've tried using: insertBefore() but i'm still getting

Re: [PHP] Noob question: Making search results clickable.

2009-11-20 Thread Nathan Rixham
Ford, Mike wrote: >> -Original Message- >> From: Nisse Engström [mailto:news.nospam.0ixbt...@luden.se] >> Sent: 19 November 2009 14:54 >> To: php-general@lists.php.net >> Subject: Re: [PHP] Noob question: Making search results clickable. >> >> On Wed, 18 Nov 2009 10:31:59 -0500, Paul M Fost

[PHP] Re: need a find/replace command to fix my require_once

2009-11-20 Thread Nathan Rixham
Daevid Vincent wrote: > I was reading this: http://pear.php.net/manual/en/standards.including.php > and it states: > > "Note: include_once and require_once are statements, not functions. > Parentheses should not surround the subject filename." > > I never knew that. I've always (wrongly)

[PHP] Re: need browser auto-form predictable fill-in randomizer addon

2009-11-20 Thread Nathan Rixham
Daevid Vincent wrote: > I have a form with probably 100+ elements from input, checkbox, select > boxes, textareas, etc. It's extremely tedious to fill these in all the time > and submit while developing/testing. > > Anyone know of a plugin to Firefox (or IE for that matter) that will fill in > th

Re: [PHP] need a find/replace command to fix my require_once

2009-11-20 Thread Ashley Sheridan
On Thu, 2009-11-19 at 17:43 -0800, Daevid Vincent wrote: > I was reading this: http://pear.php.net/manual/en/standards.including.php > and it states: > > "Note: include_once and require_once are statements, not functions. > Parentheses should not surround the subject filename." > > I nev