> It's more of a pain if I have to remember what order the parameters go
Yeah, good point. I can see that. What i have been doing is componentising
the page into functions which are responsible for rendering a discrete
section of that page...ie if a page consists of a title bar and a form and
t
> Only typed it up in like 20 min, i normaly do that [code tidying] after :)
hehe tisk tisk...the merits of design havent been hammered through you yet?
you are lucky!!!
But, this does raise an interesting issuegood PHP code structure/form.
What do people consider good PHP form?
Ive coded i
Brace count mismatch.
You are missing a '}'.
God knows where it is...inconsistent spacing and code too lengthy.
Functionise/objectise your code!
AndrewH
- Original Message -
From: "ReDucTor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 4:17 PM
Subject: [PHP] Ca
Just make it so that a successful login process involves setting a session
variable.
In all pages that require a login, check that the session variable exists.
In any other pages, just ignore it.
Simple as that! Now just read the php documentation on how to do it ... (ie
using the session_* comma
For basic bars, use tables with divs whose width is set to a percentage of
the table cell size using the style attribute eg:
number of unemployed
For XY scatters, PHPs dynamic graphic producing capabilities are excellent.
See attached image for what ive done with it (plotting handwriting bas
Have you set the content type of the form to be multipart MIME ? That
screws me every time...
AndrewH
- Original Message -
From: "Christian Dechery" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 11:16 AM
Subject: [PHP] upload on Win9x
> I can't get file uplo
Try these:
http://www.uklinux.net/
http://www.any.za.net/
http://hosting.datablocks.net/free/
AndrewH
- Original Message -
From: "Frank K" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 03, 2001 9:41 AM
Subject: [PHP] Hosting for FREE??
Hi,
I am just learning PH
Can PHP for Oracle randomly access rows in a result set?
I have read documentation for both Oracle functions (ora_*) and Oracle 8
functions (OCI_*) but cant seem to find a way to randomly access rows in a
result set like you can with PostgreSQL or MySQL ... whats the story here?!
Are we FORCED to
Hey guys and gals - i think i finally found my all and end all PHP editor -
PHPEd - good stuff!
AndrewH
- Original Message -
From: "John LYC" <[EMAIL PROTECTED]>
To: "Andrew Halliday" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, Ma
I dont know what you call 'feasable' but this would be the most efficient
way of doing this:
function submitToServer()
{
document.forms['coolform'].action = '';
document.forms['coolform'].submit(); // May not be necessary
}
function submitToRegenerator()
{
It should be just as simple as understanding the following terms and when
they should be used:
- entity
- attribute
- relationship
- cardinality
- first normal form
- second normal form
- third normal form
- fourth normal form
- boyce-codd normal form (BCNF)
- fifth normal form (could ignore this
Does anyone know of a good PHP enabled editor that fits the following
criteria:?
(in order of importance)
- Is free
- Runs under Windows
- Has colors (syntax highlighting)
- Can edit multiple files (ie multi threaded)
- Reports line numbers
- Has good search & replace functionality
???
Ive been
This could be done in one of several ways:
- form : what you sound like you want to do seems prettey simple - why is it
not doable with a form?
- file upload : this seems more like what you are looking for ... use the
commands in Chapter 19 (File Uploads) of the PHP manual
The advantage with a f
Check out XVI. Directory functions and XX. Filesystem functions of the PHP
manual.
- Original Message -
From: "Jerry Lake" <[EMAIL PROTECTED]>
To: "Henrik Hansen" <[EMAIL PROTECTED]>; "php general"
<[EMAIL PROTECTED]>
Sent: Thursday, March 08, 2001 11:10 AM
Subject: [PHP] populate select
try
session_start();
before the if statement - otherwise it will always be FALSE...btw the
'unset()' is redundant i think.
- Original Message -
From: "Mike Yuen" <[EMAIL PROTECTED]>
To: "trogers" <[EMAIL PROTECTED]>
Cc: "Yasuo Ohgaki" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesd
Ahh damn - minor omission - add a '( )' after myclass constructor name :-)
AndrewH
- Original Message -----
From: "Andrew Halliday" <[EMAIL PROTECTED]>
To: "John LYC" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, March 05, 20
lass
>
> now.. can i do this?
> is there a performnance issue here?
> can i put this in the constructor?
>
> john
>
>
>
>
> Andrew Halliday wrote:
>
> > yes you can do all of this
> >
> > but in no OO language so far have i seen the ability to
yes you can do all of this
but in no OO language so far have i seen the ability to access a variable
inside a method...you would have to do this:
class myclass
{
var $myvar;
function setmyvar($newmyvar)
{
$this->myvar = $newmyvar;
}
}
Then you could do this:
$myclassObj = new myclass(
Ahh - dont worry about this post ... :)
AndrewH
- Original Message -
From: "Andrew Halliday" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 05, 2001 10:51 AM
Subject: [PHP] Why doesnt pass-by-value work?
> When I call this function:
>
>
When I call this function:
function getColumnName($col)
{
if ($col > 0 && $col < pg_numfields($this->lastResultSet))
return pg_fieldname($this->lastResultSet,$col);
else
return null;
}
It returns null all the time !
The condition is NOT the problem ... Ive
The following is an example demonstrating how to set up a foreign key
constraint in PostgreSQL 7:
CREATE SEQUENCE school_id_seq;
CREATE TABLE school (
school_id INT NOT NULL PRIMARY KEY DEFAULT nextval('school_id_seq'),
school_name VARCHAR(80) NOT NULL
);
CREATE SEQUENCE student_id_seq;
CR
Ahh dont worry - figured it out!!!
If anyone cares:
In the encapsulating class i had two copies of the same variable and i was
calling the local copy of open() not the object version ...
AARGH
- Original Message -
From: "Andrew Halliday" <[EMAIL PROTECTED]>
To: "
the encapsulator doesnt work - it seems to
lose $this->connection in PostgreSQLDataSource when its contained in
AbstractDataSourceManager !
... theres something screwball here - i mean - an object should be able to
access its own properties in any scope at any time shouldnt it ?
This is total
ce id #1
The connection in executeQuery() is :'Resource id #1'
Warning: 1 is not a valid PostgreSQL link resource in
/var/wwwroot/php/PostgreSQLDataSource.php on line 67
Object
--
WHAT THE HELL IS GOING ON ?!?!?!?! AARGH!
AndrewH
----- Original Message
age -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Andrew Halliday" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, March 02, 2001 11:13 AM
Subject: Re: [PHP] Loss of connection handle object
> Andrew,
>
> What
Okay - Im writing an object to wrap a database.
The key problem is this:
- it declares a connection var as an object property
- the open() function opens the connection to the database and stores
the handle in $this->connection
- the executeQuery() method complains about not having a v
Okay - Im writing an object to wrap a database.
The key problem is this:
- it declares a connection var as an object property
- the open() function opens the connection to the database and stores
the handle in $this->connection
- the executeQuery() method complains about not having a v
27 matches
Mail list logo