Multiple commands1024 (7/14/2004 6:48:41 PM) comp.lang.php In my PHP code, I want to execute the following two commands: use mydb; select * from mytbl; Now, I can get it work with the following statements: $SQL = "use mydb"; $result = mysql_query($SQL );... Bruce
Closing a web page131 (7/4/2004 3:47:25 AM) comp.lang.php What will the code look like to completely close a session? I want to put an "Exit" button on my form. Clicking this "Exit" button will cause the web page completely close down, just like clicking the "X" (clos... Bruce
Developing PHP pages in MS FrontPage231 (7/4/2004 3:43:47 AM) comp.lang.php I am doing my PHP development in MS FrontPage. At on time, when in Frontpage and I would double click on a page in my development folder, FrontPage would open it. Now when I double click, Notepad opens it. I ha... Bruce
ERROR 1045: Access denied for user251 (6/30/2004 2:50:31 AM) comp.lang.php What am I doing wrong? Do I have something set up (config file, et.al) wrong? The following is the senerio: Login as: mysql -u root Run cmd: grant all on * to fred identified by 'julebj'; Return: Quer... Bruce
Strange looking mysql.user table421 (6/30/2004 2:22:14 AM) comp.lang.php My MySQL.user table (user, host, password) looks like the following: +---------+-----------+---------------------+ | user | host | password | +---------+-----------+-----------... Bruce
Using MySQL Command Load Data Infile1416 (6/28/2004 3:28:57 AM) comp.lang.php When I execute this SQL statement in my PHP code, I get an error "File '.\Address.txt' not found (Errcode: 2)" $File = addslashes(".\Address.txt"); $SQL = "Load Data InFile \"" . $File . "\" into table address... Bruce
PHP code not displaying in IE 61317 (6/25/2004 6:45:44 PM) comp.lang.php I'm a newbie to PHP and am have problems getting simple PHP page (php_test_page.php) to display correctly. The page is: Test Line 1 Test Line 2'; ?> Test Line 1 displays fine by not the PHP... Bruce
Grant not working331 (12/18/2003 3:48:01 AM) comp.lang.php I am doing something wrong or have something set up wrong. When I issue mysql> grant all on * to mike identified by 'joented' with grant option; Query OK, 0 rows affected (0.69 sec) It looks lik... Bruce
session_start() fails421 (12/13/2003 4:44:11 AM) comp.lang.php I get the following error message. Warning: session_start(): open(/tmp\sess_9c7a721569fd097dc4dad85162984ebc, O_RDWR) failed: No such file or directory (2) in c:\inetpub\wwwroot\julseth\serenadehoa\default.php... bruceaj
mysql_query return value422 (11/17/2003 5:00:55 AM) comp.lang.php I know the following $sql will fail since there is no Customer='Smith'. I want to determine how to test a failure of mysql_query. I thought mysql_query returned false if a query failed. The test fail path is n... Bruce
Emulate "Close" Button737 (10/24/2003 7:39:20 AM) comp.lang.php How do I emulate the web page "Close" Button, i. e. the "X" in the upper right hand corner of each web page? Thank you.... Bruce ... bruceaj1(57)
mysql_query return value422 (11/17/2003 5:00:55 AM) comp.lang.php I know the following $sql will fail since there is no Customer='Smith'. I want to determine how to test a failure of mysql_query. I thought mysql_query returned false if a query failed. The test fail path is n... bruceaj1(57)
session_start() fails421 (12/13/2003 4:44:11 AM) comp.lang.php I get the following error message. Warning: session_start(): open(/tmp\sess_9c7a721569fd097dc4dad85162984ebc, O_RDWR) failed: No such file or directory (2) in c:\inetpub\wwwroot\julseth\serenadehoa\default.php... bruceaj1(57)
Grant not working331 (12/18/2003 3:48:01 AM) comp.lang.php I am doing something wrong or have something set up wrong. When I issue mysql> grant all on * to mike identified by 'joented' with grant option; Query OK, 0 rows affected (0.69 sec) It looks lik... bruceaj1(57)
PHP code not displaying in IE 61317 (6/25/2004 6:45:44 PM) comp.lang.php I'm a newbie to PHP and am have problems getting simple PHP page (php_test_page.php) to display correctly. The page is: Test Line 1 Test Line 2'; ?> Test Line 1 displays fine by not the PHP... bruceaj1(57)
Using MySQL Command Load Data Infile1416 (6/28/2004 3:28:57 AM) comp.lang.php When I execute this SQL statement in my PHP code, I get an error "File '.\Address.txt' not found (Errcode: 2)" $File = addslashes(".\Address.txt"); $SQL = "Load Data InFile \"" . $File . "\" into table address... bruceaj1(57)
Strange looking mysql.user table421 (6/30/2004 2:22:14 AM) comp.lang.php My MySQL.user table (user, host, password) looks like the following: +---------+-----------+---------------------+ | user | host | password | +---------+-----------+-----------... bruceaj1(57)
ERROR 1045: Access denied for user251 (6/30/2004 2:50:31 AM) comp.lang.php What am I doing wrong? Do I have something set up (config file, et.al) wrong? The following is the senerio: Login as: mysql -u root Run cmd: grant all on * to fred identified by 'julebj'; Return: Quer... bruceaj1(57)
Developing PHP pages in MS FrontPage231 (7/4/2004 3:43:47 AM) comp.lang.php I am doing my PHP development in MS FrontPage. At on time, when in Frontpage and I would double click on a page in my development folder, FrontPage would open it. Now when I double click, Notepad opens it. I ha... bruceaj1(57)
Multiple commands1024 (7/14/2004 6:48:41 PM) comp.lang.php In my PHP code, I want to execute the following two commands: use mydb; select * from mytbl; Now, I can get it work with the following statements: $SQL = "use mydb"; $result = mysql_query($SQL );... bruceaj1(57)