[PHP-DB] "mysql_select_db() or die()" fails when db exists

2002-01-17 Thread Malcolm White
Hi, I am experiencing a problem with this function; funcion do_connect($server, $db, $user, $pass){ $link = @mysql_pconnect($server, $user, "$pass") or die("error: mysql_pconnect()"); mysql_select_db($db) or die("error: mysql_select_db()"); } when supplied with variables that are c

Re: [PHP-DB] mail() - Return-Path

2002-01-12 Thread Malcolm White
1. Message sends. 2/3. The code used is as per the annotated on line PHP manual [EMAIL PROTECTED] 11-Jan-2002 02:10 There used to be a note with a complete set of headers to use with the mail function but somehow now its gone so here they are again hope it helps :) $header

[PHP-DB] mail() - Return-Path

2002-01-12 Thread Malcolm White
I Have been trying to change the Return-Path: when using mail() but to no success. I have followed the examples in the documentation. Is there any hidden trick - Iam using apache 1.3.14, php 4.1.1 and sendmail 8.9.3. Thanks, Malcolm -- PHP Database Mailing List (http://www.php.net/) To unsub

Re: [PHP-DB] Image Sizes

2001-12-09 Thread Malcolm White
uot; [Rotate CCW]  [HOME]  [Rotate CW]"; echo ""; echo ""; //a bit of self promotion echo "Picture Viewer - Developed by Whitehouse Productions 2001"; ?> >X-POP3-Rcpt: mwhite@guru >Return-Path: <[

Re: [PHP-DB] Image Sizes

2001-12-09 Thread Malcolm White
List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] > > --- | WHITEHOUSE PRODUCTIONS| | Malco

[PHP-DB] Image Sizes

2001-12-08 Thread Malcolm White
Hi, I have a database that stores the location of image files - the images are all of different sizes. How can I get the screen size in order to scale the images according to the users screen. I can use GetImageSize() to determine the image size but cannot find a means of determining the screen s

[PHP-DB] MySQL UPDATE problem

2001-08-30 Thread Malcolm White
I am having a problem with UPDATE queries with MySQL. Insert, Delete, etc work fine. I have checked the query statement and it works fine directly with MySQL just not in a PHP script. An example function is; function update_gname($gid, $new_name){ $query = "UPDATE Groups SET GNa