Re: [PHP] Join question

2007-11-30 Thread chris smith
On Dec 1, 2007 3:53 PM, Crayon Shin Chan [EMAIL PROTECTED] wrote: On Saturday 01 December 2007, tedd wrote: At 10:21 AM +0800 11/30/07, Crayon Shin Chan wrote: On Friday 30 November 2007, tedd wrote: I'm trying to understand joins, Ask on a database related list. Really? Really.

Re: [PHP] Join question

2007-11-30 Thread Jochem Maas
Daniel Brown wrote: On Nov 30, 2007 10:22 AM, Jochem Maas [EMAIL PROTECTED] wrote: Daniel Brown wrote: I was tempted to flame Tedd just because he's Tedd. ;-P lol. but then the guy was programming Rocks(tm) way before I was born, that has to count for something :-) Please keep

Re: [PHP] Join question

2007-11-30 Thread Steve Edberg
At 10:30 AM -0500 11/30/07, Daniel Brown wrote: On Nov 30, 2007 10:22 AM, Jochem Maas [EMAIL PROTECTED] wrote: Daniel Brown wrote: I was tempted to flame Tedd just because he's Tedd. ;-P lol. but then the guy was programming Rocks(tm) way before I was born, that has to count for

Re: [PHP] Join question

2007-11-29 Thread Robert Cummings
On Thu, 2007-11-29 at 15:41 -0500, tedd wrote: Hi gang: I'm trying to understand joins, Here's the situation. I have two tables (user1, user2) in one database: The common field between the two tables is username. I want to take fields login and password from user2 and populate the same

Re: [PHP] Join question

2007-11-29 Thread Daniel Brown
On Nov 29, 2007 3:41 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: Hi, Tedd. PS: Side note -- will safe_mode ON cause problems with this? Negative. I can't see any reason to even think so. All safe_mode does is check the UID/GID of the script to make sure it matches that of the target

Re: [PHP] Join question

2007-11-29 Thread Wolf
tedd [EMAIL PROTECTED] wrote: Hi gang: I'm trying to understand joins, Here's the situation. I have two tables (user1, user2) in one database: The common field between the two tables is username. I want to take fields login and password from user2 and populate the same fields

Re: [PHP] Join question

2007-11-29 Thread Robert Cummings
On Thu, 2007-11-29 at 15:47 -0500, Wolf wrote: tedd [EMAIL PROTECTED] wrote: Hi gang: I'm trying to understand joins, Here's the situation. I have two tables (user1, user2) in one database: The common field between the two tables is username. I want to take fields login

Re: [PHP] Join question

2007-11-29 Thread tedd
At 4:11 PM -0500 11/29/07, Robert Cummings wrote: Grep? Loop? A single query will suffice. Also, he doesn't mention wanting to clobber the passwords in table1 when the username does already exist. Cheers, Rob. Table1 passwords and logins are not populated. I want to take those appearing in

Re: [PHP] Join question [solved]

2007-11-29 Thread tedd
Hi gang: I found why the JOIN didn't work for me in this instance, which was I needed to create a third table and JOIN what I needed in that table from the other two. My problem was that I was trying to alter one of the tables in the JOIN. While that might be possible it didn't appear so in

RE: [PHP] WSDL Question

2007-11-29 Thread Shanon Swafford
I build an array of the list. Then nuSOAP helps when converting it to XML but PHP5 can probably do the same thing. The following builds an array of line_items to put on an order. Then inserts that array into another array containing more order data: for ($i = 1; $i = $num_items; $i++) {

Re: [PHP] Join question

2007-11-29 Thread Crayon Shin Chan
On Friday 30 November 2007, Robert Cummings wrote: That's an amusing statement. I took a peek back in time and noticed that in the past 5 months you've only made two on-topic useful posts to the PHP General list-- and they were both for the same thread. If you have that much free time on your

Re: [PHP] Join question

2007-11-29 Thread Robert Cummings
On Fri, 2007-11-30 at 10:21 +0800, Crayon Shin Chan wrote: On Friday 30 November 2007, tedd wrote: I'm trying to understand joins, Ask on a database related list. That's an amusing statement. I took a peek back in time and noticed that in the past 5 months you've only made two on-topic

Re: [PHP] Join question [solved]

2007-11-29 Thread Robert Cummings
On Thu, 2007-11-29 at 18:43 -0500, tedd wrote: Hi gang: I found why the JOIN didn't work for me in this instance, which was I needed to create a third table and JOIN what I needed in that table from the other two. My problem was that I was trying to alter one of the tables in the

Re: [PHP] Join question [solved]

2007-11-29 Thread Chris
Out of curiosity, what SQL server (and version) are you using? I currently have MySQL 5.0.33 on my dev box and I had no problem with the query I gave you. Perhaps it's a version issue. There really shouldn't be a problem updating a table that also occurs in the select query since the select

Re: [PHP] Join question

2007-11-29 Thread Robert Cummings
On Fri, 2007-11-30 at 11:00 +0800, Crayon Shin Chan wrote: On Friday 30 November 2007, Robert Cummings wrote: That's an amusing statement. I took a peek back in time and noticed that in the past 5 months you've only made two on-topic useful posts to the PHP General list-- and they were

Re: [PHP] Join question [solved]

2007-11-29 Thread Robert Cummings
On Fri, 2007-11-30 at 14:00 +1100, Chris wrote: Out of curiosity, what SQL server (and version) are you using? I currently have MySQL 5.0.33 on my dev box and I had no problem with the query I gave you. Perhaps it's a version issue. There really shouldn't be a problem updating a table that

Re: [PHP] Join question

2007-11-29 Thread Crayon Shin Chan
On Friday 30 November 2007, tedd wrote: I'm trying to understand joins, Ask on a database related list. -- Crayon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Join question

2007-11-29 Thread Crayon Shin Chan
On Friday 30 November 2007, Robert Cummings wrote: Or are you saying that one needs to make a lot of on-topic posts to build up credit in order to be able to make off-topic posts? No, I'm merely pointing out the hypocrisy. That would only be true if I had been making off-topic posts. But so

Re: [PHP] Join question

2007-11-29 Thread Robert Cummings
On Fri, 2007-11-30 at 13:49 +0800, Crayon Shin Chan wrote: On Friday 30 November 2007, Robert Cummings wrote: Or are you saying that one needs to make a lot of on-topic posts to build up credit in order to be able to make off-topic posts? No, I'm merely pointing out the hypocrisy.

Re: [PHP] Quick question on data formatting

2007-11-28 Thread Robert Cummings
On Wed, 2007-11-28 at 22:19 -0700, Jon Westcot wrote: Hi all: Since I'm relatively new to PHP, I'm not familiar with all of the shortcuts and efficient ways one could write a routine that handles converting data from one format into another, so I thought I'd ask here for

Re: [PHP] Quick question on data formatting [SOLVED]

2007-11-28 Thread Jon Westcot
Thanks, Rob! I can see that it's going to be important for me to get familiar with the POSIX regular expressions. Jon - Original Message - On Wed, 2007-11-28 at 22:19 -0700, Jon Westcot wrote: Hi all: Since I'm relatively new to PHP, I'm not familiar with all of the shortcuts

Re: [PHP] Quick question on data formatting [SOLVED]

2007-11-28 Thread Robert Cummings
On Wed, 2007-11-28 at 22:47 -0700, Jon Westcot wrote: Thanks, Rob! I can see that it's going to be important for me to get familiar with the POSIX regular expressions. You can use the perl versions too. I just got used to the posix versions a long time ago :). BTW, if you didn't notice I

Re: [PHP] Performance question for table updating

2007-11-27 Thread Andrew Ballard
On Nov 24, 2007 2:32 AM, Jon Westcot [EMAIL PROTECTED] wrote: Hi all: For those who've been following the saga, I'm working on an application that needs to load a data file consisting of approximately 29,000 to 35,000 records in it (and not short ones, either) into several tables.

Re: [PHP] Performance question for table updating

2007-11-25 Thread Chris
Eventually, I wind up with a query similar to: UPDATE table_01 SET field_a = 'New value here', updated=CURDATE() WHERE primary_key=12345 Even though you've solved it one way to work out the problem here would be to change it to a select query (unfortunately mysql can't explain

RE: [PHP] Performance question for table updating

2007-11-24 Thread Andrés Robinet
-Original Message- From: Jon Westcot [mailto:[EMAIL PROTECTED] Sent: Saturday, November 24, 2007 4:32 AM To: PHP General Subject: [PHP] Performance question for table updating Hi all: For those who've been following the saga, I'm working on an application that needs to load

Re: [PHP] Performance question for table updating (SOLVED)

2007-11-24 Thread Jon Westcot
Hi Rob, et al.: - Original Message - From: Andrés Robinet [EMAIL PROTECTED] -Original Message- From: Jon Westcot [mailto:[EMAIL PROTECTED] :: gigantic snip here:: So, long story short (oops -- too late!), what's the concensus among the learned assembly here? Is

RE: [PHP] Performance question for table updating (SOLVED)

2007-11-24 Thread Bastien Koert
Could there be some performance gain by uploading the data to another table and then update / insert via sql? bastien From: [EMAIL PROTECTED] To: php-general@lists.php.net Date: Sat, 24 Nov 2007 04:03:53 -0700 Subject: Re: [PHP] Performance question

Re: [PHP] Basic question - PHP usage of SVG files [SOLVED]

2007-11-24 Thread tedd
At 1:14 PM +0900 11/24/07, Dave M G wrote: Larry, Thanks for your advice. With the XML editor available within PHP, I've made a small script that can extract the point data inside an SVG file, and store them as an array of points. That array can then be used to draw and fill shapes in a

Re: [PHP] Performance question for table updating (SOLVED)

2007-11-24 Thread Robert Cummings
On Sat, 2007-11-24 at 04:03 -0700, Jon Westcot wrote: Moral of the story? Two, really. First, ensure you always reference values in the way most appropriate for their type. Second, don't make your idiocy public by asking stupid questions on a public forum. g What's the quote

Re: [PHP] Basic question - PHP usage of SVG files [SOLVED]

2007-11-23 Thread Dave M G
Larry, Thanks for your advice. With the XML editor available within PHP, I've made a small script that can extract the point data inside an SVG file, and store them as an array of points. That array can then be used to draw and fill shapes in a PNG image. And since they are stored as an

Re: [PHP] Basic question - PHP usage of SVG files  [SOLVED]

2007-11-21 Thread Dave M G
Casey, There is no SVG support in PHP, as far as I know. Thank you. That clears things up. I'll just go with PNGs then. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Basic question - PHP usage of SVG files [SOLVED]

2007-11-21 Thread Larry Garfield
On Wednesday 21 November 2007, Dave M G wrote: Casey, There is no SVG support in PHP, as far as I know. Thank you. That clears things up. I'll just go with PNGs then. I think you missed the point. SVG is just text. It's XML. You can manipulate it with SimpleXML or the DOM API functions

Re: [PHP] Basic question - PHP usage of SVG files

2007-11-21 Thread Dave M G
Larry, Thank you for responding. I think you missed the point. SVG is just text. ... There's no need for SVG support per se, as SimpleXML provides all you need anyway. I did miss the point - thanks for setting me straight. However, I'm still unsure about using SVGs. On the one hand, what

Re: [PHP] Basic question - PHP usage of SVG files

2007-11-21 Thread Larry Garfield
On Wednesday 21 November 2007, Dave M G wrote: Larry, Thank you for responding. I think you missed the point. SVG is just text. ... There's no need for SVG support per se, as SimpleXML provides all you need anyway. I did miss the point - thanks for setting me straight. However, I'm

Re: [PHP] Basic question - PHP usage of SVG files

2007-11-20 Thread Casey
On Nov 20, 2007 7:24 PM, Dave M G [EMAIL PROTECTED] wrote: PHP list, I have some images that are in SVG format. What I want to do with them is manipulate them by resizing and overlaying one on top of the other. I do this frequently with PNG images, and I could first convert these images to

Re: [PHP] Newbie question - current date - time

2007-11-16 Thread Jürgen Wind
my point was: date() doesn't work - it's Date() (at least in Firefox) tedd-2 wrote: At 2:13 PM -0500 11/15/07, Jeremy Mcentire wrote: On Nov 14, 2007, at 4:21 PM, Jürgen Wind wrote: better use Date() in js ... tedd-2 wrote: Current date/time for whom? For your server, use php's date(). For

Re: [PHP] Newbie question - current date - time

2007-11-16 Thread tedd
At 8:21 AM -0800 11/16/07, Jürgen Wind wrote: my point was: date() doesn't work - it's Date() (at least in Firefox) Wow, you really have that capitalization thing down -- you're an impressive Wind. I used small case because this is a php list and I didn't want to confuse anyone with trying

Re: [PHP] Newbie question - current date - time

2007-11-16 Thread Jürgen Wind
tedd-2 wrote: I used small case because this is a php list and I didn't want to confuse anyone with trying to get Date() to work in php. no need to worry, in *php* functions are not case sensitive. cheers Jürgen -- View this message in context:

Re: [PHP] Foreach question

2007-11-16 Thread Jeremy Mcentire
On Nov 15, 2007, at 7:50 PM, Juan Marcelo Rodríguez wrote: 2007/11/15, Philip Thompson [EMAIL PROTECTED]: On Nov 15, 2007 5:12 PM, Juan Marcelo Rodríguez [EMAIL PROTECTED] wrote: Yes, I made a mistake in the first sentence. The code is : [...] foreach ($equipos as $key = $val){ echo trtd;

Re: [PHP] Newbie question - current date - time

2007-11-16 Thread tedd
At 2:13 PM -0500 11/15/07, Jeremy Mcentire wrote: On Nov 14, 2007, at 4:21 PM, Jürgen Wind wrote: better use Date() in js ... tedd-2 wrote: Current date/time for whom? For your server, use php's date(). For the user, use javascript's date(). It's so cool to be multilingual. :-) Cheers, tedd

Re: [PHP] Newbie question - current date - time

2007-11-15 Thread Daniel Brown
On Nov 14, 2007 10:00 PM, Instruct ICC [EMAIL PROTECTED] wrote: Enough about me. I never thought I'd say this in earnest... RTFM Have I become like who I've despised? We all do eventually -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you

Re: [PHP] Newbie question - current date - time

2007-11-15 Thread Jeremy Mcentire
On Nov 14, 2007, at 4:21 PM, Jürgen Wind wrote: better use Date() in js ... tedd-2 wrote: Current date/time for whom? For your server, use php's date(). For the user, use javascript's date(). It's so cool to be multilingual. :-) Cheers, tedd I don't know that that's better. Then, suddenly,

Re: [PHP] Foreach question

2007-11-15 Thread Juan Marcelo Rodríguez
Yes, I made a mistake in the first sentence. The code is : [...] foreach ($equipos as $key = $val){ echo trtd; echo 1 . /tdtd; // I would like to add the counter here reeplacing 1 print input type=\radio\ name=$key value=\l\ / . /tdtd; echo $key . /tdtd; print input type=\radio\ name=$key

Re: [PHP] Foreach question

2007-11-15 Thread Juan Marcelo Rodríguez
2007/11/15, Philip Thompson [EMAIL PROTECTED]: On Nov 15, 2007 5:12 PM, Juan Marcelo Rodríguez [EMAIL PROTECTED] wrote: Yes, I made a mistake in the first sentence. The code is : [...] foreach ($equipos as $key = $val){ echo trtd; echo 1 . /tdtd; // I would like to add the

Re: [PHP] Foreach question (solved)

2007-11-15 Thread Juan Marcelo Rodríguez
Thanks. I solved it using this : $x = 0; foreach ($equipos as $key = $val){ $x = $x + 1; echo trtd; echo $x . /tdtd; 2007/11/15, Michael McGlothlin [EMAIL PROTECTED]: $x = 0; foreach ( $blah as $bleh ) { $x = $x + 1; print $x: $bleh; } HI, I'm working with an associative array, and

Re: [PHP] Foreach question

2007-11-15 Thread Philip Thompson
On Nov 15, 2007 5:12 PM, Juan Marcelo Rodríguez [EMAIL PROTECTED] wrote: Yes, I made a mistake in the first sentence. The code is : [...] foreach ($equipos as $key = $val){ echo trtd; echo 1 . /tdtd; // I would like to add the counter here reeplacing 1 echo trtd.($key+1)./tdtd;

Re: [PHP] Foreach question

2007-11-15 Thread Stut
Juan Marcelo Rodríguez wrote: I'm working with an associative array, and generating its data a form. I use foreach to loops the contents of the array and echo to print the table and the data. Everything goes well, however I would like to add a counter to print the row's number. The question :

Re: [PHP] Foreach question

2007-11-15 Thread Michael McGlothlin
$x = 0; foreach ( $blah as $bleh ) { $x = $x + 1; print $x: $bleh; } HI, I'm working with an associative array, and generating its data a form. I use foreach to loops the contents of the array and echo to print the table and the data. Everything goes well, however I would like to add a counter

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread William Betts
Hello, Use the date function http://us3.php.net/date. Regards, William Betts [EMAIL PROTECTED] wrote: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Robert . Degen
Check out date function. ? echo date(r, time()); ? Prints out nice local time, what you need can be made by changing the r option. Have a look at the manual for alternatives to r liek Y for year, etc... so far - Ursprüngliche Nachricht - Von: [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 12:39 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right function or how to display it

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Jason Pruim
On Nov 14, 2007, at 12:39 PM, [EMAIL PROTECTED] wrote: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right function or how to display it

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Luis Lorenzo - Quadricula
Hi! Look at this: http://es.php.net/manual/es/function.date.php [EMAIL PROTECTED] escribió: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right function or

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread tedd
At 9:39 AM -0800 11/14/07, [EMAIL PROTECTED] wrote: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right function or how to display it

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread [EMAIL PROTECTED]
Thanks Folks, The date function worked great! -- Thanks - RevDave Cool7 @ hosting4days . com [db-lists] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Jon Westcot
Hi: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right function or how to display it http://www.php.net/manual/en/function.getdate.php

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 3:19 PM, Jon Westcot [EMAIL PROTECTED] wrote: Hi: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right function or how

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Jason Pruim
On Nov 14, 2007, at 3:39 PM, Daniel Brown wrote: On Nov 14, 2007 3:19 PM, Jon Westcot [EMAIL PROTECTED] wrote: Hi: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 3:54 PM, Jason Pruim [EMAIL PROTECTED] wrote: [snip] Now... Just exactly what makes you think it was a typo oh Master Brown? [snip] Yeah, keep it up, smartass. I'm on to you ;-P -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Jürgen Wind
better use Date() in js ... tedd-2 wrote: Current date/time for whom? For your server, use php's date(). For the user, use javascript's date(). It's so cool to be multilingual. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com

RE: [PHP] Newbie question - current date - time

2007-11-14 Thread Instruct ICC
Date: Wed, 14 Nov 2007 09:39:19 -0800 From: [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] Newbie question - current date - time Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate

RE: [PHP] Newbie question - current date - time

2007-11-14 Thread tedd
At 7:00 PM -0800 11/14/07, Instruct ICC wrote: But dude, there are many ways to skin a cat. Yeah, but he's not going to like any of them. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Email question

2007-10-31 Thread Andrew Ballard
On 10/31/07, Jake [EMAIL PROTECTED] wrote: What is a =20 at the end of a line in an email? It is a space character when the message is encoded using quoted-printable encoding. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Email question

2007-10-31 Thread Dan Shirah
Couldn't you just use the wordwrap function? Something like this: $my_text = This is a story all about how my life got flipped turned upside down. I'd like to take a minute just sit right there, I'll tell you how I became the Prince of a town called Belaire. $my_wrapped_text = wordwrap($my_text,

Re: [PHP] Security Question

2007-10-17 Thread Richard Heyes
Does anyone know a good way to protect a directory that a php script NEEDS to write too? What I'm doing now: 1. create a directory manually myDir 2. chmod 777 myDir 3. password protect the directory with htaccess Is this the best way, or is there something better? You could chmod the

Re: [PHP] Security Question

2007-10-17 Thread Jim Lucas
Andrew Peterson wrote: Does anyone know a good way to protect a directory that a php script NEEDS to write too? What I'm doing now: 1. create a directory manually myDir 2. chmod 777 myDir 3. password protect the directory with htaccess Is this the best way, or is there something better?

Re: [PHP] Smarty Question

2007-10-01 Thread Stut
Shahrzad wrote: IRIran.netHi, I want to replace a php variable with a javascript variable inside script type=text/javascript tag in a TPL file(smarty) , how can I do that? //what in my mind is , but this code is wrong /// var Country =

Re: [PHP] opcode question

2007-09-05 Thread Rob Desbois
Hi, I believe this would be a bug - report it at http://bugs.php.net/ with the exact error output and a minimal example script. --rob On 9/5/07, Frank Höger [EMAIL PROTECTED] wrote: Hello, I recently came across an invalid opcode 137/8/8 error. I couldn't find anything on the net regarding

Re: [PHP] opcode question

2007-09-05 Thread Robert Cummings
On Wed, 2007-09-05 at 14:15 +0200, Frank Höger wrote: Hello, I recently came across an invalid opcode 137/8/8 error. I couldn't find anything on the net regarding this specific error. Where can I find documentation concerning opcodes and particularly this error? I took your exact quoted

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Daniel Brown
On 8/16/07, Jason Pruim [EMAIL PROTECTED] wrote: Hey Everyone, Is it possible to have variables affect the database results of an included php page in a shtml page? Let me try and clear that up... index.shtml?order=a that does not resort the database results index.php?order=a -

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Jason Pruim
On Aug 16, 2007, at 10:34 AM, Daniel Brown wrote: On 8/16/07, Jason Pruim [EMAIL PROTECTED] wrote: Hey Everyone, Is it possible to have variables affect the database results of an included php page in a shtml page? Let me try and clear that up... index.shtml?order=a that does not

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Daniel Brown
On 8/16/07, Jason Pruim [EMAIL PROTECTED] wrote: On Aug 16, 2007, at 10:34 AM, Daniel Brown wrote: On 8/16/07, Jason Pruim [EMAIL PROTECTED] wrote: Hey Everyone, Is it possible to have variables affect the database results of an included php page in a shtml page? Let me try and clear

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Jason Pruim
On Aug 16, 2007, at 11:31 AM, Daniel Brown wrote: Unless I use sessions maybe? Could I write the sort order into a session variable and have that change? Or did I completely misunderstand what sessions are used for? :) You could definitely do it with sessions if you wanted, but you

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Daniel Brown
On 8/16/07, Jason Pruim [EMAIL PROTECTED] wrote: On Aug 16, 2007, at 11:31 AM, Daniel Brown wrote: Unless I use sessions maybe? Could I write the sort order into a session variable and have that change? Or did I completely misunderstand what sessions are used for? :) You

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Jason Pruim
On Aug 16, 2007, at 11:56 AM, Daniel Brown wrote: On 8/16/07, Jason Pruim [EMAIL PROTECTED] wrote: On Aug 16, 2007, at 11:31 AM, Daniel Brown wrote: Unless I use sessions maybe? Could I write the sort order into a session variable and have that change? Or did I completely misunderstand

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Daniel Brown
On 8/16/07, Jason Pruim [EMAIL PROTECTED] wrote: On Aug 16, 2007, at 11:56 AM, Daniel Brown wrote: On 8/16/07, Jason Pruim [EMAIL PROTECTED] wrote: On Aug 16, 2007, at 11:31 AM, Daniel Brown wrote: Unless I use sessions maybe? Could I write the sort order into a session variable

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread brian
Jason Pruim wrote: On Aug 16, 2007, at 11:56 AM, Daniel Brown wrote: Otherwise, is there any reason you're not just doing something like the following? ? include('templates/header.html'); // Data goes here include('templates/footer.html'); ? Because I came as a HTML

Re: [PHP] QuickTime question

2007-08-15 Thread Eric Butera
On 8/15/07, tedd [EMAIL PROTECTED] wrote: Hi gang: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the page instead of going to another page? I know that I could use phpclasses, but that seems an overkill. I think something like this -- $file_source =

Re: [PHP] QuickTime question

2007-08-15 Thread Stut
tedd wrote: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the page instead of going to another page? I know that I could use phpclasses, but that seems an overkill. I think something like this -- $file_source = 'ice-fishing.mov'; $size = filesize($file_source,,);

Re: [PHP] QuickTime question

2007-08-15 Thread brian
tedd wrote: Hi gang: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the page instead of going to another page? I know that I could use phpclasses, but that seems an overkill. I think something like this -- $file_source = 'ice-fishing.mov'; $size =

Re: [PHP] QuickTime question

2007-08-15 Thread tedd
At 4:32 PM +0100 8/15/07, Stut wrote: tedd wrote: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the page instead of going to another page? I know that I could use phpclasses, but that seems an overkill. I think something like this -- $file_source =

Re: [PHP] QuickTime question

2007-08-15 Thread Michael Preslar
I'm not sure if this would be of help or not, but have you tried setting 'Content-disposition: inline' in the header? On 8/15/07, tedd [EMAIL PROTECTED] wrote: At 4:32 PM +0100 8/15/07, Stut wrote: tedd wrote: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the

Re: [PHP] QuickTime question

2007-08-15 Thread Stut
tedd wrote: At 4:32 PM +0100 8/15/07, Stut wrote: tedd wrote: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the page instead of going to another page? I know that I could use phpclasses, but that seems an overkill. I think something like this -- $file_source =

Re: [PHP] QuickTime question

2007-08-15 Thread tedd
At 8:54 PM +0100 8/15/07, Stut wrote: tedd wrote: At 4:32 PM +0100 8/15/07, Stut wrote: tedd wrote: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the page instead of going to another page? I know that I could use phpclasses, but that seems an overkill. I think

RE: [PHP] QuickTime question

2007-08-15 Thread Bastien Koert
Can't you just embed embed the file in the page? object classid=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B codebase=http://www.apple.com/qtactivex/qtplugin.cab; height=256 width=320 param name=src value=?php echo ./vids/$file ? param

RE: [PHP] addSlashes Question

2007-08-07 Thread Richard Lynch
On Wed, August 1, 2007 3:27 pm, Jay Blanchard wrote: [snip] $first = '.addslashes($_POST['firstname']).'; $last = '.addslashes($_POST['lastname']).'; $email = '.addslashes($_POST['email']).'; $address = '.addslashes($_POST['address']).'; $city =

RE: [PHP] addSlashes Question

2007-08-01 Thread Jay Blanchard
[snip] $first = '.addslashes($_POST['firstname']).'; $last = '.addslashes($_POST['lastname']).'; $email = '.addslashes($_POST['email']).'; $address = '.addslashes($_POST['address']).'; $city = '.addslashes($_POST['city']).'; $state = '.addslashes($_POST['state']).';

Re: [PHP] addSlashes Question

2007-08-01 Thread Jim Lucas
CK wrote: Hi, Engaged in cleanup project, attempting to understand the uncommented decisions of predecessors. Inserting the following contact form values into a DB: $first = '.addslashes($_POST['firstname']).'; $last = '.addslashes($_POST['lastname']).'; $email =

Re: [PHP] addSlashes Question

2007-08-01 Thread Robert Cummings
On Wed, 2007-08-01 at 13:20 -0700, CK wrote: Hi, Engaged in cleanup project, attempting to understand the uncommented decisions of predecessors. Inserting the following contact form values into a DB: $first = '.addslashes($_POST['firstname']).'; $last =

Re: [PHP] Array Question

2007-07-17 Thread kvigor
Thanks for all the input. You've all been pretty informative. Sorry of delayed response to help but was busy. You all are appreciated. Stut [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Richard Lynch wrote: On Wed, July 11, 2007 4:16 pm, Robert Cummings wrote: But I'd have to

Re: [PHP] Array Question

2007-07-14 Thread Robert Cummings
On Sat, 2007-07-14 at 00:55 -0500, Richard Lynch wrote: On Fri, July 13, 2007 2:15 am, Richard Lynch wrote: On Thu, July 12, 2007 8:29 am, Robert Cummings wrote: Hmmm, I thought using an explicit cast was very self explanatory -- especially when the name of the cast is array. Maybe I'm

Re: [PHP] Array Question

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 8:29 am, Robert Cummings wrote: Hmmm, I thought using an explicit cast was very self explanatory -- especially when the name of the cast is array. Maybe I'm alone in that thought. I mean if you convert a scalar to an array what do you expect to get? An array with the

Re: [PHP] Array Question

2007-07-13 Thread Robert Cummings
On Fri, 2007-07-13 at 02:15 -0500, Richard Lynch wrote: On Thu, July 12, 2007 8:29 am, Robert Cummings wrote: Hmmm, I thought using an explicit cast was very self explanatory -- especially when the name of the cast is array. Maybe I'm alone in that thought. I mean if you convert a scalar

Re: [PHP] Array Question

2007-07-13 Thread Richard Lynch
On Fri, July 13, 2007 2:15 am, Richard Lynch wrote: On Thu, July 12, 2007 8:29 am, Robert Cummings wrote: Hmmm, I thought using an explicit cast was very self explanatory -- especially when the name of the cast is array. Maybe I'm alone in that thought. I mean if you convert a scalar to an

Re: [PHP] Array Question

2007-07-12 Thread Stut
Richard Lynch wrote: On Wed, July 11, 2007 4:16 pm, Robert Cummings wrote: But I'd have to say that the intent is not all that clear, really, and I'd be leery of this feature, personally. I wouldn't be leery at all. It's been around for a very long time and it's documented:

Re: [PHP] Array Question

2007-07-12 Thread Robert Cummings
On Thu, 2007-07-12 at 09:58 +0100, Stut wrote: Richard Lynch wrote: On Wed, July 11, 2007 4:16 pm, Robert Cummings wrote: But I'd have to say that the intent is not all that clear, really, and I'd be leery of this feature, personally. I wouldn't be leery at all. It's been around for a

Re: [PHP] Array Question

2007-07-11 Thread Robin Vickery
On 11/07/07, kvigor [EMAIL PROTECTED] wrote: Is there a php function similar to in_array that can detect if a partial value is in an array value or not: e.g. $var1 = big horse;$var2 = small yellow;$var3 = red hydrant; $theArray = array(big blue horse, small yellow bird, giant red

Re: [PHP] Array Question

2007-07-11 Thread kvigor
Thanks, I've seen the light by your code. Robin Vickery [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 11/07/07, kvigor [EMAIL PROTECTED] wrote: Is there a php function similar to in_array that can detect if a partial value is in an array value or not: e.g. $var1 = big

Re: [PHP] Array Question

2007-07-11 Thread Robert Cummings
On Wed, 2007-07-11 at 09:46 +0100, Robin Vickery wrote: On 11/07/07, kvigor [EMAIL PROTECTED] wrote: Is there a php function similar to in_array that can detect if a partial value is in an array value or not: e.g. $var1 = big horse;$var2 = small yellow;$var3 = red hydrant;

Re: [PHP] Array Question

2007-07-11 Thread Stut
Robert Cummings wrote: On Wed, 2007-07-11 at 09:46 +0100, Robin Vickery wrote: On 11/07/07, kvigor [EMAIL PROTECTED] wrote: Is there a php function similar to in_array that can detect if a partial value is in an array value or not: e.g. $var1 = big horse;$var2 = small yellow;$var3

<    4   5   6   7   8   9   10   11   12   13   >