[PHP-DB] setcookie

2003-09-05 Thread Ohlson Stefan
Hi!
(I'm using php3 on an apache-server)

I'm doing lika a shoppingcart where the user can put items.
By some reason, when I use setcookie, I can only save between 14-17 posts.

Example: 
 setcookie(items, item1);
 setcookie(items, item2);
 ...
 setcookie(items, item17);

After this it will not save any more items.
It seems to get full..?

NE1 had experience with this?
Or if you have a different and better way to store many 
items on the server for a user they are most welcome!

Thanx!
//Stefan

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



[PHP-DB] BinaryWrite in PHP?

2003-02-12 Thread Ohlson Stefan
Hi!
I want to let the user to be able to open or save a textdocument with 
text that I create on the fly with some select-statements. 
You know when you click on a button or a link and you get a question
if you what to Open the file or or Save it.

In ASP I can use Response.BinaryWrite, how can I do it in PHP?

Thanks!

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




[PHP-DB] DB-stored images

2002-11-26 Thread Ohlson Stefan
Title: DB-stored images






Hi!


I have a db where we stores images in the database but I haven't figured out how I display

that image after I've selected it from the table.


I've tried with IMG SRC='' and IMG SRC=""> but $data just return the Select-query:

htmlheadtitle/title/head

body bgcolor=cc text=00 link=ff vlink=ff

BPicture/BBRUL

IMG SRC=''91-29-65480-7''

/UL/body/html


Anyone have an idea what I can do?

Thanks!


Here is the script:

=

?

$handle = ORA_LOGON(something/something,) OR DIE(Unable to connect to database);


print htmlheadtitle/title/head\n;

print body bgcolor=cc text=00 link=ff vlink=ff\n;


if ($type == Author){

 $SqlStatement = SELECT ...;

} else if ($type == Titel){

 $SqlStatement = SELECT ...;

} else if ($type == Picture) {

 $SqlStatement = SELECT PICTURE FROM KATALOGUE WHERE ISBN = '$isbn';

}

$csr = ORA_OPEN($handle) OR DIE(Unable to open data database cursor);

ORA_PARSE($csr, $SqlStatement)OR DIE(Unable to parse query);

ORA_EXEC($csr) OR DIE(Unable to run query);


print B$type/BBRUL\n;

while(ORA_FETCH($csr)){

 $data = "">

 if ($type == Picture){

 print IMG SRC=''\n; 

 } else {

 print LI$data/LI\n;

 }

}


print /UL/body/html\n;


ORA_CLOSE($csr);

ORA_LOGOFF($handle);

?


//Stefan



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