[PHP] Turning string into a table

2003-07-13 Thread zavaboy
idea how to do that? I want it to work correctly no matter how many rows and columns there are. -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] A MySQL question

2003-07-14 Thread zavaboy
can I remove only 1 Toothbrush from user 582-668243? I just want the query... I've been trying to find it out for a few hours now... Thanks in advance! -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A MySQL question

2003-07-14 Thread zavaboy
Ok, I added a primary key. I figured it out and I have it working... Thanks! "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- zavaboy <[EMAIL PROTECTED]> wrote: > > Lets say the table contains the following rows (user | item): >

[PHP] Changing numbers

2003-07-21 Thread zavaboy
I have the following numbers: 12.400 666.75 23 369.2 3.234 How can I make them have at least 2 decimal places? So, they will output: 12.40 666.75 23.00 269.20 3.234 Thanks in advance! -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Changing numbers

2003-07-21 Thread zavaboy
What about if I had 2.856 that function will make it 2.86. "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] How can I make them have at least 2 decimal places? [/snip] RTFM at http://www.php.net/number_format HTH! -- PHP General Mailing List (http://www.php

Re: [PHP] Changing numbers

2003-07-21 Thread zavaboy
p://www.php.net/manual/en/function.round.php > > Zavaboy wrote: > > > What about if I had 2.856 that function will make it 2.86. > > > > > > "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > [snip] > > How ca

[PHP] A long float number.

2003-08-01 Thread zavaboy
) * ($iDia[$d] + $oDia[$d])) / 32)), 6); Thanks in advance! -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: A long float number.

2003-08-01 Thread zavaboy
Thanks! number_format() fixed it! "Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Keeping it on one line doesn't affect the calculations (as it > shouldn't). Try using either sprintf() or number_format() for this > purpose (the latter is generally preferred, but I

[PHP] Removing empty array values.

2003-08-18 Thread zavaboy
How do I remove empty array values? -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] breaking up a string (every N chars)

2003-05-27 Thread zavaboy
tring, 3, "\r\n"))); > > > On Monday 26 May 2003 06:16 pm, zavaboy wrote: > > Hi, How can I break a string every N (eg: 3) characters? > > > > //Suppose I have a string... > > $String = "001102203304405"; > > //Now, how do I break this string

[PHP] Help with eval()

2003-05-29 Thread zavaboy
.. //for ($i = $aNum; $i <= $bNum; ) { i if ($Sort == "Up") { $i++; } else { $i-- } Any idea how to make it work right? - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with eval()

2003-05-30 Thread zavaboy
Umm, have you tested it? It didn't work for me... "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > for ($i = $aNum; eval ('return $i ' . $do . ' $bNum'); ) > > > > zavaboy wrote: > > >Hey, > &

Re: [PHP] Help with eval()

2003-05-30 Thread zavaboy
I get a infinite loop and "parse error, unexpected $"... "David Grant" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > zavaboy wrote: > > > Umm, have you tested it? It didn't work for me... > > > > > > "Marek Kilimaj

Re: [PHP] Help with eval()

2003-05-30 Thread zavaboy
to you, I don't know what you want to do whit it > > Marek Kilimajer wrote: > > > for ($i = $aNum; eval ('return $i ' . $do . ' $bNum'); ) > > > > > > > > zavaboy wrote: > > > >> Hey, > >> > >> I'

[PHP] UBB to HTML

2003-06-02 Thread zavaboy
How can I strip ALL HTML tags, then turn UBB code to HTML. And I also want to know how to turn the HTML back to UBB? - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Text file breaking!

2003-06-05 Thread zavaboy
replace("\n", "", $string); then, I put the string in a txt file... and here's what I see in the text file: 1 22 333 instead of: 122333 How can I make it that way? Thanks in advance! -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List

[PHP] Re: Text file breaking!

2003-06-05 Thread zavaboy
ereas the second will > keep them (It might be becuase of my old php version [4.06]?) > > > "Zavaboy" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Ok, I don't get it... I put a string to one line ( $string = > > str_replac

[PHP] How do I delete a mySQL table?

2003-06-16 Thread zavaboy
How do I delete a mySQL table? (Just what's in the subject) -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do I delete a mySQL table?

2003-06-16 Thread zavaboy
Thanks! "David Nicholson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, This is a reply to an e-mail that you wrote on Mon, 16 Jun 2003 at 22:22, lines prefixed by '>' were originally written by you. > How do I delete a mySQL table? (Just wh

[PHP] mySQL: Rows and columns

2003-06-18 Thread zavaboy
I know this is more of a mySQL question but, how do I delete and add rows and columns? -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Setting execution time for a loop

2003-09-09 Thread zavaboy
without a error? -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: maillist php manger/interface

2003-09-09 Thread zavaboy
I have been thinking on developing one for some time now. I can make one for free for you, I also have a friend that wants one too. It may take me a week or two, when do you need it? If you're willing to wait 3 weeks max, I can make it for free. I can even put it in your site if you want. I'm goin

Re: [PHP] Setting execution time for a loop

2003-09-10 Thread zavaboy
t want it to last 30 seconds and a error, I want 3 seconds max and no error. "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote zavaboy ([EMAIL PROTECTED]): > > How do I set execution time for a for() loop? > > Like I have a lo

Re: [PHP] Setting execution time for a loop

2003-09-10 Thread zavaboy
if I wait untill $sDate is zero, it'll be in 2000. I have $Date based on the current date, like to day is: 03252 03 is the year 252 is the day of the year. "Mike Ford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10 September 2003 11:26, zavaboy con

Re: [PHP] Setting execution time for a loop

2003-09-10 Thread zavaboy
Ok, I may be a little bad at telling people what exactly I want. Probably I should try and figure this out for myself, I'm good at that! :D "Mike Ford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10 September 2003 12:14, zavaboy contributed these pear

[PHP] Can I run scripts on server?

2003-09-23 Thread zavaboy
Is there a way to have a PHP script run on the server? For example, I want to run a script to erase old database fields at 12:00 AM server time without any user interaction, how would I do that? -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] Can I run scripts on server?

2003-09-23 Thread zavaboy
Ok, thanks! "Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > zavaboy wrote: > > >Is there a way to have a PHP script run on the server? For example, I want > >to run a script to erase old database fields at 12:00 AM server time wi

[PHP] Getting the FULL path

2003-10-02 Thread zavaboy
How do I get my FULL path... I made a web-based installer and it uses a path. Ok, my path to where I need it is: /home/jimbug/public_html/zavaboy/phptest/ZML Using dirname(): /phptest/ZML Why is that? How can I get PHP to output '/home/jimbug/public_html/zavaboy/phptest/ZML' aut

Re: [PHP] Getting the FULL path

2003-10-02 Thread zavaboy
Ok, thanks! $_SERVER['DOCUMENT_ROOT'].dirname($PHP_SELF) was just what I wanted! "J Morton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > $_SERVER['SCRIPT_FILENAME'] or $_SERVER['DOCUMENT_ROOT'] > > Justin > > zavaboy

[PHP] Changing permissions

2003-10-18 Thread zavaboy
Ok, I have a installer that only works if the directory that's being installed to has public writing permissions. I tried chmod() on the directory, but I get a error. How can I make it so my installer can write in a directory with the incorrect writing permissions? Thanks! -- - Zavaboy [

Re: [PHP] Changing permissions

2003-10-19 Thread zavaboy
How do I run my installer as root? "Eugene Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, Oct 18, 2003 at 10:28:49PM -0400, zavaboy wrote: > : > : Ok, I have a installer that only works if the directory that's being > : installed to