[PHP] passing values of checkboxes in PHP- solved

2004-05-16 Thread gowthaman ramasamy
I myself solved the problem. sorry for the trouble .. sincerely, gowtham On Mon, 2004-05-17 at 11:51, gowthaman ramasamy wrote: > hi list, > I have a problem with getting the values of check boxes ... > > In the form i have many checkbox options created dynamically. All of > them have same name b

[PHP] Re: passing values of checkboxes in PHP

2004-05-16 Thread John Taylor-Johnston
Gowthaman, Just at a glance, it seems that you Should Only receive One value. 'Name=protid' tells me that you have only created one value. Because they ALL have the SAME name="protid" there will be only one value. This would be more evident if they were type=radiobox. What you need is to gene

Re: [PHP] create if table not exists

2004-05-16 Thread John Taylor-Johnston
>But wouldn't it be easier to create the tables in the first place? Travis, It surely would. But for one situation, I don't/can't have access to phpMyAdmin to install it. At the same time, I wanted to learn how to do it. -- John I'm still learning. But isn't this much more fun than Perl! > To

[PHP] Re: create if table not exists

2004-05-16 Thread John Taylor-Johnston
I used phpmyadmin to help generate some code. When I add: IF NOT EXISTS `mhinse_counter` it mysql_errors that the error is around: "IF NOT EXISTS `mhinse_counter` CREATE TABLE `mhinse_counter` ( " Can anyone see clear here? $server = "localhost"; $user = "user1"; $pass = "**"; $db="jt

[PHP] passing values of checkboxes in PHP

2004-05-16 Thread gowthaman ramasamy
hi list, I have a problem with getting the values of check boxes ... In the form i have many checkbox options created dynamically. All of them have same name but different values. But when user submits the form i am able to access only the value of last checkbox that user cliked. Values of rest of

Re: [PHP] Re: weird problem with index page

2004-05-16 Thread Jason Wong
On Monday 17 May 2004 13:38, loll wrote: > Thanks for th einfo, after beating myself all day over it, I have > determined that it only seesm to be an issue when using Internet Explorer, > using opera or mozilla it seems to work as it should, so I really dont > understand now. With Mozilla it auto

Re: [PHP] Re: weird problem with index page

2004-05-16 Thread loll
Hi, Thanks for th einfo, after beating myself all day over it, I have determined that it only seesm to be an issue when using Internet Explorer, using opera or mozilla it seems to work as it should, so I really dont understand now. Checked the apache setting you meantioned and it seems to alrea

[PHP] Re: Forums

2004-05-16 Thread Steve Magruder - WebCommons.org
Ryan A wrote: > Hey, > Just spent 2 hours at hot scripts searching for a good forum > software, after going through 15 pages I found: {snip} > The software HAS to be written in PHP coz its for a php discussion > site. phpBB (www.phpbb.com) is the best (IMHO), as it has an extensive modder communit

Re: [PHP] File_exists result cached over a session?

2004-05-16 Thread Steve Magruder - WebCommons.org
Marek Kilimajer wrote: > Steve Magruder - WebCommons.org wrote: >> File_exists results (and the results from other file-related >> functions) are cached (according to the php doc) during the run of a >> script. For instance, if file_exists returns True for a file once, >> it won't actually test th

[PHP] Re: create if table not exists

2004-05-16 Thread Tim Van Wassenhove
In article <[EMAIL PROTECTED]>, John Taylor-Johnston wrote: > How can I check if a table exists in a mysql db. $query = 'IF NOT EXISTS table CREATE TABLE table (..)'; mysql_query($query); -- Tim Van Wassenhove -- PHP General Mailing List (http://w

Re: [PHP] create if table not exists

2004-05-16 Thread Travis Low
The manual says: "; } ?> To paraphrase, just use mysql_list_tables() to get a table list in a result set, then go through the result set to see if the named table exists. But wouldn't it be easier to create the tables in the first place? cheers, Travis John Taylor-Johnston wrote: How can I check

[PHP] Re: weird problem with index page

2004-05-16 Thread Andy Ladouceur
Try adding a trailing slash to the URL, and seeing if it works. If so, then try adding the apache configuration directive: UseCanonicalName off In either httpd.conf or an .htaccess file, and try accessing without the trailing slash. I had a similar issue and adding that fixed it. Andy Loll wrot

[PHP] create if table not exists

2004-05-16 Thread John Taylor-Johnston
How can I check if a table exists in a mysql db. If it table does not exist, then, $news = mysql_query($sql_create); else $news = mysql_query($sql); Not sure I know where to start? -snip $server = "localhost"; $user = "user1"; $pass = ""; $db="user1table"; $table="comments";

[PHP] change database from mysql to mssql

2004-05-16 Thread David
Hi all I have been using mysql as the database for my PHP application. Now my manager ordered me to use Microsoft SQL Server as the database. I have been using the mysql interface to access the database, so I have to change my code. Which database interface should I use, ODBC, ADO, mssql or PEAR?

Re: [PHP] Forums

2004-05-16 Thread Justin French
Personally, I hate almost all forum software other than my own (still in Dev), but that's a different story. I've been frequenting the Textpattern forums [1] lately, which use PubBB [2], which is pretty good, lightweight, PHP driven, with a reasonable grip on standards and CSS. 1 http://www.te

Re: [PHP] Forums

2004-05-16 Thread John W. Holmes
Ryan A wrote: Hey, Just spent 2 hours at hot scripts searching for a good forum software, after going through 15 pages I found: "PBLang - International PHP-forum" which seems good. Either get the free version of Invision Power Board or do yourself a favor and buy vBulletin. -- ---John Holmes... A

[PHP] Forums

2004-05-16 Thread Ryan A
Hey, Just spent 2 hours at hot scripts searching for a good forum software, after going through 15 pages I found: "PBLang - International PHP-forum" which seems good. If anybody has used it...I would appreciate you telling me how your experience with it was...good, bad and anything in between. I

Re: [PHP] while inside a while or join or...

2004-05-16 Thread John W. Holmes
T. H. Grejc wrote: Hallo, I know of a few ways of doing this but I am not sure that any is right. I want to consult with you what is the best way of doing this: Table 1: ++-+ | *a* | *b* | ++-+ | 2 | 1| ++-+ | 2 | 2| ++-+ Table 2: ++-+ | *b*

Re: [PHP] while inside a while or join or...

2004-05-16 Thread Curt Zirzow
* Thus wrote T. H. Grejc ([EMAIL PROTECTED]): > Hallo, > > I know of a few ways of doing this but I am not sure that any is right. > I want to consult with you what is the best way of doing this: > > ... > > I would like to select all 'b' from Table_1 WHERE a = '2' and then to > select all 'd'

Re: [PHP] while inside a while or join or...

2004-05-16 Thread Rachel Rodriguez
> > I would like to select all 'b' from Table_1 WHERE a > = '2' and then to > select all 'd' from table_2 with 'b' from previous > result. > > Table 2 is the Table with UserNames (d) and Table 1 > is the table with > 'marked' UserID's (b). > If I understand you correctly, its sounds like you

php-general Digest 17 May 2004 00:28:06 -0000 Issue 2767

2004-05-16 Thread php-general-digest-help
php-general Digest 17 May 2004 00:28:06 - Issue 2767 Topics (messages 186347 through 186368): Re: PEAR::DB is great but is so SLOW ! 186347 by: Aidan Lister 186349 by: Martin Hjort Eriksen 186350 by: Tim Van Wassenhove 186355 by: Curt Zirzow Re: Template

[PHP] while inside a while or join or...

2004-05-16 Thread T. H. Grejc
Hallo, I know of a few ways of doing this but I am not sure that any is right. I want to consult with you what is the best way of doing this: Table 1: ++-+ | *a* | *b* | ++-+ | 2 | 1| ++-+ | 2 | 2| ++-+ Table 2: ++-+ | *b* | *d* | ++

[PHP] Local_value Extension_Dir

2004-05-16 Thread Alexander Hachmann
Hello, I have the problem, that Modules located in the directory which ist set as the local_value, do not work. The normal Directory for Example is /usr/share/extension. Now I set in the Virtualhost settings the Directory to /usr/share/extension/user. You can see in the php_info(); that the new Dir

[PHP] session

2004-05-16 Thread MrS
Hi How can I check if speciffic session is alive having session id? Or how can I delete data from MySQL belong to dead session? (I hope somebody understend what I wrote) MrS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] loosing memory

2004-05-16 Thread Merlin
thank you. I will try that. Merlin Curt Zirzow wrote: * Thus wrote Merlin ([EMAIL PROTECTED]): Hi there, I am running the newest php 4.x branch on a suse 9.0 apache 1.3x system Hardware: 1G ram It apears to me that the system anyhow has a memory leak. While running "top" on linux it shows the free

Re: [PHP] loosing memory

2004-05-16 Thread Curt Zirzow
* Thus wrote Merlin ([EMAIL PROTECTED]): > Hi there, > > I am running the newest php 4.x branch on a suse 9.0 apache 1.3x system > Hardware: 1G ram > > It apears to me that the system anyhow has a memory leak. While running > "top" on linux it shows the free memory declining steadily. After abou

Re: [PHP] File_exists result cached over a session?

2004-05-16 Thread Marek Kilimajer
Steve Magruder - WebCommons.org wrote: File_exists results (and the results from other file-related functions) are cached (according to the php doc) during the run of a script. For instance, if file_exists returns True for a file once, it won't actually test the file again if file_exists is run ag

Re: [PHP] Reposting elseif carry

2004-05-16 Thread Curt Zirzow
* Thus wrote Ronald The Newbie Allen ([EMAIL PROTECTED]): > While I am sure that you are right. I went to the webpages that you > identified and did not see anything on' and ". I tried the code that typed > up and it said that Date_and_Time wher and undefinded index and also that > the headers co

[PHP] loosing memory

2004-05-16 Thread Merlin
Hi there, I am running the newest php 4.x branch on a suse 9.0 apache 1.3x system Hardware: 1G ram It apears to me that the system anyhow has a memory leak. While running "top" on linux it shows the free memory declining steadily. After about 48h the system starts to swap. Restarting apache grace

Re: [PHP] How to get class name in static function (PHP 4.2.3)

2004-05-16 Thread Curt Zirzow
* Thus wrote Torsten Roehr ([EMAIL PROTECTED]): > Hi, > > does anyone know a way of how to get the name of the class within a static > function? I can't use __CLASS__ as my PHP version is 4.2.3 and I can't > upgrade. > > My code (simplified): > > class Base { > function Factory() { >

[PHP] Re: PHP and qmail

2004-05-16 Thread Justin Patrin
Manuel Lemos wrote: Hello, On 05/15/2004 04:14 PM, Stephen Lake wrote: Can someone tell me how I can send HTML using qmail from a Script? The MTA I was using was changed from Sendmail to qmail and now my HTML mails actually show the html tags in the mail body. That looks like a bug in the mail()

[PHP] How to get class name in static function (PHP 4.2.3)

2004-05-16 Thread Torsten Roehr
Hi, does anyone know a way of how to get the name of the class within a static function? I can't use __CLASS__ as my PHP version is 4.2.3 and I can't upgrade. My code (simplified): class Base { function Factory() { $classname = ???; return new $classname; } } class Event

[PHP] File_exists result cached over a session?

2004-05-16 Thread Steve Magruder - WebCommons.org
File_exists results (and the results from other file-related functions) are cached (according to the php doc) during the run of a script. For instance, if file_exists returns True for a file once, it won't actually test the file again if file_exists is run again against the file. What I need to k

Re: [PHP] weird problem with index page

2004-05-16 Thread loll
Well, I managed to part fix the problem, now I have a problem where there is a page that all it does is redirect to another page, it wont redirect unless I hit the refresh button. When I go to index.php it redirects to login.php, this is an old page that I just added a header("Location: blah);

Re: [PHP] Re: PEAR::DB is great but is sooooo SLOW !

2004-05-16 Thread Curt Zirzow
* Thus wrote Tim Van Wassenhove ([EMAIL PROTECTED]): > In article <[EMAIL PROTECTED]>, Greg wrote: > > > Am I the only one annoying by this loss of performance ? > > Because this is a huge loss in that case ! > > I understand there might be a significant difference in performance, and > i underst

[PHP] Need help integration whoiscart.net script with my hosting template!

2004-05-16 Thread AP&J-SAAT Internet Solutions
Hi ya, I really need some help I did buy the whoiscart.net billing management system and already got a site design and I am trying to integrate the script with my Design for almost 2 weeks now. And somehow its not working! I hope someone here can help me out, My site is a low budget hosting yo

[PHP] Need help integration whoiscart.net script with my hosting template!

2004-05-16 Thread J.H.J. Saat
Hi all, I really need some help I did buy the whoiscart.net billing management system and already got a site design and I am trying to integrate the script with my Design for almost 2 weeks now. And somehow its not working! I hope someone here can help me out, My site is a low budget hosting y

Re: [PHP] weird problem with index page

2004-05-16 Thread BAO RuiXian
loll wrote: Hi, I am not sure if this is a PHP or Apache problem, but I am hoping someone can tellme what is wrong. When I go to www.domain.com on my server it shows the page as text instead of parsing the php code. If I go to www.domain.com/index.php (same page) it runs as it should. if I go

[PHP] weird problem with index page

2004-05-16 Thread loll
Hi, I am not sure if this is a PHP or Apache problem, but I am hoping someone can tellme what is wrong. When I go to www.domain.com on my server it shows the page as text instead of parsing the php code. If I go to www.domain.com/index.php (same page) it runs as it should. if I go to www.domain

[PHP] Re: PEAR::DB is great but is sooooo SLOW !

2004-05-16 Thread Tim Van Wassenhove
In article <[EMAIL PROTECTED]>, Greg wrote: > If I compare a script using PEAR::DB with a script using > standard functions (and which supports mysql, pgsql and > sqlite databases), the script using PEAR::DB is 10 times > slower than the other. > > Conclusion : if you want to use PEAR::DB package,

Re: [PHP] Re: PEAR::DB is great but is sooooo SLOW !

2004-05-16 Thread Martin Hjort Eriksen
Remember, PEAR::DB also uses the standard functions, so I can't understand, why it should be much slower. Rainer You have to remeber that PEAR::DB is an object oriented abstraction over the standard functions, and within this abstraction, there is also built som error handling funtions, etc.

[PHP] Re: Template Engine -> TinyButStrong

2004-05-16 Thread Skrol 29
Hi, Sorry if my reply looks like an advertisement, but TinyButStrong is a mature PHP Template Engine simple and which offers lot of features. It's only 1 file (= easy to install), 1 class with 8 methods and 2 properties. TinyButStrong's tags can be 100% designed into the template using WYSIWYG ed

[PHP] Re: PEAR::DB is great but is sooooo SLOW !

2004-05-16 Thread Aidan Lister
There are many, many benchmarks done comparing PEAR::DB to PEAR::MDB to AdoDB, PEAR::DB is much slower than the native API, AdoDB is the fastest but least functional - I suggest you try PEAR::MDB2 http://pear.php.net/package/mdb2 once you get into it, you'll love it "Rainer müller" <[EMAIL PROT

php-general Digest 16 May 2004 11:09:12 -0000 Issue 2766

2004-05-16 Thread php-general-digest-help
php-general Digest 16 May 2004 11:09:12 - Issue 2766 Topics (messages 186336 through 186346): Re: PHP and qmail 186336 by: Manuel Lemos 186339 by: electroteque Release Announcement: Hardened-PHP 0.1.1 186337 by: Stefan Esser 186338 by: electroteque Re: Repos

[PHP] Re: PEAR::DB is great but is sooooo SLOW !

2004-05-16 Thread Rainer Müller
Greg wrote: Hello, I've just performed a few tests when using PEAR::DB and the results weren't good at all. If I compare a script using PEAR::DB with a script using standard functions (and which supports mysql, pgsql and sqlite databases), the script using PEAR::DB is 10 times slower than the other

[PHP] Re: PEAR::DB is great but is sooooo SLOW !

2004-05-16 Thread greg
Grrr, i'm posting too fast ! Sorry for mistakes :) Hello, I've just performed a few tests when using PEAR::DB and the results weren't good at all. If I compare a script using PEAR::DB with a script using standard functions (and which supports mysql, pgsql and sqlite databases), the script using PEA

[PHP] Re: PEAR::DB is great but is sooooo SLOW !

2004-05-16 Thread greg
Greg wrote: Hello, I've just performed a few tests when using PEAR::DB and the results weren't good at all. If I compare a script using PEAR::DB with a script using standard functions (and which supports mysql, pgsql and sqlite databases), the script using PEAR::DB is 10 times slower than the other

[PHP] PEAR::DB is great but is sooooo SLOW !

2004-05-16 Thread greg
Hello, I've just performed a few tests when using PEAR::DB and the results weren't good at all. If I compare a script using PEAR::DB with a script using standard functions (and which supports mysql, pgsql and sqlite databases), the script using PEAR::DB is 10 times slower than the other. In one of

Re: [PHP] Reposting elseif carry

2004-05-16 Thread Ronald \"The Newbie\" Allen
While I am sure that you are right. I went to the webpages that you identified and did not see anything on' and ". I tried the code that typed up and it said that Date_and_Time wher and undefinded index and also that the headers could not be modified. Advanced stuff for me, while I do see the lo