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
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
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):
>
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
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
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
) * ($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
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
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
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
..
//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
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,
> &
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
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'
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
[
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
31 matches
Mail list logo