php-general Digest 10 Mar 2002 01:13:08 -0000 Issue 1217

Topics (messages 87871 through 87891):

Re: Dynamically creating PHP before it is executed
        87871 by: Bogdan Stancescu

Error Handler Problem
        87872 by: S.Murali Krishna
        87874 by: Dan Vande More

Re: mysql_connect() help
        87873 by: Ellis M. Mendez-Hidaka

apache and php installation problem
        87875 by: Duncan

Re: Changing an XML-file
        87876 by: Henrik Hansen

Re: Congrats to Rasmus?
        87877 by: bill

Homesite 5.0 and PHP
        87878 by: Chuck \"PUP\" Payne
        87881 by: Cal Evans

what is the limit of Vars in Session ???
        87879 by: Beta

Problems with maximum execution time
        87880 by: Victor Usjanov

Re: Can someone tell me about database....
        87882 by: David Johansen

Authorize.net example
        87883 by: David Johansen

which linux?
        87884 by: Floyd Baker
        87886 by: Cal Evans

5 Records in a row displayed!
        87885 by: Thomas Edison Jr.

re-number the array index
        87887 by: Reuben D Budiardja

Re: Checking to see what value error_reporting is set at?
        87888 by: David Robley
        87890 by: eric.coleman.zaireweb.com

Selecting a Queried Row
        87889 by: Andre Dubuc
        87891 by: Stephano Mariani

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Why don't you try it? It works! Simply echo("<TD 
CLASS=\"$itemclass\">".$$col."</TD>") and see what you get...

I'm probably very late with this reply, but just in case...

Bogdan

Jonathan Duncan wrote:

>Sam,
>
>The questions you write are good.  I am not sure why they can't.  I just
>assumed that if I make lines of code like:
>
><TD CLASS=\"\$itemclass\">\$$col</TD>
>
>and populate them like:
>
><TD CLASS="$itemclass">$column1</TD>
><TD CLASS="$itemclass">$column2</TD>
><TD CLASS="$itemclass">$column3</TD>
>
>that I would have to then evaluate them on a different page.  Am I
>incorrect?
>
>Thanks,
>Jonathan Duncan
>
>
>----- Original Message -----
>From: "Samuel Ottenhoff" <[EMAIL PROTECTED]>
>To: "Jonathan Duncan" <[EMAIL PROTECTED]>
>Sent: Friday, March 08, 2002 10:23 PM
>Subject: Re: [PHP] Dynamically creating PHP before it is executed
>
>
>>You make sense until the last paragraph.
>>
>>It sounds like you are making this way more complicated than it need be.
>>Why write these out to files and then include them?  Why not just echo
>>
>your
>
>>results out to the browser?  Why can't all of this code be contained
>>
>within
>
>>one PHP page?
>>
>>Sam
>>
>>
>>
>"Jonathan Duncan" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>>Bogdan,
>>
>>Thank you for your comment, it actually made me think of a possible
>>
>solution
>
>>for something else I am working on.  However, it is just as I thought, I
>>
>am
>
>>being too vague.  I am most likely making my whole situation more
>>complicated than I need.  Another idea is just to do a "select *" and run
>>the whole shebang through an IF/ELSE series to determine which headers are
>>being used.  However, to remain on my current train of thought, here is a
>>snippet of my code:
>>
>>  include("inc/dbconnect.inc");
>>  $sql = "select columns from tablename where id=$someid";
>>  $sqlresult = mysql_query($sql, $connection) or die("Couldn't execute
>>query. (7)");
>>  $columns_array = explode(",", $sqlresults['columns']);
>>  while (list($col) = each($columns_array)) {
>> $sql = "select coltitle from FreudColumns where colid='$col'";
>>    $result = mysql_query($sql, $connection) or die("Couldn't execute
>>
>query.
>
>>(12)");
>> $ch = mysql_fetch_array($result);
>> // Set the column headers
>> $headers .= "<TH CLASS=\"hlink\">$ch['coltitle']</TH>";
>>    // Set the item variables
>> $setitemvar .= "\$$col = \$isr['$col'];";
>>    // Set the measurement columns
>> $setitem .= "<TD CLASS=\"\$itemclass\">\$$col</TD>";
>>  }
>>Afterwhich I write $headers to a file, $setitemvar to a file, $setitem to
>>
>a
>
>>file and call the page that is supposed to include these files I have just
>>writed so that the PHP code that I have just dynamically written will then
>>execute and the variables will be replaced.
>>
>>Does this make any more sense?
>>
>>Thank you,
>>Jonathan Duncan
>>
>>
>>"Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message
>>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>>
>>>I don't quite understand why you chose such a complicated solution - I
>>>may be missing something, in which case sorry for wasting your time. But
>>>why don't you just dynamically build the select statement and then use
>>>the <whatever>_fetch_array() -- and walk that array instead?
>>>
>>>Just my 2c
>>>
>>>Bogdan
>>>
>>>Jonathan Duncan wrote:
>>>
>>>>I am trying to figure out a way to dynamically create some lines of PHP
>>>>
>>code
>>
>>>>and then have it executed.  This is because I want a page to display
>>>>different columns in a table depending on whatever link is clicked.
>>>>
>>There
>>
>>>>are hundreds of different combinations of column headings so I don't
>>>>
>want
>
>>to
>>
>>>>make a different PHP page that is formated for each different
>>>>
>>combination.
>>
>>>>The column headings are stored in a database.
>>>>
>>>>So far what I have come up with is to have a starting page, that takes
>>>>
>>the
>>
>>>>value of the link that is clicked, it queries the database for that
>>>>
>value
>
>>>>and then does a while statement to make all the <TD>'s for the
>>>>
>different
>
>>>>columns.  Each <TD> is populated with a different variable, one for
>>>>
>each
>
>>>>column header.  Each iteration I append to a variable to hold all of
>>>>
>>these
>>
>>>><TD>'s.  Then I write the contents of that variable to a temporary
>>>>
>>include
>>
>>>>file and call the page that will display the table.  That table then
>>>>includes those <TD>'s from the include file I wrote them to and
>>>>
>executes
>
>>the
>>
>>>>PHP that runs another query on the database and fills in the variables
>>>>
>in
>
>>>>those <TD>'s.
>>>>
>>>>This seems like a lot of work.  Does what I am trying to do make sense
>>>>
>to
>
>>>>anyone?  Does anyone have any idea how to do this an easier way?
>>>>
>>>>Thanks
>>>>Jonathan Duncan
>>>>
>>>>
>>>>
>>>
>>>
>>
>
>
>



--- End Message ---
--- Begin Message ---

Hi All,
        I tell my requierment first. Just in short I want to capture a
error of "Undefined Function .so and so..." .
        I set Error Handler to

        E_ALL & ~E_ERROR and I set my own Error Handler to capture errors
then I called a Non-Existent Function intentionally.

in this case its not at all capturing the error and silently executing
the program. 

Can anyone tell me what is the workaround this.
For clarification here is the code.

<?php

function ErrorHandler($Errcode, $Errmsg )
{
    print "ErrorCode: " . $Errcode  . "\n" ;
    print "ErrorMsg : " . $Errmsg   . "\n" ;

    return false ;
}


error_reporting(E_ALL & ~E_ERROR);

$prev_hand = set_error_handler("ErrorHandler");

// It's always executing if section instead of else.

if(!$prev_hand) {
    print "Unable to set error handler\n" ;
} else {
    print "Previous Handler" . $prev_hand ;
}


?>




<[EMAIL PROTECTED]>
-------------------------------------------------------------------
We must use time wisely and forever realize that the time is 
always ripe to do right."
            
                -- Nelson Mandela
-------------------------------------------------------------------

--- End Message ---
--- Begin Message ---
I'm not understanding completely, but could this have something to do with
it?
[quote]
error_reporting() has no effect if you have defined your own error handler
with set_error_handler()

[Editor's Note: This is not quite accurate.

E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR and
E_COMPILE_WARNING error levels will be handled as per the error_reporting
settings.

All other levels of errors will be passed to the custom error handler
defined by set_error_handler().

Zeev Suraski suggests that a simple way to use the defined levels of error
reporting with your custom error handlers is to add the following line to
the top of your error handling function:

if (!($type & error_reporting())) return;

 [EMAIL PROTECTED]]
[/quote]
Read:
http://www.php.net/manual/en/function.error-reporting.php

Dan

-----Original Message-----
From: S.Murali Krishna [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, March 09, 2002 6:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Error Handler Problem


Hi All,
        I tell my requierment first. Just in short I want to capture a
error of "Undefined Function .so and so..." .
        I set Error Handler to

        E_ALL & ~E_ERROR and I set my own Error Handler to capture errors
then I called a Non-Existent Function intentionally.

in this case its not at all capturing the error and silently executing
the program. 

Can anyone tell me what is the workaround this.
For clarification here is the code.

<?php

function ErrorHandler($Errcode, $Errmsg )
{
    print "ErrorCode: " . $Errcode  . "\n" ;
    print "ErrorMsg : " . $Errmsg   . "\n" ;

    return false ;
}


error_reporting(E_ALL & ~E_ERROR);

$prev_hand = set_error_handler("ErrorHandler");

// It's always executing if section instead of else.

if(!$prev_hand) {
    print "Unable to set error handler\n" ;
} else {
    print "Previous Handler" . $prev_hand ;
}


?>




<[EMAIL PROTECTED]>
-------------------------------------------------------------------
We must use time wisely and forever realize that the time is 
always ripe to do right."
            
                -- Nelson Mandela
-------------------------------------------------------------------


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Thank you ruler. That did it. I was wondering which socket was supposed to be
doing this.
I was using a book with an old version of MySQL and I guess the names are
missmatched.
Thanks again



Ruler wrote:

> What I did is made a symlink from /var/run/mysql.sock to /tmp/mysql.sock
> example: ln -s /var/run/mysql.sock /tmp/mysql.sock
>
> Or if /var/run/mysql.sock doesn't exist, find / -name "mysql.sock"
> Then symlink that to /tmp
>
> Hope that helps.
> ----- Original Message -----
> From: "Ellis M. Mendez-Hidaka" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 08, 2002 8:43 PM
> Subject: [PHP] mysql_connect() help
>
> > Greetings,
> > I'm a newbie with apache and PHP.
> > I was able to setup apache, php and mysql in RH Linux and have my
> > website running.
> > I was trying to test the BD connectivity capabilities of PHP but I keep
> > receiving this error message:
> > {
> > Warning: Can't connect to local MySQL server through socket
> > '/tmp/mysql.sock' (2) in /var/www/html/testdb.php on line 20
> >
> > Warning: MySQL Connection Failed: Can't connect to local MySQL server
> > through socket '/tmp/mysql.sock' (2) in /var/www/html/testdb.php on line
> > 20
> > Could not connect to DB
> > }
> >
> > I tried looking at the documentation in php.net, but I don't see what
> > could be the problem.
> > Here is the code (line 20 is the mysql_connect() command):
> >
> > <?php
> >
> >
> >
> >  //build SELECT query
> >  $query = "SELECT * FROM divers";
> >
> >  //Connect to MySQL
> >  // *************This line is the problem! :^(   ******************
> >  if( !($database1 = mysql_connect( "localhost","test1","psswd" ) ) )
> >   die( "Could not connect to DB" );
> >
> >  //Open database
> >  if( !mysql_select_db( "divers", $database1 ) )
> >   die( "Could not open divers DB" );
> >
> >  //Query DB
> >  if( !($result = mysql_query( $query, $databse1 ) ) )
> >  {
> >   print("Could not execute query! <br />" );
> >   die( mysql_error() );
> >  }
> >
> > ?>
> >
> > My DB is running fine, and I even tested it with that ID and it shows
> > fine as well.....
> >
> > I'm using PHP 4.0.6 and mysql is enabled.
> > Am I missing any settings I might not know?
> > Any help will be really appreciated.
> > Thank you
> >
> > Ellis
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >

--- End Message ---
--- Begin Message ---
Hi,

i currently installed latest apache and php on my RH 7.2 system.
However, i allways get the following error now:

/usr/local/apache/bin/apachectl configtest 
Syntax error on line 216 of /usr/local/apache/conf/httpd.conf: 
Cannot load /usr/local/apache/libexec/libphp4.so into server: 
€Ø+@€Ø+@((Ø+@Ø+@˜Ø+@˜Ø+@ Ø+@ 
Ø+@¨Ø+@¨Ø+@°Ø+@°Ø+@¸Ø+@¸Ø+@ÀØ
+@ÀØ+@ÈØ+@ÈØ+@ÐØ+@ÐØ+@ØØ+@ØØ+@àØ+@àØ+@èØ+@èØ+@ðØ+@ðØ+@øØ+@øØ
+@: shared object not open 



The error_log says:

Cannot load /usr/local/apache/libexec/libphp4.so into server: 
/usr/local/apache/libexec/libphp4.so: cannot open shared object file: No such file or 
directory

...but the file IS there! I don't understand this error.

I had to comment all php-based lines within the httpd.conf file, to get apache up and 
running again! 

My problem is, that i need to get php up and running asap, so any help is more than 
welcome. 

Thanks in advance, 

regards, 

Duncan

--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Lon Hoeneveld) wrote:

 > I want to use XML-files not just for reading but also for writing. In fact I
 > want to update values in an XML-file as if they were database tables. Does
 > anyone have an example or link for that?

Look at the domxml functions for php.

-- 
Henrik Hansen
--- End Message ---
--- Begin Message ---
Congratulations to all three of you!

Michael Kimsal wrote:

> It doesn't seem to have been mentioned here unless my newsfeed is very
> slow, but phpdeveloper.org has a quick mention of the new addition to
> Rasmus' family.
>
> http://www.phpdeveloper.org/
>
> "Well, everyone's favorite PHP developer multiplied last night - Rasmus
> Lerdorf now has a son (9.0lbs, 19.25in. - a big boy) was born at 13:26
> PDT on Wednesday March 6, 2002. If you'd like to see some pics from the
> family, check out this page - or to send congrats, email [EMAIL PROTECTED]"

--- End Message ---
--- Begin Message ---
I am wanting to know is there any add-ons for Macromedia Homesite 5.0. I see
it set up for ASP and JSP and a couple others but not PHP.

Chuck

--- End Message ---
--- Begin Message ---
Chuck,

I've been a Homesite zealot for several years now. I LOVE 4.5. 5.0 (at least
the very first release of it) was a piece of crap.  I crashed more than it
ran on my Win98 box.  I would install it on my new Win2k box (same box but I
bit the bullet and bought the upgrade) but now I have to ask Macromedia's
permission to do so.

<RANT>(Ya Reading this Macromedia? I won't ask your permission to reload my
computer.  I'll find a hacked copy first. I paid for use on one machine, why
do you care if I unload and re-load on a weekly basis?)</RANT>

Anyhow, So I'm sticking with 4.5.  If you can purchase a copy of 4.5, it too
has color coded syntax for PHP (That's about all the support that I found in
5.0 also) and it rocks...as long as you don't try to use the FTP
thingy...but that's another rant.

=C=
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*


-----Original Message-----
From: Chuck "PUP" Payne [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 09, 2002 10:21 AM
To: PHP General
Subject: [PHP] Homesite 5.0 and PHP


I am wanting to know is there any add-ons for Macromedia Homesite 5.0. I see
it set up for ASP and JSP and a couple others but not PHP.

Chuck


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
Can somebody tell does one session has limit of storing the variables, or
does it has any limit in size (eg KB);


--- End Message ---
--- Begin Message ---
Hello

I got a problem with php and apache. I have installed latest
squirrelmail(1.2.5), that uses php. When i point browser to the webfolder of
squirrelmail, i get the login form just fine. This means that php works ok.
But when i try to log on, the only thing i get is:

Fatal error: Maximum execution time of 30 seconds exceeded in
/home/squirrel/functions/imap_general.php on line 117

I have tried to increase timeout value in the php.ini to 300, and to 0
(unlimited, as far as i understand), but it just took longer time to get
this error message.

System information: RH72, 2.4.9-31 kernel, apache-1.3.22-2, php-4.0.6-12,
imap-2000c-15, php-imap-4.0.6-12. System is
intalled from RH7.2 CD and updated with help of up2date.

What is strange is that i have another RH7.2 computer with the same versions
of packages, and there squirrel works just fine. I have compared php.ini and
httpd.conf between these two computes, and they are identical.

I do not get anything in apache`s error_log, but in access log i get this:

Computer wherer squirrel does not work:
pc51-119.hiof.no - - [09/Mar/2002:10:27:14 +0100] "GET /mail HTTP/1.1" 301
322
pc51-119.hiof.no - - [09/Mar/2002:10:27:15 +0100] "GET /mail/ HTTP/1.1" 302
5
pc51-119.hiof.no - - [09/Mar/2002:10:27:17 +0100] "GET /mail/src/login.php
HTTP/1.1" 200 1470
pc51-119.hiof.no - - [09/Mar/2002:10:27:18 +0100] "GET
/mail/images/sm_logo.png HTTP/1.1" 304 -
pc51-119.hiof.no - - [09/Mar/2002:10:27:54 +0100] "POST
/mail/src/redirect.php HTTP/1.1" 200 160

and nothing more

Computer where squirrel does work:
my_hostname - - [09/Mar/2002:10:30:22 +0100] "GET /mail HTTP/1.1" 301 316
my_hostname  - - [09/Mar/2002:10:30:24 +0100] "GET /mail/ HTTP/1.1" 302 5
my_hostname  - - [09/Mar/2002:10:30:25 +0100] "GET /mail/src/login.php
HTTP/1.1" 302 5
my_hostname  - - [09/Mar/2002:10:30:34 +0100] "GET /mail/src/login.php
HTTP/1.1" 200 1502
my_hostname  - - [09/Mar/2002:10:30:39 +0100] "GET /mail/images/sm_logo.png
HTTP/1.1" 304 -
my_hostname  - - [09/Mar/2002:10:30:44 +0100] "POST /mail/src/redirect.php
HTTP/1.1" 302 0
my_hostname  - - [09/Mar/2002:10:30:44 +0100] "GET /mail/src/webmail.php
HTTP/1.1" 200 204
my_hostname  - - [09/Mar/2002:10:30:46 +0100] "GET /mail/src/right_main.php
HTTP/1.1" 200 15956

Someone got any ideas about what can be wrong ?

Thank you in advance

--
Victor


--- End Message ---
--- Begin Message ---
Here's a good PHP and MySQL tutorial.
http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html
Dave

"Genesis Designs" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> Can anyone tell me about database driven web sites? I want to learn how to
do
> that. Thanks,
>
>
> -GENESiS DESiGNS
> -Sean Kennedy
> -http://www.gdesigns.vcn.com
>


--- End Message ---
--- Begin Message ---
Could someone tell me where I could get a basic Authorize.net example to
work off of. I'm sure that I could do it all from scratch, but a base to
start from would be nice and make it a lot faster. Thanks,
Dave


--- End Message ---
--- Begin Message ---


This is a bit ot but 'related', and I know you guys know...  

I'm about to buy a new machine and want to install linux instead of
ms.   I've never touched the stuff before but I hear Mandrake 8.1 is
good for easy install, etc.  Would anyone have suggestions on buying a
new machine, chip compatibility, best linux, etc??  And since I don't
know much more than the linux name and reputation, can I maybe get an
idea of an average learning curve time frame?  

Right now I'm set up on win32 with apache php4.1 and mysql which is
what I'll be doing with the new one.  

Thanks.

Floyd


--

--- End Message ---
--- Begin Message ---
www.gentoo.org

Source based.  Everything is built.
On a new machine it will take aprox 4 hours to get up and running but it is
tweaked out specifically for your HW.

Also, this is one of the easiest distro's I've ever had to manage. I've
played with Caldera, Corel, RH , Mandrake, and SGL (now defunct, at least
until the author gets his head out of his butt) and Gentoo.  Gentoo is by
far the best.

But be prepared.  There's no graphical installer. It takes time and patience
to get it running.

My $0.02,
=C=

*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*


-----Original Message-----
From: Floyd Baker [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 09, 2002 2:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] which linux?




This is a bit ot but 'related', and I know you guys know...

I'm about to buy a new machine and want to install linux instead of
ms.   I've never touched the stuff before but I hear Mandrake 8.1 is
good for easy install, etc.  Would anyone have suggestions on buying a
new machine, chip compatibility, best linux, etc??  And since I don't
know much more than the linux name and reputation, can I maybe get an
idea of an average learning curve time frame?

Right now I'm set up on win32 with apache php4.1 and mysql which is
what I'll be doing with the new one.

Thanks.

Floyd


--


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
Hi,

I'm looking to display 5 records in one rows, from the
database. 

What i mean is, basically, let's take the "emails" as
an example. I have a table with 100s of email
addresses. Now i want to display these email addresses
on a page, but i want to display only 5 email adresses
in one line, then the next 5 in the next line and so
on. Also, perhaps if these emails are seperated by
space, nothing else or more. 

Can someone help me with a code.
Regards,
T. Edison jr.


=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
*******************************************

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/
--- End Message ---
--- Begin Message ---

Hi,
Is there any easy & efficient way to re-number the array index? for example, 
if I have an array with only something like:
$arr[1] = "t"
$arr[4] = "e"
$arr[7] = "s"

I would like the index to be re-numbered so that I can have 
$arr[0] = "t"
$arr[1] = "e"
$arr[2] = "s"

This is useful sometime because a function like array_unique preserves the 
indexes of array, and sometime make them un-order. Well, sometime I don't 
care about the preservation of index, and I just want an ordered index 
number. 
I know I can walk through the array and re-assign them to different array or 
do something like that with a loop. But I'm just wondering if there is a more 
efficient / quicker way.

Thanks.
Rdb
--- End Message ---
--- Begin Message ---
In article <00b801c1c714$b4854230$0501a8c0@zaireweb>, 
[EMAIL PROTECTED] says...
> Is it possible to return what error_reporting is set at currently?  If not, think 
>they would be able to throw it into the newest build of php?
> 
> Thanks,
> Eric
> 

Have a look at the ini_get function

-- 
David Robley
Temporary Kiwi!

Quod subigo farinam
--- End Message ---
--- Begin Message ---
I ment, if you re-set it, as im setting it to error_reporting(E_ALL);
depending on a value i get from a db query...

-Eric

----- Original Message -----
From: "David Robley" <[EMAIL PROTECTED]>
To: <>
Sent: Saturday, March 09, 2002 6:52 PM
Subject: [PHP] Re: Checking to see what value error_reporting is set at?


> In article <00b801c1c714$b4854230$0501a8c0@zaireweb>,
> [EMAIL PROTECTED] says...
> > Is it possible to return what error_reporting is set at currently?  If
not, think they would be able to throw it into the newest build of php?
> >
> > Thanks,
> > Eric
> >
>
> Have a look at the ini_get function
>
> --
> David Robley
> Temporary Kiwi!
>
> Quod subigo farinam
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

--- End Message ---
--- Begin Message ---
As a newbie at PHP (and relative newcomer to HTML and web design) I've been 
wading through documentation trying to accomplish various tasks. However, I'm 
stumped on how to proceed with the following:

I would like a web vistor to be able to select a row from a table that has 
been generated from a query. The problem is I don't know how to code a 
paricular column (using the present <td> . . </td> syntax of the table) so 
that each cell would have a "clickable" element (perhaps the 'ID' number). 

Once that cell is clicked, I would like to code 'onclick=some_function()'

Does this sound reasable way of approaching the problem, or is there a better 
way. [Btw, at present, while learning PHP, I am using global_variables=on, 
but would like to try $PHP_SELF method to pick up session variables.]

Any help would be greatly appreciated, as well as pointers of where to look!

Tia, Andre


-- 
Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the suffering souls in Purgatory.

May God bless you abundantly in His love!

For a free Cenacle Scriptural Rosary Booklet -- http://www.webhart.net/csrb/
--- End Message ---
--- Begin Message ---
If you mean what I think you mean:

<TD><A HREF="somewhere.php?somevar=something">Some Text (ID?)</A></TD>

> -----Original Message-----
> From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, 10 March 2002 12:13 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Selecting a Queried Row
> 
> As a newbie at PHP (and relative newcomer to HTML and web design) I've
> been
> wading through documentation trying to accomplish various tasks.
However,
> I'm
> stumped on how to proceed with the following:
> 
> I would like a web vistor to be able to select a row from a table that
has
> been generated from a query. The problem is I don't know how to code a
> paricular column (using the present <td> . . </td> syntax of the
table) so
> that each cell would have a "clickable" element (perhaps the 'ID'
number).
> 
> Once that cell is clicked, I would like to code
'onclick=some_function()'
> 
> Does this sound reasable way of approaching the problem, or is there a
> better
> way. [Btw, at present, while learning PHP, I am using
global_variables=on,
> but would like to try $PHP_SELF method to pick up session variables.]
> 
> Any help would be greatly appreciated, as well as pointers of where to
> look!
> 
> Tia, Andre
> 
> 
> --
> Please pray the Holy Rosary to end the holocaust of abortion.
> Remember in your prayers the suffering souls in Purgatory.
> 
> May God bless you abundantly in His love!
> 
> For a free Cenacle Scriptural Rosary Booklet --
> http://www.webhart.net/csrb/
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---

Reply via email to