[PHP] Problem with inheritance mechanism.

2002-04-16 Thread Steve Dix
=>"", "selektiert"=>"", "onchange"=>"", "class"=>"" ),
array( "ausgabe"=>array("moo","quack","baa","woof"), 
"wert"=>array(1,2,3,4) )
);

$pull->output_select();

// here you connect to the db - pconnect removed for security

$dbpul = new pulldown_db(
array("query"=>"select id,medientyp from 
medientyp","name"=>"database", "size"=>"", "text"=>"Another test 
select", "mehrfach"=>"", "selektiert"=>"", "onchange"=>"", 
"class"=>""),
array("ausgabe"=>array("--"), "wert"=>array(0))
);

if(is_object($dbpul))
{
$dbpul->output_select();
}
else
echo "Fail $dbpul\n";

?>Steve Dix>==<[EMAIL PROTECTED]
http://www.stevedix.de/
http://www.snorty.net/
http://www.mp3.com/simpletons
http://www.geocities.com/motorcity/2706


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




RE: [PHP] Faking a form POST

2002-04-16 Thread Steve Dix

On 16 Apr 2002 at 12:22, .ben wrote:

> hmm, i was kinda after an in-process component like the ASP components
> ASPHTTP (http://www.ServerObjects.com) and ASPTear
> (http://www.alphasieraapapa.com).
> 
> cheers tho,
> 
>  .b
> 

Try this :

You will have to encode your data in a similar manner to a get 
method, only without using the ?  ie

to send hello = 1,  mouse=brown

&hello=1&mouse=brown

in $data_to_send


Steve Dix>==<[EMAIL PROTECTED]
http://www.stevedix.de/
http://www.snorty.net/
http://www.mp3.com/simpletons
http://www.geocities.com/motorcity/2706


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




Re: [PHP] Problem with inheritance mechanism.

2002-04-16 Thread Steve Dix

On 16 Apr 2002 at 12:59, Steve Dix wrote:

> 
> I'm having a bit of a problem with the following classes.
> 

Found the problem and it all comes down to the use of mysql_fetch_row 
as opposed to using mysql_fetch_array to get the results.

For some reason mysql_fetch_row corrupts the object returned to the 
last result, but mysql_fetch_array doesn't.

This is on php 4.0.6 as an Apache module.

Wonder why?

Steve Dix>==<[EMAIL PROTECTED]
http://www.stevedix.de/
http://www.snorty.net/
http://www.mp3.com/simpletons
http://www.geocities.com/motorcity/2706


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