[PHP] Is it possible to get the name of the top most calling script?

2007-06-09 Thread barophobia
Hello, I know that __FILE__ and __LINE__ report on the file and line that they occur in. What I want is to be able to get the file name and line of the calling script. The only way I can do this so far is by passing the values through function arguments. Is there any way around this?

[PHP] Submitting as POST. Why?

2007-04-06 Thread barophobia
My Peeps, I only know of one reason to submit a form as POST and that is because you can submit more data in one shot. What other reasons are there? Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Please critique my database class.

2007-02-10 Thread barophobia
Hi! I was thinking about asking for recommendations for a lightweight database class. But I realized I hadn't thought much about what my requirements are so I decided instead to ask the list to critique my own class. I don't need anything as robust as ADOdb and I always use MySQL. This class

[PHP] Fwd: Please critique my database class.

2007-02-10 Thread barophobia
First time this went through I got a message saying I had to confirm my address. I did that but I never saw it show up on the list so I'm trying again. -- Forwarded message -- From: barophobia [EMAIL PROTECTED] Date: Feb 10, 2007 2:12 PM Subject: Please critique my database class

Re: [PHP] Re: PHP editor that doesn't require installation

2004-07-26 Thread barophobia
On Sat, 24 Jul 2004 16:37:03 +0200, rush [EMAIL PROTECTED] wrote: scite, from the scintilla fame. TemplateTamer would also work fine if you just copy the whole directory wow. that's a pretty awesome editor. too bad it can't connect to FTP sites. all my files are remote! anyone have a work

[PHP] is there anyway to use constants in a string?

2004-07-19 Thread barophobia
hello. ?php define(MY_CONSTANT, http://google.com/;); $my_string = QQQ MY_CONSTANT: does not work for obvious reasons {MY_CONSTANT}: does not work for obvious reasons {$MY_CONSTANT}: does not work for obvious reasons QQQ; ? here are my options: 1. assign the constant to a temporary

Re: [PHP] is there anyway to use constants in a string?

2004-07-19 Thread barophobia
On Mon, 19 Jul 2004 11:48:02 -0700, Justin Patrin [EMAIL PROTECTED] wrote: On Mon, 19 Jul 2004 10:22:42 -0700, barophobia [EMAIL PROTECTED] wrote: $my_string = QQQ MY_CONSTANT: does not work for obvious reasons {MY_CONSTANT}: does not work for obvious reasons {$MY_CONSTANT}: does

[PHP] auto-increment not working?? MySQL

2004-07-12 Thread barophobia
hello. i've got a strange problem with a MySQL table. although my 'id' column is set to 'auto_increment', each new record i insert has the value 1. (instead of 1, 2, 3, etc.) i checked my sql statement and i'm not assigning the id value by mistake. here is my create statement (showing only a few

Re: [PHP] auto-increment not working?? MySQL

2004-07-12 Thread barophobia
On Mon, 12 Jul 2004 15:36:20 -0500, Jay Blanchard [EMAIL PROTECTED] wrote: The guys on the MySQL list do. Have you read this-- http://dev.mysql.com/doc/mysql/en/example-AUTO_INCREMENT.html not for this issue no. the problem for those that read this later is not that i am using multiple

[PHP] Link only active letters in alphabetical search

2004-07-08 Thread barophobia
hello. in an effort to more easily find products in the cart i'm building i've given the ability to the user to click a letter from the alphabet to search for all products whose product id starts with that letter. currently each letter is hyper linked but i'd like to only link the letters that

Re: [PHP] Link only active letters in alphabetical search

2004-07-08 Thread barophobia
On Thu, 8 Jul 2004 13:14:50 -0500, Jay Blanchard [EMAIL PROTECTED] wrote: Do it with SQL SELECT DISTINCT(SUBSTRING(`productName`, 1, 1)) FROM `productTable` will give you only one of each of the starting letters that actually occur in your database. good job. that works great. it's *much*

Re: [PHP] Creating Rows and Columns Using for() Loops

2004-07-08 Thread barophobia
On Thu, 8 Jul 2004 18:17:25 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: for ($i = 0; $i count($num_days); $i++) { [snip] for ($j = 0; $j 32; $j++) { [snip] } [snip] } How do I fix it to where each date column has exactly 32 rows of guest names? it looks like you need to

[PHP] test

2004-07-07 Thread barophobia
ok, it's been about an hour since i subscribed and i still haven't received any messages so i'm sending this one as a test. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php