RE: [PHP-DB] Passing string variable to HTML TITLE tag fails within Netscape but works well within IE.

2002-10-15 Thread Howard Picken
Hi Darrian Have had similar problems. I got around it by wrapping all posted variables with rawurlencode(). This replace any spaces or special characters with an nasi equiv ie space with %20. IE will ignore it. GL Howard -Original Message- From: Darrian Walker [mailto:[EMAIL PROT

RE: [PHP-DB] oddity with insert multiple input fields to multipletables

2002-08-17 Thread Howard Picken
e a better way. Howard On Sat, 2002-08-17 at 15:44, Howard Picken wrote: > What about setting all fields have a default value, say 0, that > way you won't have a null but still a zero value. > > Howard That would just make the graphs drop to zero for those dates, which woul

[PHP-DB] Grrr... Redirection not working

2002-07-26 Thread Howard Picken
Hi folks Problem: I'm trying to protect a heap of email addresses on lots of pages from spammers. The pages are static pages on another site, (reason, they have to be), but as some of them are generated on my site using PHP/MYSQL I thought that the best way would be to redirect mail links to a p

RE: [PHP-DB] Having more problems

2002-07-07 Thread Howard Picken
Several things I've noticed. One, you have not body tags in your code anywhere. Just applying a style to the body doesn't (aas far as I know doesn't declare it in your code. Secondly, and I don't konw if you left it out to protect the innocent, but you haven't supplied a password for the databas

RE: [PHP-DB] auto increment

2002-06-14 Thread Howard Picken
If you run an optimize or a repair on your datafile it'll set the autoincrememtn back to next number Howard -Original Message- From: Daniele Baroncelli [mailto:[EMAIL PROTECTED]] Sent: Friday, 14 June 2002 11:27 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] auto increment Hi guys, The au

RE: [PHP-DB] Open file dialog box to save static file

2002-05-12 Thread Howard Picken
Excellence in internet and open source software --- Sunmaia www.sunmaia.net [EMAIL PROTECTED] tel. 0121-242-1473 --- > -----Original Message- > From: Howard Picken [mailto:[EMAIL PROTECTED

[PHP-DB] Open file dialog box to save static file

2002-05-12 Thread Howard Picken
I'm looking for a way to do the following I've created a php/mysql site for my wife for various database lists she has. She uses PHP locally on our on web server to add/manage entries but a lot of the pages need to be static and uploaded to a specific site (no PHP/MySQL). So I've give her a li

RE: [PHP-DB] Please help me! :(

2002-03-23 Thread Howard Picken
Can I ask why you're not using "autoincrement" for your id field? If you used this you would never have the problem your having. Everytime a record is added it will increment the id field by one, so you don't have to use all the code your using. Howard -Original Message- From: Leif K-Br

RE: [PHP-DB] finding ID's

2002-02-17 Thread Howard Picken
Hi Jon Try using something like $getlist = mysql_query("SELECT id FROM yourdb",$dbconnectetc); $numrows = mysql_num_rows($getlist); echo "$numrows\n"; This will give you the number of records in your db. If you use autoincrement for the id field your will not have to worry about your ++. If

[PHP-DB] Save generated page locally

2002-01-25 Thread Howard Picken
ample or a function to do this but haven't seen one. Any Ideas? TIA regards Howard Picken [EMAIL PROTECTED] Launceston, Tasmania, Australia -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

RE: [PHP-DB] mySQL administration on Linux through NT

2002-01-16 Thread Howard Picken
If you're running a web server on your Linux box then simply download, install and use phpMyAdmin. All your management is then down through web pages. I use it all the time. HP -Original Message- From: Jerry [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 16 January 2002 10:48 PM To: [EMAIL

RE: [PHP-DB] Accessing fields with the same name in MySQL

2001-08-27 Thread Howard Picken
You could try returning the whole info with an alias i.e. select tbl_job.id AS jobno, tbl_job.name.id, tbl_job.job, tbl_name.* from tbl_name, tbl_job where tbl_name.id = tbl_job.name_id; You should then be able to refer to the tbl_job.id as jobno in any $row function i.e. $jobnum=$row['jobno'

RE: [PHP-DB] Variables in MySQL Insert Queries

2001-08-25 Thread Howard Picken
You've created the query but haven't actually run the query. i.e. $result = mysql_query($sql); I'm new to this but I think that's what you're problem is. Howard -Original Message- From: plague [mailto:[EMAIL PROTECTED]] Sent: Friday, 24 August 2001 3:57 PM To: [EMAIL PROTECTED] Subj

RE: [PHP-DB] using ref

2001-08-22 Thread Howard Picken
Thanks Walter Sorry. I should have thought about more details. I'm using echo "$member"; (within php4 code) When I try this it just goes to the first letter (A) page because I've used an Isset on $memltr in members.php setting it to A if empty. It seems to be having trouble parsing out the p

[PHP-DB] using ref

2001-08-22 Thread Howard Picken
Hi I'm trying to use the A NAME tag on a php4 generated page. The pages being generated are alphabetically list (e.g. Page just lists people with surname starting with A) $member It doesn't work of course. Anyone have any ideas? Howard Picken -- PHP Database Mailing

RE: [PHP-DB] MySQL newbie: inserting new entry to table?

2001-07-30 Thread Howard Picken
I'm a learner too. But as I understand it, You make a connection to the database (or open it?). Once it's open or connected to, you can access the different tables within it. I think the difference between "mysql_db_query" & "mysql_query" is that later assumes that you all ready connected to the

RE: [PHP-DB] MySQL newbie: inserting new entry to table?

2001-07-29 Thread Howard Picken
Have a look at how I would insert data in your case. Howard -Original Message- From: sg [mailto:[EMAIL PROTECTED]] Sent: Sunday, 29 July 2001 8:57 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] MySQL newbie: inserting new entry to table? Hi folks! I'm new to PHP/mysql. I created a db wit

[PHP-DB] Filling a dropbox on form

2001-05-18 Thread Howard Picken
in to select from it. Howard Picken (Server, SQL, Query, PHP, MySQl, Apache, Freebsd... etc) [EMAIL PROTECTED] -- PHP Database 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

[PHP-DB] Excluding values of one array from another (sort of)

2001-05-03 Thread Howard Picken
;Q"=>"Q", "V"=>"V", "X"=>"X", "Z"=>"Z"); reset ($alphalist); reset ($exemptlist); while (list ($val) = each ($alphalist)) { if ($currltr <> $val) { $smlval = strtolower($val); echo &quo

[PHP-DB] Inserting correct value from database into form option field

2001-04-28 Thread Howard Picken
ages When I get the record and open it for editing it automatically selects the first option from the list. I would like it to show the original value from the stored record. Any ideas??.... Howard Picken [EMAIL PROTECTED] Launceston, Tasmania, Australia -- PHP Database Mailing List (http:

RE: [PHP-DB] A bit of help with a query needed.

2001-04-17 Thread Howard Picken
Thanks for that. I've cleaned up things a bit for the time being. I'm still getting an error though. Parse error: parse error in c:\usr\local\www\pages/ships.php on line 30 Line 30 turns out to be $convict = $row["convict"]; so I'm assuming that it's having trouble with the array. I've tried

[PHP-DB] A bit of help with a query needed.

2001-04-17 Thread Howard Picken
ct"]; echo "$convict\n"; } } Else { echo "Sorry no records for that letter\n"; } } ?> Obviously it doesn't work ("of course" or "how stupid" to some one out there) but we all gott