[PHP] Fwd: can you help me ??

2005-03-17 Thread Wahyu SP
wahyu sp malang indonesia Akses Internet TELKOMNet-Instan beri Diskon s.d. 50 % khusus untuk wilayah Jawa Timur. Informasi selengkapnya di www.telkomnetinstan.com atau hub 0800-1-INSTAN (467826

[PHP] Displaying MySQL data inside of a table

2003-07-28 Thread SP Computing
inside of a table like this: table border=1 cellpadding=5 tr tdIP Address #1/td tdIP Address #2/td tdIP Address #3/td And so on... /tr /table How do I go about acheiving this? TIA, SP Computing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Weird preg problem

2002-07-04 Thread SP
Thanks Miguel it works now! $str = abcA; if (preg_match('/^[a-z]*$/', $str)) echo The string '$str' contains only lower-case letters.; -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: July 4, 2002 2:29 AM To: SP Cc: [EMAIL PROTECTED] Subject: Re: [PHP

RE: [PHP] Re: PHP: Script Security: Best coding practices

2002-07-04 Thread SP
I thought it was a good site. I was reading up on the security bugs found and now I know what not to do. -Original Message- From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]] Sent: July 4, 2002 2:41 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP: Script Security: Best coding

RE: [PHP] Re: Weird preg problem

2002-07-04 Thread SP
: 4935386 - msn: see email One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/ Sp [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi I am trying to check if a word contains only capital letters. For some reason it's not working. The below

[PHP] Weird preg problem

2002-07-03 Thread SP
Hi I am trying to check if a word contains only capital letters. For some reason it's not working. The below example is checking the word weird to see if it's all capital letters but it's saying it's matches. I've tried checking for only lower case letters with WEIRD and it's not working there

RE: [PHP] pop-up windows

2002-06-30 Thread SP
Perhaps we could agree on a standard response when someone asks about doing javascript in php. Then when someone asks that question, the first one to send out that canned response wins 1 php credit. John and Jason would be php millionaires by the year out I think. -Original Message-

RE: [PHP] Seperating presentation from logic

2002-06-27 Thread SP
: June 27, 2002 12:39 AM To: 'SP'; 'Jean-Christian Imbeault'; [EMAIL PROTECTED] Subject: RE: [PHP] Seperating presentation from logic There are a ton of template systems. Look here for performance benchmarks: http://www.phpinsider.com/benchmarks_phemplate Unfortunately pattemplate isn't tested

RE: [PHP] More on removing item from cart

2002-06-27 Thread SP
Anytime I use arrays I use what John suggested but add pre/pre around it. If you do that then the array becomes very clear. echo pre, print_r($_SESSION), /pre; -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: June 27, 2002 12:44 AM To: [EMAIL PROTECTED] Subject:

RE: [PHP] Seperating presentation from logic

2002-06-27 Thread SP
I can only talk about smarty but the designers can use as little or as much of the features in the template. For example: Typing {$app_version} in an ordinary html file could display Greatest Application version 3.3. If your programmer changes the value to Greatest Application version 4.0, the

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread SP
OO is slower then procedural. You can test that out yourself or look at this article where the guy did a very basic test. Maybe they will fix the speed problem by the time php5 comes around. http://www.phpbeginner.com/columns/demitrious/objects/8 -Original Message- From: Kondwani

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread SP
]] Sent: June 27, 2002 1:34 PM To: SP; Kondwani Spike Mkandawire; [EMAIL PROTECTED] Subject: Re: [PHP] Re: PHP and OOP I've tested thecode and there is what i've got Proceduraltook 1.24408602715 seconds OOtook 1.24240803719 seconds Here is the code. Test it by yourself ?phpfunction getmicrotime

RE: [PHP] Seperating presentation from logic

2002-06-25 Thread SP
I recommend http://smarty.php.net for seperating presentation from logic. It's one of the best template systems currently. It worked out of the box for me but it took me like the long weekend to figure out some of the config folders. It does your standard variable substitution {$bgcolor} but

RE: [PHP] Seperating presentation from logic

2002-06-25 Thread SP
There are a ton of template systems. Look here for performance benchmarks: http://www.phpinsider.com/benchmarks_phemplate Unfortunately pattemplate isn't tested so I don't know how it rates. -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: June 25, 2002 12:02 PM

RE: [PHP] Time Delay using phpscript

2002-06-24 Thread SP
Take a look at this page, it uses flush to stagger the results as php processes it. pretty cool http://www.massassi.com/bTemplate/benchmarks/benchmark_var_assign.php?i=50 -Original Message- From: Uma Shankari T. [mailto:[EMAIL PROTECTED]] Sent: June 23, 2002 11:14 PM To: PHP Subject:

RE: [PHP] newbie on security

2002-06-24 Thread SP
The guy behind the popular free php accelerator (http://www.php-accelerator.co.uk) is doing an encoder (http://www.php-encoder.com). It's not launched yet so you'll have to wait a bit. -Original Message- From: Craig Williams [mailto:[EMAIL PROTECTED]] Sent: June 24, 2002 7:39 PM To:

RE: [PHP] Anyone have slides for an Intro to PHP Class?

2002-06-22 Thread SP
Here's a bunch of slide shows http://conf.php.net/ -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: June 22, 2002 2:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Anyone have slides for an Intro to PHP Class? Does anyone have a presentation that I could use for an

RE: [PHP] Database Abstraction Suite

2002-06-13 Thread SP
Hi David I am using adodb for my database abstraction http://php.weblogs.com/adodb I got it up and running in no time. Just go through this manual http://php.weblogs.com/ADOdb_manual or this tutorial http://php.weblogs.com/adodb_tutorial. It has a RecordCount since some database don't return

RE: [PHP] tutorials

2002-06-12 Thread SP
Here are some tutorials: http://www.devshed.com/Server_Side/PHP/ http://www.phpbuilder.com/ http://www.phpdeveloper.org/tutorial.php -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: June 12, 2002 4:06 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] tutorials im

RE: [PHP] e-commerce example

2002-06-08 Thread SP
try this link http://www.devshed.com/Server_Side/PHP/Commerce -Original Message- From: savaidis [mailto:[EMAIL PROTECTED]] Sent: June 7, 2002 11:59 PM To: [EMAIL PROTECTED] Subject: [PHP] e-commerce example I'm looking for e-commerce example (PHP+MySQL) so I don't start from zero

RE: [PHP] multisite hit counter, includin session statistics

2002-06-05 Thread SP
I'm guessing you could just add as many variables you want to collect at the end of the counter.php script. Does that help? img src=http://www.my.com/counter.php?site=0011PHPSE SSID=lkjasfoia99sd9asfdsaf9 -Original Message- From: Martin Smetak [mailto:[EMAIL PROTECTED]] Sent: June

RE: [PHP] Cronjob security

2002-06-04 Thread SP
Or you could do this to make the page only accessable to you. http://www.mysite.com/cronpage.php?secretpassword= iud88383 -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: June 4, 2002 4:45 AM To: 'Edgard Berendsen'; [EMAIL PROTECTED] Subject: RE: [PHP] Cronjob

RE: [PHP] Intermediate Searching... screen.

2002-05-28 Thread SP
Vbulletin does this for their search. Anyone know how they do it? http://www.vbulletin.com/forum/search.php -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: May 28, 2002 2:36 PM To: Jeff Bearer; Php-General (E-mail) Subject: Re: [PHP] Intermediate Searching...

RE: [PHP] Efficient PHP

2002-05-28 Thread SP
Here's an article you might want to read http://phplens.com/lens/php-book/optimizing-debugg ing-php.php -Original Message- From: Ed Gorski [mailto:[EMAIL PROTECTED]] Sent: May 28, 2002 9:46 AM To: [EMAIL PROTECTED] Subject: [PHP] Efficient PHP Anyone know any good links on

RE: [PHP] PHP and JavaScript

2002-05-26 Thread SP
It worked for me, what error are you getting? In the other.html, did you have this? html head title/title script language=JavaScript src=script.php/script /head body /body /html -Original Message- From: mp [mailto:[EMAIL PROTECTED]] Sent: May 26, 2002 3:05 AM To:

RE: [PHP] PHP script

2002-05-25 Thread SP
I'm not an expert but that doesn't sound like it's possible. I mean if you could upload files and chmod them on a remote server you would have some serious security issues. The only thing I can think of is you could upload files to your remote datebase. -Original Message- From: r

RE: [PHP] PHP script

2002-05-25 Thread SP
; -Original Message- From: r [mailto:[EMAIL PROTECTED]] Sent: May 25, 2002 10:03 PM To: SP Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP script Hey there, Guess you too are a newbie, anyway, have been doing what you think is impossible for years using perl and servlets without any problems, And I

RE: [PHP] bulletin board question...

2002-05-25 Thread SP
You can make up your own tags by just adding more things to be parsed. EXAMPLE: $text = Look at [b]this[/b] website ...; echo $text; custom_tags($text); echo $text; function custom_tags($text) { /* converts special tags into the html counterpart * [b]text[/b] - bold text * [i]text[/i] -

RE: [PHP] gmtime?

2002-05-24 Thread SP
Did you see gmdate()? http://www.php.net/manual/en/function.gmdate.php -Original Message- From: Jens Lehmann [mailto:[EMAIL PROTECTED]] Sent: May 24, 2002 2:52 PM To: [EMAIL PROTECTED] Subject: [PHP] gmtime? Any reasons why there's no gmtime()-function in PHP? I'd like to hear your

RE: [PHP] adjusting time() to correct for time zones

2002-05-24 Thread SP
Baba told me about his time zone class in pear just recently. http://pear.php.net/package-info.php?pacid=57 -Original Message- From: John Hughes [mailto:[EMAIL PROTECTED]] Sent: May 24, 2002 4:45 PM To: Miguel Cruz; [EMAIL PROTECTED] Subject: Re: [PHP] adjusting time() to correct for

RE: [PHP] timezone problem

2002-05-21 Thread SP
Hi Baba I've been trying to get as much info on this as possible and you are right it is quite messy. Thanks for that link, I'm going to take a look at your code. -Original Message- From: Baba Buehler [mailto:[EMAIL PROTECTED]] Sent: May 21, 2002 5:37 AM To: [EMAIL PROTECTED] Subject:

RE: [PHP] timezone problem

2002-05-21 Thread SP
with all the timezones and offsets. there are duplicate offsets but since people know their TZ as different things depending where they live. I can do a dump if people would like Chris Riordan http://www.hal-9000.net - Original Message - From: SP [EMAIL PROTECTED] To: Baba Buehler [EMAIL

[PHP] gmdate

2002-05-20 Thread SP
I am using gmdate to get the GMT timezone and it's working but how does it know what timezone my server is to make the time adjustment? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.361 / Virus Database: 199 - Release Date:

[PHP] gmdate question

2002-05-20 Thread SP
I am using gmdate to get the GMT timezone and it's working but how does it know what timezone my server is to make the time adjustment? Where's the setting for this? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.361 / Virus

[PHP] test

2002-05-20 Thread SP
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.361 / Virus Database: 199 - Release Date: 07/05/02 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] timezone problem

2002-05-20 Thread SP
I am trying to convert date/times to different timezones using putenv but I am having problems using the right TZ names. I am trying the zones I found here http://fuck.org/~ryan/squirrel/timezone/timezones. php but it seems the only ones that work are EST5EDT, CST6CDT, MST7MDT, PST8PDT and GMT.

RE: [PHP] timezone problem

2002-05-20 Thread SP
and mountain time for now. also, do you know if i store all my dates as GMT then when i convert to different timezones using putenv, will this take into account the daylight savings? -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: May 20, 2002 1:27 PM To: SP Cc: [EMAIL

RE: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread SP
Hi Navid Don't you have to serialize it to put it in sessions? -Original Message- From: Navid Y. [mailto:[EMAIL PROTECTED]] Sent: May 18, 2002 2:26 PM To: [EMAIL PROTECTED] Subject: [PHP] passing ARRAYs through GET strings Hello :) Can anyone suggest of another way, an easier way,

RE: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread SP
($_SESSION['myarray']); -Original Message- From: Navid Y. [mailto:[EMAIL PROTECTED]] Sent: May 18, 2002 2:52 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] passing ARRAYs through GET strings Thanks SP and Richard, Well, I tested it and it works fine with sessions, without serializing

RE: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread SP
variable through. Thanks for your help and patience :) -Original Message- From: SP [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 18, 2002 2:27 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] passing ARRAYs through GET strings Okay let me clarify, if I had an array like

RE: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread SP
: Navid Y. [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Sat, 18 May 2002 13:51:38 -0500 To: [EMAIL PROTECTED] Subject: RE: [PHP] passing ARRAYs through GET strings Thanks SP and Richard, Well, I tested it and it works fine with sessions, without serializing it. The only problem

RE: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread SP
Thanks Rick, that's what I thinking. Thought I was missing something. -Original Message- From: Richard Baskett [mailto:[EMAIL PROTECTED]] Sent: May 18, 2002 4:49 PM To: SP; PHP General Subject: Re: [PHP] passing ARRAYs through GET strings Well you can serialize an array using

RE: [PHP] Augmenting an old date

2002-05-18 Thread SP
Here's a nice article all about dates http://www.phpbuilder.com/columns/akent2610.ph p3 On page 6 of that article it shows a function for adding years, months, days ... to a date. function DateAdd ($interval, $number, $date) { $date_time_array = getdate($date); $hours =

RE: [PHP] Augmenting an old date

2002-05-18 Thread SP
Wow this is a pretty cool function. I was playing with it and you can add like +30 days + 99 seconds together and it works. -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED]] Sent: May 19, 2002 1:07 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Augmenting an

RE: [PHP] Genus who came up with Self Destruct Code Copy Pro tection

2002-05-14 Thread SP
of calls to PHP built-in functions and work outward from there. 1 minute or so per 25 lines of working code. Honestly, it's not a big deal. miguel On Mon, 13 May 2002, SP wrote: As an example, someone provided this link on the PHP Obfuscator http://pobs.mywalhalla.net and I'm just quoting what

RE: [PHP] Cool PHP Tricks/Features ?

2002-05-14 Thread SP
Well if his normal page is 100k and he can cut the size down to 50k with gzip then instead of having a monthly transfer of 100 GB for example, he would only be paying for 50 GB. Seems like it's useful for extremely large sites. -Original Message- From: John Holmes [mailto:[EMAIL

RE: [PHP] Re: Referrals

2002-05-13 Thread SP
I haven't looked so don't know how they did it but you can look at the source for www.oscommerce.com to see how it was done or someone more familar with the project could enlighten us. Here's their demo site, you can see the Customers who bought ... at the bottom

RE: [PHP] Genus who came up with Self Destruct Code Copy Pro tection

2002-05-13 Thread SP
Everyone is arguing that these encoders can be cracked. Does anyone know of one, have you done it yourself? How long did it take? I mean I'm not going to leave my door unlocked cuz someone can pick it open. -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: May 13,

RE: [PHP] Genus who came up with Self Destruct Code Copy Pro tection

2002-05-13 Thread SP
should be looking for a new set of clients. miguel On Mon, 13 May 2002, SP wrote: Everyone is arguing that these encoders can be cracked. Does anyone know of one, have you done it yourself? How long did it take? I mean I'm not going to leave my door unlocked cuz someone can pick it open

RE: [PHP] E-mail Confirmation script?

2002-05-12 Thread SP
I would suggest just sending them an email with a link like this and telling them to click on it to confirm their membership. http://www.mysite.com/confirm.php?uniqueid=2i3k238 s9sd0s99d The confirm.php page would look up the uniqueid and try to find it in your database. If it's there then

RE: [PHP] E-mail Confirmation script?

2002-05-12 Thread SP
Just make sure the url fits on one line in the email which mine doesn't. -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: May 12, 2002 5:06 PM To: SP Cc: [EMAIL PROTECTED] Subject: Re: [PHP] E-mail Confirmation script? Thanks, Now why didn't that ever occur to me

RE: [PHP] Genus who came up with Self Destruct Code Copy Pro tection

2002-05-10 Thread SP
So I should buy a commerical product from zend to protect my code but since my code will be reversed engineered anyways then what's the point of buying from zend? -Original Message- From: David Freeman [mailto:[EMAIL PROTECTED]] Sent: May 9, 2002 10:16 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] Genus who came up with Self Destruct Code Copy Pro tection

2002-05-09 Thread SP
Obviously most coders are in the middle ground. They are not writing the killer app of all time but is of significant value. I don't know what people on here are charging but I can't add $2880 a year to my overhead for the zend encoder. Plus add $1875 per cpu for the zend accelerator for each

RE: [PHP] PHP compared to JSP

2002-05-05 Thread SP
Does anyone think caching should be built into php for it to edge out the competition? (like what smarty is doing) I mean a static page will always serve up faster then a dynamic one. Also even if you are getting 100 pages/sec on your database, you could cache it for 5 seconds and you save

RE: [PHP] PRIMARY KEY vs. INDEX

2002-05-02 Thread SP
Indexes are good but the only thing you have to look out for is not over using it. So don't index all your fields because it will make your database a lot bigger and add more time when inserting and updating. -Original Message- From: Dan Hardiker [mailto:[EMAIL PROTECTED]] Sent: May 2,

RE: [PHP] PRIMARY KEY vs. INDEX

2002-05-02 Thread SP
Yeah this isn't specifically about php but most people use databases so I think this is relevant. I like it when we have discussions like these instead of someone posting up a bunch of code and asking to find a missing ' or }. -Original Message- From: Jason Wong [mailto:[EMAIL

RE: [PHP] PRIMARY KEY vs. INDEX

2002-05-02 Thread SP
True. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: May 2, 2002 3:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] PRIMARY KEY vs. INDEX On Friday 03 May 2002 03:17, SP wrote: Yeah this isn't specifically about php but most people use databases so I think

RE: [PHP] class PHP

2002-04-27 Thread SP
Whatever it says the guy took a lot of time to write it out lol -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: April 28, 2002 3:46 AM To: 'Peter'; [EMAIL PROTECTED] Subject: RE: [PHP] class PHP Can someone translate this to English? -Original Message-

RE: [PHP] web application development question

2002-04-26 Thread SP
How about storing it in a database like you said with variable and value but when you change a value then you write over your config.inc.php file with a new one. So you get to change the value easily in a database and by using a file you make your app faster without any database access

RE: [PHP] web application development question

2002-04-26 Thread SP
be easier to just do a select on the database to display the values and then if you make a change then just make a change in the database and overwrite the old file. -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: April 26, 2002 4:24 PM To: SP Cc: [EMAIL PROTECTED] Subject

RE: [PHP] validating user input

2002-04-24 Thread SP
Hi Drouet, I've been asking about this too and here's what I've been working on. It checks for letters, numbers, puncuation, and max and min length. I was told any of the puncation was safe as long as you addslashes before you put it into the database. function check_input($user_input,

RE: [PHP] Empty $_SESSION and $_POST ??

2002-04-24 Thread SP
Have you tried doing phpinfo() and seeing what values are coming up? -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: April 22, 2002 5:59 PM To: Erik Price Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Empty $_SESSION and $_POST ?? On Monday 22 April 2002 05:34 pm, you

RE: [PHP] Re: ereg size limit???

2002-04-22 Thread SP
] Re: ereg size limit??? Hi, Sp [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am trying to validate my input with ereg but I get the error Warning: REG_BADBR when I try over 255 characters. Is there anyway around this? Works = if(eregi('

[PHP] ereg size limit???

2002-04-21 Thread SP
I am trying to validate my input with ereg but I get the error Warning: REG_BADBR when I try over 255 characters. Is there anyway around this? Works = if(eregi('^[A-Za-z]{1,255}$', test sentence)) echo valid input; Doesn't Work if(eregi('^[A-Za-z]{1,256}$', test sentence))

RE: [PHP] Re: [PHP-DB] Re: [PHP] Re: Cross DB application

2002-04-20 Thread SP
]] Sent: April 20, 2002 8:18 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: [PHP-DB] Re: [PHP] Re: Cross DB application On Thu, 18 Apr 2002 16:05:13 +0200, Manuel Lemos wrote: Hello, Sp wrote: Hi Manuel, I still don't see a problem in others telling their experiences with certain packages

[PHP] Validating User Input

2002-04-19 Thread SP
I am trying to validate an user's input. I can get the ereg function to work if I just type in the pattern I'm searching for but my problem is I want to build the pattern through a variable first and then use that variable in the ereg function. For example, I want to check an input that's only

RE: [PHP] Validating User Input

2002-04-19 Thread SP
return $default; } ? That should take care of everything except the square brackets - not sure how to go about getting them (escaping them didn't seem to work). HTH Danny. - Original Message - From: SP [EMAIL PROTECTED] To: Php [EMAIL PROTECTED] Sent: Friday, April 19, 2002 1:57 PM

[PHP] RE: [PHP-DB] Re: [PHP] Re: Cross DB application

2002-04-18 Thread SP
PROTECTED]] Sent: April 18, 2002 9:37 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Sp Subject: Re: [PHP-DB] Re: [PHP] Re: Cross DB application Hello, Sp wrote: Can someone with database expertise who has used metabase and adodb cut through this rhetoric and give an objective view of these two

RE: [PHP] Re: Need row number from database select

2002-04-17 Thread SP
Bucknum [mailto:[EMAIL PROTECTED]] Sent: April 15, 2002 10:29 AM To: '[EMAIL PROTECTED]' Subject: RE: [PHP] Re: Need row number from database select Keep track of it outside of the function in a global variable. -Original Message- From: SP [mailto:[EMAIL PROTECTED]] Sent: Sunday, April

[PHP] RE: [PHP-DB] Re: [PHP] Re: Cross DB application

2002-04-17 Thread SP
There must be people on this list that have ported their web apps from different databases and could share their experiences. mysql - postesql mysql - ms sql server ms sql server - oracle -Original Message- From: John Lim [mailto:[EMAIL PROTECTED]] Sent: April 17, 2002

RE: [PHP] Re: Need row number from database select

2002-04-15 Thread SP
I see what you are trying to do David but that was what I tried first but it doesn't work because the function calls itself depending if it's not a parent so the alternating colors become all messed up depending on the structure of my folders. That's why I was hoping to get the number for each

RE: [PHP] Re: Need row number from database select

2002-04-15 Thread SP
of it outside of the function in a global variable. -Original Message- From: SP [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 14, 2002 8:28 PM To: David Robley; [EMAIL PROTECTED] Subject: RE: [PHP] Re: Need row number from database select I see what you are trying to do David

RE: [PHP] Re: Need row number from database select

2002-04-15 Thread SP
of digits you assign per level. Also why are you using a hex? -Original Message- From: Aj Lavin [mailto:[EMAIL PROTECTED]] Sent: April 15, 2002 3:24 PM To: SP Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Need row number from database select On Sun, Apr 14, 2002 at 09:27:50PM -0400, SP

[PHP] Need row number from database select

2002-04-14 Thread SP
If this is my database result from a select then I need to know that Bob is the 1st result, Mike is the 2nd result and John is the 3rd result ... Name Address === Bob 121 King St. Mike 99 Main St. John 8433 Albert St. Does mysql keep track of this? I know

RE: [PHP] Re: Need row number from database select

2002-04-14 Thread SP
. mysql_fetch_array(result, MYSQL_ASSOC) will do the trick. Sp [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... If this is my database result from a select then I need to know that Bob is the 1st result, Mike is the 2nd result and John is the 3rd result ..

[PHP] Group moderation formula

2002-03-28 Thread SP
Everyone gets an arbitrary 100 points ranking to start with. Everyone can vote for or against a proposal. If you vote for a proposal and it gets approved by the majority then you get more points. If you vote against a proposal and it gets approved then you lose points. The more points you