[PHP-DEV] Bug #13055 Updated: When GetImgSize/ ImageSX invoked - errroneous error msg

2001-08-31 Thread cynic

ID: 13055
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: GetImageSize related
Operating System: Win98SE  UNIX
PHP Version: 4.0.6
New Comment:

user feedback:
*

From: Malcolm Clark [EMAIL PROTECTED]
To: Bug Database [EMAIL PROTECTED]
Date: Thu, 30 Aug 2001 19:12:10 +0100

 What is the error message you get?

No Database selected

 And please add a SHORT standalone example script
 which does not depend on databases.

I don't think this is possible, considering the above error msg emanates
from a db request. ( mysql_error(); )
I suggest using any mysql db on your system and changing  $C_db in
config.ini to the name of the test db you want to use. I've tried it here
and still get the problem. :(  Finally make up a simple INSERT statement or
something.

*

next time, use the web interface for replies. direct link to your PR is included in 
every mail from the bug db.

Previous Comments:


[2001-08-30 12:07:23] [EMAIL PROTECTED]

What is the error message you get? 
And please add a SHORT standalone example script
which does not depend on databases.

--Jani




[2001-08-30 06:23:00] [EMAIL PROTECTED]

I have isolated the problem domain in the following script. Required files are below 
it. Assuming you have a db created, the script duly INSERTs. Remove the comments from 
//$size... and I get this error,No Database selected, and yet you can $db1-getdb(); 
to simultaneously echo the db chosen. I tried ImageSX hoping to find a way round, but 
alasI'm here with a bug report.

?
require (config.ini);
require (mysqldb.obj);

$img_path = C:\Program Files\Apache 
Group\Apache\htdocs\img\images\marked\image6.png;
//$size= GetImageSize($img_path);

$db1 = new mysqldb();
$db1-setsql(INSERT INTO images 
(img_desc,img_fname,img_fsize,img_ftype,
img_xval,img_yval,img_tn_grp,img_cat,
img_angle,img_admit,img_up_date) 
VALUES 
(\$img_desc\,\$image_fname\,\$uploaded_image_size\,
\$uploaded_image_type\,\$img_xval\,\$img_yval\,
\$img_tn_grp\,\$img_cat\,\$img_angle\,\N\,\$img_up_date\)
); 

if(!$db1-deladdmod()){echo $db1-err ;exit;}


// 

?

config file
**


?

// FILE PATHS

$C_image_fpath  = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\uploads\\orig\\;
$C_thumb_fpath  = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\uploads\\thumbs\\;
// archive paths
$C_image_fpathA = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\archive\\orig\\;
$C_thumb_fpathA = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\archive\\thumbs\\;


// DATABASE

$C_host = localhost;
$C_db   = photo;
$C_username = ;
$C_password = ;

$C_table1   =images;
$C_table2   =author;
$C_table3   =archive;

//  # MAPS in grid

$C_map_num  = 9;


// makemap.obj

$MARKER_RGB = array (array(red,255,0,0),
 array(blue,0,0,255));
$MARKER_FONT= ARIAL.TTF;
$MARKER_FONT_SIZE   = 10;
$MARKER_TYPE= array (  , #164;);



// IMG FILES - supported file types and max upload fsize

$C_img_types=   .jpg/.jpeg;
$C_max_fsize=   200;
$C_max_fsize_bytes  =   204800;

// SITE

$C_site_name= PEAKAROUND;
$C_site_title   = BTHE SAWDS GALLERY#153;/B;
$C_site_title_txt   = THE SAWDS GALLERY;
//$C_nav_back   =   ;
$C_faq_txt  = Please refer to the HELP pages.;


// MAIL

$C_mail_admin   = [EMAIL PROTECTED];
$C_mail_from= [EMAIL PROTECTED];
$C_mail_feedback= [EMAIL PROTECTED];


// LOGIC

$C_true = 1;
$C_false= 0;

?

mysqldb.obj

?

class mysqldb 
{

var $host;
var $db;
var $dbuser;
var $dbpassword;
var $sql;
var $numberrows;
var $dbopenstatus;
var $dbconnection;
var $err;
var $qry;

// Property Get  Set

function gethost() {
return $this-dbhost;
}

function sethost($req_host) {
$this-dbhost = $req_host;

}

function getdb() {
return $this-db;
}

  

[PHP-DEV] Bug #13055 Updated: When GetImgSize/ ImageSX invoked - errroneous error msg

2001-08-31 Thread sniper

ID: 13055
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: GetImageSize related
Operating System: Win98SE  UNIX
PHP Version: 4.0.6
New Comment:

Please ask support questions on the mailing lists:

http://www.php.net/support.php

Also reading the manual would help.

--Jani


Previous Comments:


[2001-08-31 07:50:18] [EMAIL PROTECTED]

user feedback:
*

From: Malcolm Clark [EMAIL PROTECTED]
To: Bug Database [EMAIL PROTECTED]
Date: Thu, 30 Aug 2001 19:12:10 +0100

 What is the error message you get?

No Database selected

 And please add a SHORT standalone example script
 which does not depend on databases.

I don't think this is possible, considering the above error msg emanates
from a db request. ( mysql_error(); )
I suggest using any mysql db on your system and changing  $C_db in
config.ini to the name of the test db you want to use. I've tried it here
and still get the problem. :(  Finally make up a simple INSERT statement or
something.

*

next time, use the web interface for replies. direct link to your PR is included in 
every mail from the bug db.



[2001-08-30 12:07:23] [EMAIL PROTECTED]

What is the error message you get? 
And please add a SHORT standalone example script
which does not depend on databases.

--Jani




[2001-08-30 06:23:00] [EMAIL PROTECTED]

I have isolated the problem domain in the following script. Required files are below 
it. Assuming you have a db created, the script duly INSERTs. Remove the comments from 
//$size... and I get this error,No Database selected, and yet you can $db1-getdb(); 
to simultaneously echo the db chosen. I tried ImageSX hoping to find a way round, but 
alasI'm here with a bug report.

?
require (config.ini);
require (mysqldb.obj);

$img_path = C:\Program Files\Apache 
Group\Apache\htdocs\img\images\marked\image6.png;
//$size= GetImageSize($img_path);

$db1 = new mysqldb();
$db1-setsql(INSERT INTO images 
(img_desc,img_fname,img_fsize,img_ftype,
img_xval,img_yval,img_tn_grp,img_cat,
img_angle,img_admit,img_up_date) 
VALUES 
(\$img_desc\,\$image_fname\,\$uploaded_image_size\,
\$uploaded_image_type\,\$img_xval\,\$img_yval\,
\$img_tn_grp\,\$img_cat\,\$img_angle\,\N\,\$img_up_date\)
); 

if(!$db1-deladdmod()){echo $db1-err ;exit;}


// 

?

config file
**


?

// FILE PATHS

$C_image_fpath  = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\uploads\\orig\\;
$C_thumb_fpath  = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\uploads\\thumbs\\;
// archive paths
$C_image_fpathA = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\archive\\orig\\;
$C_thumb_fpathA = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\archive\\thumbs\\;


// DATABASE

$C_host = localhost;
$C_db   = photo;
$C_username = ;
$C_password = ;

$C_table1   =images;
$C_table2   =author;
$C_table3   =archive;

//  # MAPS in grid

$C_map_num  = 9;


// makemap.obj

$MARKER_RGB = array (array(red,255,0,0),
 array(blue,0,0,255));
$MARKER_FONT= ARIAL.TTF;
$MARKER_FONT_SIZE   = 10;
$MARKER_TYPE= array (  , #164;);



// IMG FILES - supported file types and max upload fsize

$C_img_types=   .jpg/.jpeg;
$C_max_fsize=   200;
$C_max_fsize_bytes  =   204800;

// SITE

$C_site_name= PEAKAROUND;
$C_site_title   = BTHE SAWDS GALLERY#153;/B;
$C_site_title_txt   = THE SAWDS GALLERY;
//$C_nav_back   =   ;
$C_faq_txt  = Please refer to the HELP pages.;


// MAIL

$C_mail_admin   = [EMAIL PROTECTED];
$C_mail_from= [EMAIL PROTECTED];
$C_mail_feedback= [EMAIL PROTECTED];


// LOGIC

$C_true = 1;
$C_false= 0;

?

mysqldb.obj

?

class mysqldb 
{

var $host;
var $db;
var $dbuser;
var $dbpassword;
var $sql;
var $numberrows;
var $dbopenstatus;
var $dbconnection;
var $err;
var $qry;

// Property Get  Set

function gethost() {
return $this-dbhost;
}

function 

[PHP-DEV] Bug #13055 Updated: When GetImgSize/ ImageSX invoked - errroneous error msg

2001-08-31 Thread mal

ID: 13055
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: GetImageSize related
Operating System: Win98SE  UNIX
PHP Version: 4.0.6
New Comment:

Also reading the manual would help.

--Jani

Ok, so I'm no great programmer, I don't know the manual inside out (then who does?) 
and I didn't use your web interface, but really..if you want to promote people to get 
involved with open source stuff and to at least try to evolve it, do you really think 
a RTFM response was the correct one?



Malcolm Clark



Previous Comments:


[2001-08-31 09:01:20] [EMAIL PROTECTED]

Please ask support questions on the mailing lists:

http://www.php.net/support.php

Also reading the manual would help.

--Jani




[2001-08-31 07:50:18] [EMAIL PROTECTED]

user feedback:
*

From: Malcolm Clark [EMAIL PROTECTED]
To: Bug Database [EMAIL PROTECTED]
Date: Thu, 30 Aug 2001 19:12:10 +0100

 What is the error message you get?

No Database selected

 And please add a SHORT standalone example script
 which does not depend on databases.

I don't think this is possible, considering the above error msg emanates
from a db request. ( mysql_error(); )
I suggest using any mysql db on your system and changing  $C_db in
config.ini to the name of the test db you want to use. I've tried it here
and still get the problem. :(  Finally make up a simple INSERT statement or
something.

*

next time, use the web interface for replies. direct link to your PR is included in 
every mail from the bug db.



[2001-08-30 12:07:23] [EMAIL PROTECTED]

What is the error message you get? 
And please add a SHORT standalone example script
which does not depend on databases.

--Jani




[2001-08-30 06:23:00] [EMAIL PROTECTED]

I have isolated the problem domain in the following script. Required files are below 
it. Assuming you have a db created, the script duly INSERTs. Remove the comments from 
//$size... and I get this error,No Database selected, and yet you can $db1-getdb(); 
to simultaneously echo the db chosen. I tried ImageSX hoping to find a way round, but 
alasI'm here with a bug report.

?
require (config.ini);
require (mysqldb.obj);

$img_path = C:\Program Files\Apache 
Group\Apache\htdocs\img\images\marked\image6.png;
//$size= GetImageSize($img_path);

$db1 = new mysqldb();
$db1-setsql(INSERT INTO images 
(img_desc,img_fname,img_fsize,img_ftype,
img_xval,img_yval,img_tn_grp,img_cat,
img_angle,img_admit,img_up_date) 
VALUES 
(\$img_desc\,\$image_fname\,\$uploaded_image_size\,
\$uploaded_image_type\,\$img_xval\,\$img_yval\,
\$img_tn_grp\,\$img_cat\,\$img_angle\,\N\,\$img_up_date\)
); 

if(!$db1-deladdmod()){echo $db1-err ;exit;}


// 

?

config file
**


?

// FILE PATHS

$C_image_fpath  = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\uploads\\orig\\;
$C_thumb_fpath  = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\uploads\\thumbs\\;
// archive paths
$C_image_fpathA = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\archive\\orig\\;
$C_thumb_fpathA = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\archive\\thumbs\\;


// DATABASE

$C_host = localhost;
$C_db   = photo;
$C_username = ;
$C_password = ;

$C_table1   =images;
$C_table2   =author;
$C_table3   =archive;

//  # MAPS in grid

$C_map_num  = 9;


// makemap.obj

$MARKER_RGB = array (array(red,255,0,0),
 array(blue,0,0,255));
$MARKER_FONT= ARIAL.TTF;
$MARKER_FONT_SIZE   = 10;
$MARKER_TYPE= array (  , #164;);



// IMG FILES - supported file types and max upload fsize

$C_img_types=   .jpg/.jpeg;
$C_max_fsize=   200;
$C_max_fsize_bytes  =   204800;

// SITE

$C_site_name= PEAKAROUND;
$C_site_title   = BTHE SAWDS GALLERY#153;/B;
$C_site_title_txt   = THE SAWDS GALLERY;
//$C_nav_back   =   ;
$C_faq_txt  = Please refer to the HELP pages.;


// MAIL

$C_mail_admin   = [EMAIL PROTECTED];
$C_mail_from= [EMAIL PROTECTED];
$C_mail_feedback= [EMAIL PROTECTED];


// LOGIC

$C_true = 1;
$C_false= 0;

?

mysqldb.obj

?

class mysqldb 
{

var $host;

[PHP-DEV] Bug #13055 Updated: When GetImgSize/ ImageSX invoked - errroneous error msg

2001-08-31 Thread cynic

ID: 13055
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: GetImageSize related
Operating System: Win98SE  UNIX
PHP Version: 4.0.6
New Comment:

Did you really test that this script is the shortest one that reproduces the problem, 
and that it isn't a PEBKAC, i. e. a flaw in the program logic? 300 lines isn't what 
most people would call a short script.


Previous Comments:


[2001-08-31 12:12:58] [EMAIL PROTECTED]

Also reading the manual would help.

--Jani

Ok, so I'm no great programmer, I don't know the manual inside out (then who does?) 
and I didn't use your web interface, but really..if you want to promote people to get 
involved with open source stuff and to at least try to evolve it, do you really think 
a RTFM response was the correct one?



Malcolm Clark





[2001-08-31 09:01:20] [EMAIL PROTECTED]

Please ask support questions on the mailing lists:

http://www.php.net/support.php

Also reading the manual would help.

--Jani




[2001-08-31 07:50:18] [EMAIL PROTECTED]

user feedback:
*

From: Malcolm Clark [EMAIL PROTECTED]
To: Bug Database [EMAIL PROTECTED]
Date: Thu, 30 Aug 2001 19:12:10 +0100

 What is the error message you get?

No Database selected

 And please add a SHORT standalone example script
 which does not depend on databases.

I don't think this is possible, considering the above error msg emanates
from a db request. ( mysql_error(); )
I suggest using any mysql db on your system and changing  $C_db in
config.ini to the name of the test db you want to use. I've tried it here
and still get the problem. :(  Finally make up a simple INSERT statement or
something.

*

next time, use the web interface for replies. direct link to your PR is included in 
every mail from the bug db.



[2001-08-30 12:07:23] [EMAIL PROTECTED]

What is the error message you get? 
And please add a SHORT standalone example script
which does not depend on databases.

--Jani




[2001-08-30 06:23:00] [EMAIL PROTECTED]

I have isolated the problem domain in the following script. Required files are below 
it. Assuming you have a db created, the script duly INSERTs. Remove the comments from 
//$size... and I get this error,No Database selected, and yet you can $db1-getdb(); 
to simultaneously echo the db chosen. I tried ImageSX hoping to find a way round, but 
alasI'm here with a bug report.

?
require (config.ini);
require (mysqldb.obj);

$img_path = C:\Program Files\Apache 
Group\Apache\htdocs\img\images\marked\image6.png;
//$size= GetImageSize($img_path);

$db1 = new mysqldb();
$db1-setsql(INSERT INTO images 
(img_desc,img_fname,img_fsize,img_ftype,
img_xval,img_yval,img_tn_grp,img_cat,
img_angle,img_admit,img_up_date) 
VALUES 
(\$img_desc\,\$image_fname\,\$uploaded_image_size\,
\$uploaded_image_type\,\$img_xval\,\$img_yval\,
\$img_tn_grp\,\$img_cat\,\$img_angle\,\N\,\$img_up_date\)
); 

if(!$db1-deladdmod()){echo $db1-err ;exit;}


// 

?

config file
**


?

// FILE PATHS

$C_image_fpath  = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\uploads\\orig\\;
$C_thumb_fpath  = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\uploads\\thumbs\\;
// archive paths
$C_image_fpathA = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\archive\\orig\\;
$C_thumb_fpathA = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\archive\\thumbs\\;


// DATABASE

$C_host = localhost;
$C_db   = photo;
$C_username = ;
$C_password = ;

$C_table1   =images;
$C_table2   =author;
$C_table3   =archive;

//  # MAPS in grid

$C_map_num  = 9;


// makemap.obj

$MARKER_RGB = array (array(red,255,0,0),
 array(blue,0,0,255));
$MARKER_FONT= ARIAL.TTF;
$MARKER_FONT_SIZE   = 10;
$MARKER_TYPE= array (  , #164;);



// IMG FILES - supported file types and max upload fsize

$C_img_types=   .jpg/.jpeg;
$C_max_fsize=   200;
$C_max_fsize_bytes  =   204800;

// SITE

$C_site_name= PEAKAROUND;
$C_site_title   = BTHE SAWDS GALLERY#153;/B;
$C_site_title_txt   = THE SAWDS GALLERY;
//$C_nav_back   =   ;
$C_faq_txt  = Please refer to the HELP pages.;


// MAIL


[PHP-DEV] Bug #13055 Updated: When GetImgSize/ ImageSX invoked - errroneous error msg

2001-08-31 Thread mal

ID: 13055
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: GetImageSize related
Operating System: Win98SE  UNIX
PHP Version: 4.0.6
New Comment:

Basically, do what you want with it. I have a solution to circumvent the problem for 
my script. You may already know that it's an error with my logic and that I should've 
RTFM etc - I don't know! If this is not the case then WYSIWYG.

Previous Comments:


[2001-08-31 13:05:13] [EMAIL PROTECTED]

Did you really test that this script is the shortest one that reproduces the problem, 
and that it isn't a PEBKAC, i. e. a flaw in the program logic? 300 lines isn't what 
most people would call a short script.




[2001-08-31 12:12:58] [EMAIL PROTECTED]

Also reading the manual would help.

--Jani

Ok, so I'm no great programmer, I don't know the manual inside out (then who does?) 
and I didn't use your web interface, but really..if you want to promote people to get 
involved with open source stuff and to at least try to evolve it, do you really think 
a RTFM response was the correct one?



Malcolm Clark





[2001-08-31 09:01:20] [EMAIL PROTECTED]

Please ask support questions on the mailing lists:

http://www.php.net/support.php

Also reading the manual would help.

--Jani




[2001-08-31 07:50:18] [EMAIL PROTECTED]

user feedback:
*

From: Malcolm Clark [EMAIL PROTECTED]
To: Bug Database [EMAIL PROTECTED]
Date: Thu, 30 Aug 2001 19:12:10 +0100

 What is the error message you get?

No Database selected

 And please add a SHORT standalone example script
 which does not depend on databases.

I don't think this is possible, considering the above error msg emanates
from a db request. ( mysql_error(); )
I suggest using any mysql db on your system and changing  $C_db in
config.ini to the name of the test db you want to use. I've tried it here
and still get the problem. :(  Finally make up a simple INSERT statement or
something.

*

next time, use the web interface for replies. direct link to your PR is included in 
every mail from the bug db.



[2001-08-30 12:07:23] [EMAIL PROTECTED]

What is the error message you get? 
And please add a SHORT standalone example script
which does not depend on databases.

--Jani




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=13055


Edit this bug report at http://bugs.php.net/?id=13055edit=1


-- 
PHP Development Mailing 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]




[PHP-DEV] Bug #13055 Updated: When GetImgSize/ ImageSX invoked - errroneous error msg

2001-08-31 Thread mal

ID: 13055
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: GetImageSize related
Operating System: Win98SE  UNIX
PHP Version: 4.0.6
New Comment:

Basically, do what you want with it. I have a solution to circumvent the problem for 
my script. You may already know that it's an error with my logic and that I should've 
RTFM etc - I don't know! If this is not the case then WYSIWYG.

Previous Comments:


[2001-08-31 15:17:33] [EMAIL PROTECTED]

Basically, do what you want with it. I have a solution to circumvent the problem for 
my script. You may already know that it's an error with my logic and that I should've 
RTFM etc - I don't know! If this is not the case then WYSIWYG.



[2001-08-31 13:05:13] [EMAIL PROTECTED]

Did you really test that this script is the shortest one that reproduces the problem, 
and that it isn't a PEBKAC, i. e. a flaw in the program logic? 300 lines isn't what 
most people would call a short script.




[2001-08-31 12:12:58] [EMAIL PROTECTED]

Also reading the manual would help.

--Jani

Ok, so I'm no great programmer, I don't know the manual inside out (then who does?) 
and I didn't use your web interface, but really..if you want to promote people to get 
involved with open source stuff and to at least try to evolve it, do you really think 
a RTFM response was the correct one?



Malcolm Clark





[2001-08-31 09:01:20] [EMAIL PROTECTED]

Please ask support questions on the mailing lists:

http://www.php.net/support.php

Also reading the manual would help.

--Jani




[2001-08-31 07:50:18] [EMAIL PROTECTED]

user feedback:
*

From: Malcolm Clark [EMAIL PROTECTED]
To: Bug Database [EMAIL PROTECTED]
Date: Thu, 30 Aug 2001 19:12:10 +0100

 What is the error message you get?

No Database selected

 And please add a SHORT standalone example script
 which does not depend on databases.

I don't think this is possible, considering the above error msg emanates
from a db request. ( mysql_error(); )
I suggest using any mysql db on your system and changing  $C_db in
config.ini to the name of the test db you want to use. I've tried it here
and still get the problem. :(  Finally make up a simple INSERT statement or
something.

*

next time, use the web interface for replies. direct link to your PR is included in 
every mail from the bug db.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=13055


Edit this bug report at http://bugs.php.net/?id=13055edit=1


-- 
PHP Development Mailing 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]




[PHP-DEV] Bug #13055 Updated: When GetImgSize/ ImageSX invoked - errroneous error msg

2001-08-30 Thread sniper

ID: 13055
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Old Bug Type: *Graphics related
Bug Type: GetImageSize related
Operating System: Win98SE  UNIX
PHP Version: 4.0.6
New Comment:

What is the error message you get? 
And please add a SHORT standalone example script
which does not depend on databases.

--Jani


Previous Comments:


[2001-08-30 06:23:00] [EMAIL PROTECTED]

I have isolated the problem domain in the following script. Required files are below 
it. Assuming you have a db created, the script duly INSERTs. Remove the comments from 
//$size... and I get this error,No Database selected, and yet you can $db1-getdb(); 
to simultaneously echo the db chosen. I tried ImageSX hoping to find a way round, but 
alasI'm here with a bug report.

?
require (config.ini);
require (mysqldb.obj);

$img_path = C:\Program Files\Apache 
Group\Apache\htdocs\img\images\marked\image6.png;
//$size= GetImageSize($img_path);

$db1 = new mysqldb();
$db1-setsql(INSERT INTO images 
(img_desc,img_fname,img_fsize,img_ftype,
img_xval,img_yval,img_tn_grp,img_cat,
img_angle,img_admit,img_up_date) 
VALUES 
(\$img_desc\,\$image_fname\,\$uploaded_image_size\,
\$uploaded_image_type\,\$img_xval\,\$img_yval\,
\$img_tn_grp\,\$img_cat\,\$img_angle\,\N\,\$img_up_date\)
); 

if(!$db1-deladdmod()){echo $db1-err ;exit;}


// 

?

config file
**


?

// FILE PATHS

$C_image_fpath  = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\uploads\\orig\\;
$C_thumb_fpath  = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\uploads\\thumbs\\;
// archive paths
$C_image_fpathA = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\archive\\orig\\;
$C_thumb_fpathA = C:\\Program Files\\Apache 
Group\\Apache\\htdocs\\img\\images\\archive\\thumbs\\;


// DATABASE

$C_host = localhost;
$C_db   = photo;
$C_username = ;
$C_password = ;

$C_table1   =images;
$C_table2   =author;
$C_table3   =archive;

//  # MAPS in grid

$C_map_num  = 9;


// makemap.obj

$MARKER_RGB = array (array(red,255,0,0),
 array(blue,0,0,255));
$MARKER_FONT= ARIAL.TTF;
$MARKER_FONT_SIZE   = 10;
$MARKER_TYPE= array (  , #164;);



// IMG FILES - supported file types and max upload fsize

$C_img_types=   .jpg/.jpeg;
$C_max_fsize=   200;
$C_max_fsize_bytes  =   204800;

// SITE

$C_site_name= PEAKAROUND;
$C_site_title   = BTHE SAWDS GALLERY#153;/B;
$C_site_title_txt   = THE SAWDS GALLERY;
//$C_nav_back   =   ;
$C_faq_txt  = Please refer to the HELP pages.;


// MAIL

$C_mail_admin   = [EMAIL PROTECTED];
$C_mail_from= [EMAIL PROTECTED];
$C_mail_feedback= [EMAIL PROTECTED];


// LOGIC

$C_true = 1;
$C_false= 0;

?

mysqldb.obj

?

class mysqldb 
{

var $host;
var $db;
var $dbuser;
var $dbpassword;
var $sql;
var $numberrows;
var $dbopenstatus;
var $dbconnection;
var $err;
var $qry;

// Property Get  Set

function gethost() {
return $this-dbhost;
}

function sethost($req_host) {
$this-dbhost = $req_host;

}

function getdb() {
return $this-db;
}

function setdb($req_db) {
$this-db = $req_db;
}

function getdbuser() {
return $this-dbuser;
}

function setdbuser($req_user) {
$this-dbuser = $req_user;
}

function getdbpassword() {
return $this-dbpassword;
}

function setdbpassword($req_password) {
$this-dbpassword = $req_password;
}

function getsql() {
return $this-sql;
}

function setsql($req_sql) {
$this-sql = $req_sql;
}