[PHP-DB] Re: PHP not working with MySQL?

2003-03-27 Thread Bayu Susiloadhy
you have to install php-mysql package, in redHat 80, it's in 3rd CD. the package is php-mysql-4.2.2-8.0.5.i386.rpm [EMAIL PROTECTED] writes: Hi, I trying to get phpBB2 installed (a bulletin board (www.phpbb2.com)) and it needs php and mysql. I've got PHP running: a webmail programme works

[PHP-DB] Re: Problem in the returnvalue of a function

2003-01-22 Thread Bayu Susiloadhy
that means the result is not right, it happen when your query is failed,check your query, mysql_error() can help Ruprecht Helms writes: Hi Bayu Susiloadhy, thanks for your answer. function select_price($product_id,$quantity) { --cut-- return True; } --cut-- in the

[PHP-DB] Re: Problem in the returnvalue of a function

2003-01-20 Thread Bayu Susiloadhy
Ruprecht Helms writes: function select_price($product_id,$quantity) { --cut-- return True; } --cut-- $price=$ps_product_price->select_price($cart[$i]["product_id"],$cart[$i]["quanti ty"]); //printf("%.2f", $price["product_price"]); printf("%.2f",$price); you set the s

[PHP-DB] Re: ghost parse error?

2003-01-20 Thread Bayu Susiloadhy
actually your script shows like a mess in my mail, so i don't know where line 16 is,but i looking for the error by eliminating lines that i considered it's right while ($scrow = mysql_fetch_object($scobj); and i think may be your problem is here! -- STOP doing things that the computer c

[PHP-DB] Re: header?

2003-01-20 Thread Bayu Susiloadhy
there is a lot ways to do it,this is one and not the best of them create link in the particular category file: subcat 1 subcat 2 then in subcat.php: include("subcat".$category.$subcat.".php); when you click the 2nd link above it goes to subcat.php that includes subcat12.php subcat12.php is

[PHP-DB] Re: guestbook to db to email

2003-01-11 Thread Bayu Susiloadhy
i was do it in heredoc syntax,and it seems work fine to me: $mailbody=<< name:$name adress:$address phone:$phone EOF; John W. Holmes writes: I know this allready, I explained this in the original message. "I know how to manage sending simple form elements to an email (email,subject,body) a

[PHP-DB] Re: Session on PHP with MySQL

2003-01-11 Thread Bayu Susiloadhy
it seem to me you didn't use session at all, so where is the session problem? but i think i see some weird stuff that maybe caused the problem, (or may be another problem) : $action=preference>Preference why did you use "$" sign instead the "&" sign at the "$action=preferences"? it's very hel

[PHP-DB] Re: blob

2003-01-08 Thread Bayu Susiloadhy
it's very useful to store images in the db then in the other page show the image by selecting it then print it out to the page with "Content-type: image" (jpeg/gif/etc) header; But, i didn't find how to show pdf binary file so that the browser can directly call acrobat reader to show it, i tried