[PHP] Can't get accurate day of year

2002-01-05 Thread Hugh Danaher
Hello All and Happy New Year. I have a simple routine to get the year, date and the day of year. Year and date come out correctly but the day of year is one less than the date. It being January, it's easy to see the error. The only thing I can figure, is that the date(z) function gets a

Re: [PHP] Re: Can't get accurate day of year

2002-01-05 Thread Hugh Danaher
So, I add 1 to the number and move on. Thanks, Hugh - Original Message - From: Jim Winstead [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, January 05, 2002 3:24 PM Subject: [PHP] Re: Can't get accurate day of year Hugh Danaher [EMAIL PROTECTED] wrote: Hello All and Happy

Re: [PHP] Can't get accurate day of year

2002-01-06 Thread Hugh Danaher
Austin, Thanks for your input regarding the date(z) question. I did try ceil(date(z)) but the output using 'z' is an integer. I just used date(z)+1 and moved on. Thanks again, Hugh - Original Message - From: Austin Gonyou [EMAIL PROTECTED] To: Hugh Danaher [EMAIL PROTECTED] Sent

Re: [PHP] New to list

2002-01-11 Thread hugh danaher
try $total=((0.416 / $time) * 60) * 60); $output=number_format($total,2,'.',','); / / uses comma separators between thousands and a decimal point between the units and tenths. or $output=number_format(((0.416 / $time) * 60) * 60),2,'.',','); / / php is usually forgiving on combined operations.

Fw: [PHP] Piping data into a select box

2002-01-12 Thread hugh danaher
- Original Message - From: hugh danaher [EMAIL PROTECTED] To: Dean Householder [EMAIL PROTECTED] Sent: Saturday, January 12, 2002 7:12 PM Subject: Re: [PHP] Piping data into a select box Dean, give this a try. form action=?php print $php_self? method=post ?php select type=text

Re: [PHP] php-win broke on 'OLEAUT32.DLL'

2002-01-13 Thread hugh danaher
Dennis, I can't help you but I know the oleaut32.dll file is not part of the php install but part of the microsoft package. I got the same fault on an NT4 platform and know that a compacted oleaut32 file is on the distribution CD--I just can't do anything about it. Anyway, good luck, and if

Re: [PHP] CONTINUE - variable problem - help!

2002-01-16 Thread hugh danaher
Dani, Not that I've tried this exact condition but the internal portion of this array name works elsewhere. Give it a try. $row['${somename_.($var)}'] - Original Message - From: Dani [EMAIL PROTECTED] To: Stefan Rusterholz [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January

Re: [PHP] MySQL and PHP

2002-01-17 Thread hugh danaher
Brandon, Try using single quotes rather than doubles in the values e.g. ('something','something else') hugh - Original Message - From: Brandon Orther [EMAIL PROTECTED] To: PHP User Group [EMAIL PROTECTED] Sent: Thursday, January 17, 2002 2:25 PM Subject: [PHP] MySQL and PHP Hello, I

[PHP] Getting the last record in a mysql table

2002-01-17 Thread hugh danaher
Help! I thought this would be easy but it ain't. What I want is the id number of the last record in a table. I've tried a number of variations to the following but am getting no where! Any help will be greatly appreciated. Hugh $results=mysql_query( SELECT last_insert_id() FROM MY_TABLE );

Re: [PHP] Getting the last record in a mysql table

2002-01-17 Thread hugh danaher
Are you sure? I thought mysql_num_rows() would give you the ID number of the last row in a table IF AND ONLY IF there hasn't been any row deletions. I expect to have deletions, but I'll try it out anyway. Thanks, Hugh - Original Message - From: Jason Murray [EMAIL PROTECTED] To: 'hugh

Re: [PHP] Getting the last record in a mysql table FINALLY!!

2002-01-17 Thread hugh danaher
, the last (biggest) ID number. Niklas -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: 18. tammikuuta 2002 7:37 To: Php-General Subject: [PHP] Getting the last record in a mysql table Help! I thought this would be easy but it ain't. What I want is the id number

Fw: [PHP] PHP Equivalent of REXX x2c and c2x Functions

2002-01-23 Thread hugh danaher
- Original Message - From: hugh danaher [EMAIL PROTECTED] To: David Drewa [EMAIL PROTECTED] Sent: Wednesday, January 23, 2002 4:36 PM Subject: Re: [PHP] PHP Equivalent of REXX x2c and c2x Functions RTFN http://www.php.net/manual-lookup.php?pattern=Hex - Original Message

Re: [PHP] to evaluate ...

2002-01-23 Thread hugh danaher
If your heart is set upon using $width1... then write your variable like in the following: for ($i=1;$i=$some_end_number;$i++) { ${width.$i}=something width; } hugh - Original Message - From: Jason Wong [EMAIL PROTECTED] To: Thorsten Wandersmann [EMAIL PROTECTED]; [EMAIL

Re: [PHP] Displaying array of elements problem

2002-01-24 Thread hugh danaher
first, set up the array something like: $artist(Bon Jovi,N\'Sync,Boyzone,Britney Spears,Jethro Tull, Crosby\, Stills Nash); // note escape slash before single quote and comma I think they'll be needed, but maybe not. then set up your checkbox array something like: ?php print form

Re: [PHP] Must results from MySQL fetches always be an Array??

2002-01-25 Thread hugh danaher
try $something=settype(mysql_result($variable,0),string); - Original Message - From: daniel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 25, 2002 12:25 PM Subject: Re: [PHP] Must results from MySQL fetches always be an Array?? This is sort of a is there an

Re: [PHP] HTML lists PHP

2002-01-28 Thread hugh danaher
Try $teams[${r1.1}] or a variation on this theme hugh - Original Message - From: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED] To: Phil Schwarzmann [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, January 28, 2002 2:16 PM Subject: Re: [PHP] HTML lists PHP maybe you can try

[PHP] A dreaded Windows executable question

2002-01-28 Thread hugh danaher
Hi, I would like to know if there is a program similar to php in structure that I can use to make an executable program on a pc running Windows 95 (and above). Since the only language I can currently use is php, starting with something similar will be a big help. What I am trying to do, is

Re: [PHP] MySQL Newbie

2002-01-28 Thread hugh danaher
Ben, Making the assumption that you plan on using php as the language to place or extract data from the mysql database, you'll need to: open a mysql database on-line (or have the site manager do this for you) Write a php interface program which would write to, change or extract data from the

Re: [PHP] A dreaded Windows executable question

2002-01-28 Thread hugh danaher
to create and run in a window. True? Thanks again, Hugh - Original Message - From: Stephano Mariani [EMAIL PROTECTED] To: 'hugh danaher' [EMAIL PROTECTED]; 'Php-General' [EMAIL PROTECTED] Sent: Monday, January 28, 2002 2:59 PM Subject: RE: [PHP] A dreaded Windows executable question

[PHP] preg_replace() 'space' the final frontier

2002-01-30 Thread hugh danaher
What I am trying to do is have a line of text break at a space after reading 19 words. Having read the various methods of finding and replacing one character with another, I settled on preg_replace as my best choice, but this function doesn't accept a space in the regular expression slot.

Re: [PHP] mysql

2002-01-30 Thread hugh danaher
I don't know what the manual says, but if I were you I'd check this: mysql_select_db($db,$link) or die (Can't log in at this time); - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 30, 2002 9:51 PM Subject: Re: [PHP] mysql On

Re: [PHP] Re: preg_replace() 'space' the final frontier

2002-01-30 Thread hugh danaher
Mike, Thanks for your input on this. I'm getting better at php, but it does take time. Thanks again, Hugh - Original Message - From: Mike Frazer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 30, 2002 4:53 PM Subject: [PHP] Re: preg_replace() 'space' the final frontier

Re: [PHP] Anyone Up?

2002-02-01 Thread hugh danaher
I learned it as: echo ${check.$i}; and then was told to use an array... as in: echo $check[$i]; hugh - Original Message - From: Brian Clark [EMAIL PROTECTED] To: PHP is not a drug. [EMAIL PROTECTED] Sent: Thursday, January 31, 2002 11:38 PM Subject: Re: [PHP] Anyone Up? * Brian

Re: [PHP] Re: Anyone Up?

2002-02-01 Thread hugh danaher
I think you'll need something like this: VALUE=\'Your Name1\' / /single quote marks I believe (and I certainly could be wrong). otherwise it'll truncate at 'Your' of course, if this is what you want... Hugh - Original Message - From: Luke Welling [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] Re: Anyone Up?

2002-02-01 Thread hugh danaher
and is looking at Name # as the next instruction, which it isn't. My two cents for the evening. Hugh - Original Message - From: Brian Clark [EMAIL PROTECTED] To: PHP is not a drug. [EMAIL PROTECTED] Sent: Friday, February 01, 2002 12:54 AM Subject: Re: [PHP] Re: Anyone Up? * hugh danaher

[PHP] Address unknown

2002-02-02 Thread hugh danaher
Help, Some one please tell me to RTFN!, but first tell me where to look. :-) I have a page with an image of a map which delivers the following info to the address bar of someplace.php. the img src=image.gif ismap html code delivers the coordinates of the cursor when clicked. What I want to

Re: [PHP] Re: Address unknown

2002-02-02 Thread hugh danaher
- From: CC Zona [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 02, 2002 1:58 PM Subject: [PHP] Re: Address unknown In article 000e01c1ac31$2cdf6f20$017f@localhost, [EMAIL PROTECTED] (Hugh Danaher) wrote: Some one please tell me to RTFN!, but first tell me where to look

[PHP] imagecopy or why men don't use maps.

2002-02-02 Thread hugh danaher
Help! I have an image file which is a map of the local area. I want to put symbols on the map at various points, but I first need to get the php image function to work. My site has imaging enabled and I can create graphs from scratch, but this has stumped me so far. Any help will be greatly

Re: [PHP] Address unknown

2002-02-02 Thread hugh danaher
Jim, I did as you suggested and changed over to an input tag. Works great, but without your suggestion regarding the underling (someplace_y), I'd have never made it. Thanks, Hugh - Original Message - From: Jim Lucas [php] [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED]; Php-General

Re: [PHP] Re: imagecopy or why men don't use maps.

2002-02-03 Thread hugh danaher
web site but unfortunatly it's not parsing PHP correctly. Something went wrong during migration, but might be fixed in a couple of days. Hugh Danaher [EMAIL PROTECTED] wrote in message 000801c1ac61$a1d858c0$017f@localhost">news:000801c1ac61$a1d858c0$017f@localhost... Help!

Re: [PHP] if variable is equal to 2 through 4

2002-02-06 Thread hugh danaher
try: if ($variable=2 and $variable=4) echo hello; - Original Message - From: Erik Price [EMAIL PROTECTED] To: Jay Fitzgerald [EMAIL PROTECTED] Cc: PHP (E-mail) [EMAIL PROTECTED] Sent: Wednesday, February 06, 2002 1:33 PM Subject: Re: [PHP] if variable is equal to 2 through 4 Also,

Re: [PHP] Array !!!

2002-02-06 Thread hugh danaher
if you created a number array then just input number between the brackets: echo $array_name['some_number_goes_here']; if you want all array values to print: for ($i=0;$i=count($array_name);$i++) { echo $array_name[$i]; } if it's an associate array then input the name of the array

Re: [PHP] Php Projects

2002-02-08 Thread hugh danaher
How about an interactive map showing all the commercial breweries in the world. I'll input the ones I know about in Antarctica. - Original Message - From: mike cullerton [EMAIL PROTECTED] To: PHP-General [EMAIL PROTECTED] Sent: Friday, February 08, 2002 12:21 PM Subject: Re: [PHP] Php

[PHP] die! die! directory!

2002-02-08 Thread hugh danaher
Help! I've been beating on a problem all day and think I've isolated the problem to the following line: print input type=image src=./maps/map1.jpg name=coordinate ; If I call the statement as is, I get a little red x where my map should be. In earlier calls to the same directory, I can

[PHP] Re: die! die! directory!

2002-02-08 Thread hugh danaher
know. Hugh - Original Message - From: Philip Hallstrom [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED] Sent: Friday, February 08, 2002 5:05 PM Subject: Re: die! die! directory! what if you do this: print input type=image src=\./maps/map1.jpg\ name=coordinate ; ?? On Fri, 8

Re: [PHP] Math rounding problem

2002-02-08 Thread hugh danaher
ceil() maybe - Original Message - From: Charlie Killian [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 08, 2002 4:14 PM Subject: [PHP] Math rounding problem For an arbitrary large number I need to round() it up to the hundreds place if it is not divisible by 100 and

Re: [PHP] Re: die! die! directory!

2002-02-08 Thread hugh danaher
Jeannette [EMAIL PROTECTED] To: 'hugh danaher' [EMAIL PROTECTED] Sent: Friday, February 08, 2002 7:49 PM Subject: RE: [PHP] Re: die! die! directory! This is a standard HTML question, not a PHP question. If you do not include http:// or a / in front of the src value then it is taken as relative

Re: [PHP] Re: die! die! directory!

2002-02-08 Thread hugh danaher
Thanks Jason, I'll give it a try too. Hugh - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 08, 2002 9:20 PM Subject: Re: [PHP] Re: die! die! directory! On Saturday 09 February 2002 09:35, hugh danaher wrote: Phil, Thanks

Re: [PHP] Re: die! die! directory!

2002-02-08 Thread hugh danaher
anything like this? Hugh - Original Message - From: hugh danaher [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Friday, February 08, 2002 9:41 PM Subject: Re: [PHP] Re: die! die! directory! ok, I'll buy that, but. Now, in a strictly php page that is also failing intermittently I have

Re: [PHP] free usefull piece of code for everybody!

2002-02-09 Thread hugh danaher
Arik, Cute little applet. For your php project, I still think a map of all the known breweries would be nice. Everyone could put in their favorite. Hugh - Original Message - From: Arik Ashepa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 09, 2002 10:19 AM Subject:

[PHP] Help with my image

2002-02-11 Thread hugh danaher
Help! I have attached the code with which I am having difficulty (I have also attached the php configuration of my host provider). What is happening is that I can call up a jpeg file from ./maps and see that it makes it through to the next page, and I can then call the next jpeg file in the

Re: [PHP] image generation issues

2002-02-11 Thread hugh danaher
Adrian, If you're using the code displayed, you need to use $im before you destroy it. If you want to deal with it as a .png then use: ImagePNG($im,some_name.png,100); and then pick up the file anytime using img src=some_name.png You can later remove it from the server using:

Re: [PHP] a user_auth script.- Anyone see the problem ?

2002-02-12 Thread hugh danaher
Check for a closing bracket on this statement if($row[account_password]==$login_name // line 14 or 15 needs ) Hope this helps Hugh - Original Message - From: Matthew Darcy [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002

Re: [PHP] PHP and CGI

2002-02-12 Thread hugh danaher
is your file extension .php? hugh - Original Message - From: SpyProductions Support Team [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 11:25 AM Subject: [PHP] PHP and CGI I did some research in the archives on this, but couldn't come up with a straight

Re: [PHP] PHP and CGI

2002-02-12 Thread hugh danaher
That I know, the file with the php code needs to have the extension of .php I absolutely don't know anything about CGI, but could you somehow include a .php file in your script? - Original Message - From: SpyProductions Support Team [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED

Re: [PHP] About thumbnail functions

2002-02-12 Thread hugh danaher
don't know about the other questions, but the answer to #2 should be available running phpinfo() hugh - Original Message - From: M [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 3:43 PM Subject: [PHP] About thumbnail functions From: Torkil Johnsen [EMAIL

Re: [PHP] text grabber

2002-02-15 Thread hugh danaher
you can try something like: ?php include(file_with_just_the_table_and_html_tags.txt); ? put your table in the above file (of course with a different name!) then call it when ever you need to. Other's will disagree but you also need to give the destination file a .php extension. Hugh -

Re: [PHP] Empty form

2002-02-15 Thread hugh danaher
Using header() to return will clear the entire form where all you want is the person to fill in missing data. Yes? I'd use something like: if(!isset($name) die(Use the Browser's Back Button, fill in your name and hit the \Submit\ Button); if(!isset($address) die(Use the Browser's Back Button,

Re: [PHP] What Do You Think?

2002-02-15 Thread hugh danaher
I think you need to give us the link. Also, I think a site showing where all the commercial breweries are would be a nice project. hugh - Original Message - From: Arik Ashepa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 15, 2002 10:07 AM Subject: [PHP] What Do You

Re: [PHP] What Do You Think?

2002-02-15 Thread hugh danaher
I didn't intend to start a beer discussion, but last Friday Arik was asking for a project to do, and I was just reminding him of my suggestion. If I can work the bugs out of my image code, I might just put up a site where php people can input their local brewery/pub/whatever and see the results

Re: [PHP] Change gif image with php

2002-02-16 Thread hugh danaher
Rodrigo, I've been struggling with this for some time, so here goes: The php4 builds do not support .gif files, you'll need to change your files to .jpg or .png format, or use php3 (I can't change to php3). I use imagecreate() func. before imagecreatefromjpeg() func. because if I didn't do

Re: [PHP] phpmyadmin-mysql

2002-02-17 Thread hugh danaher
Start with something like the following and add mysql_list_dbs () to query the system for the available databases. Hugh !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head meta http-equiv=Content-Type content=text/html; charset=utf-8 titleInput Data Page/title ?php include

Re: [PHP] Re: help with Header call

2002-02-18 Thread hugh danaher
David, I hope that Robbie was able to solve your problem. But, if not, try isolating the variables from the text in the header. e.g. header(Location: .$relative./...?II=.$II.); Hugh - Original Message - From: David Robley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 18,

[PHP] Unicode TTF Font wingding's just don't cut it!

2002-02-19 Thread hugh danaher
Help Does anyone know where I can get a simple symbol font which is .ttf and unicode compatible. Seems that my php graphic program is very sensitive to ttf problems. It'll take one or two wingdings in imagettftext() before it up and dies. Your help will be greatly appreciated. Hugh

Re: [PHP] Unicode TTF Font wingding's just don't cut it!

2002-02-19 Thread hugh danaher
: Neil Freeman [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED] Cc: php [EMAIL PROTECTED] Sent: Tuesday, February 19, 2002 1:38 AM Subject: Re: [PHP] Unicode TTF Font wingding's just don't cut it! What symbols are you trying to use? Verdana is good enough for most unicode characters. hugh

Re: [PHP] really hopelessly stuck on this problem!

2002-02-19 Thread hugh danaher
When submitting data to the site that provides details from addresses and postcodes what is the last page you see, and what does its header look like. If it's the redirect page, where does it say it's going. Perhaps, you could send an amended header directly to that page, skip all the pages in

Re: [PHP] Paths and ImageCreate(), GetImageSize()...

2002-02-21 Thread hugh danaher
what font are you using? hugh - Original Message - From: Monty [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 1:10 AM Subject: [PHP] Paths and ImageCreate(), GetImageSize()... I'm having a hard time figuring out exactly how paths should be listed when

Re: [PHP] Help me

2002-02-26 Thread hugh danaher
Michele, Please show some lines of code in your next message so we can better understand your problem. Hugh - Original Message - From: Michele Salerno [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED] Sent: Tuesday, February 26, 2002 12:09 PM Subject: [PHP] Help me Because the my post

Re: [PHP] another GD question

2002-02-26 Thread hugh danaher
My $0.02--might have absolutely nothing to do with the problems you are having! I had strange problems with my image code which were due to the font I used. My code would run sometimes and sometimes die in the gate. Seems that you need a unicode font, and not all true type fonts are such. Hoping

Re: [PHP] textarea

2002-02-27 Thread hugh danaher
Maybe it's just an issue of using get rather than post. in the form. Hugh For every complex and difficult problem there is always a simple, easy answer--that's wrong. - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 27, 2002 8:55 AM

Re: [PHP] How to run a script leaving screen output of previous script

2002-03-04 Thread hugh danaher
Alex, If your link.php page has zero output to the screen, then you can do your database action and return to your main page by using a header command. header(location: mypage.php); On your link.php code, there should be no lines of code nor blank lines before the ?php call and no echo or print

Re: [PHP] mysql_query: how to uniquely identify the query???

2002-03-05 Thread hugh danaher
Simon, You can use the same name for your result as in: $query=SELECT * FROM table_name WHERE id='$variable'; $result=mysql_query($query); $array1=mysql_fetch_array($result); $query=SELECT * FROM table_name WHERE name='$variable2'; $result=mysql_query($query);

Re: [PHP] Re: Is there a GoTo Page Function?

2002-03-05 Thread hugh danaher
Andre, Have your form action point to a page that has your database storage code, and nothing else (no screen output at all!). Have this page start with the ?php tag with nothing above the tag (no html and no blank lines either!). Once your storage is complete, then use the header(location:

Re: [PHP] Is there a GoTo Page Function?

2002-03-05 Thread hugh danaher
Andre, My note on decision lines was in anticipation of your next question/problem of How do I handle things if the user doesn't fill in his name, address, whatever? My solution is check to see if the cell is filled and if not then quit the database storage and tell the person to fill in the

Re: [PHP] Is there a GoTo Page Function?

2002-03-05 Thread hugh danaher
money, buy food instead. Hope this helps, Hugh - Original Message - From: Andre Dubuc [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 6:35 PM Subject: Re: [PHP] Is there a GoTo Page Function? Hi Hugh, Well, actually my next question you've sort

Re: [PHP] Is there a GoTo Page Function?

2002-03-05 Thread hugh danaher
My wife knows I spend too much time in here. - Original Message - From: Andre Dubuc [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 9:40 PM Subject: Re: [PHP] Is there a GoTo Page Function? Hugh, Food? What's that? [Btw, my

Re: [PHP] Query bug, what is wrong?

2002-03-08 Thread hugh danaher
I think it should be single quote marks around the variables like you've used around the ok: $query = INSERT INTO projeto (nome,setor,arquivo,status) VALUES ('$qname','$qdes','$qFILE','ok'); Hope this helps, Hugh - Original Message - From: Robert V. Zwink [EMAIL PROTECTED] To: Daniel

Re: [PHP] Can someone tell me about database....

2002-03-08 Thread hugh danaher
Sean, hen I first got interested in programming datadriven websites way back in 2001, I read the article at the attached link: http://www.lycos.com/sitemap.asp. Learned a lot. Now that I know a bit more, why the hell would someone using ASP talk about the virtues of php and mysql? Hope this

Re: [PHP] Selecting a Queried Row

2002-03-09 Thread hugh danaher
Andre, The following code block is from a site I'm developing for a local museum. The site is now located at www.ironorchid.com/museum/ but will move eventually to its own site. In it, I have a list of the landmark trees, with links to a map showing the location of the tree, a link to

Re: [PHP] parse error? how can I print spesific message for all error mesage

2002-03-10 Thread hugh danaher
Your line 2 doesn't end with a semicolon and causes the parse error on the next line. I don't think you can suppress parse errors because your code isn't running yet. once your code is running you can append die() to any decision statement or you can append echo If (!isset($r)) die($r wasn't

Re: [PHP] parse error? how can I print spesific message for all error mesage

2002-03-11 Thread hugh danaher
please try the following and let us know what the results are. title? echo $res; ?/title img src=? echo $dir; ?/? echo $res; ?.jpg /body - Original Message - From: Ceyhun Güler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 11, 2002 12:41 AM Subject: Re: [PHP] parse

Re: [PHP] mysql problems

2002-03-12 Thread hugh danaher
Maarten, Perhaps table isn't the name of the table you want. If mysql can't find the table (in line 13?), your $result variable is empty and this causes (line 17?) to fail also. Hope this helps, Hugh - Original Message - From: Maarten Weyn [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] PHP Is Inserting (the same) Database Record Multiple Times In My HTML Output

2002-03-14 Thread hugh danaher
Morgan, You're the second one I've seen using do. What do? Is it in the php manual and I missed it? I changed your code slightly (to major if it's your baby). It might puke if the $row is empty for the While loop. If it does, try an @ sign before the while. I didn't test it but it looks

Re: [PHP] HELP PLEASE!

2002-03-28 Thread hugh danaher
The difficulty of using a FOR loop in a WHILE loop is that the data record doesn't change until the next WHILE loop. I've used variations of the following to get multiple columns of data from a database query. A variation of this should work. while ($cards=mysql_fetch_array($result)) { if

Re: [PHP] Mysql adding extra fields.

2002-03-28 Thread hugh danaher
Try, [type] can be int or char () or blob or real or something else drawn from the mysql manual $query=ALTER table_name ADD column_name [type] AFTER other_column_name; $result=mysql_query($query); if (!$result) die(couldn't alter table.mysql_error()); Hope this helps, Hugh - Original

Re: [PHP] Question about database-driven web sites.

2002-03-29 Thread hugh danaher
Though I just made a flat database (one table only) the attached article was useful in learning how to put together a mysql database using php. Hope this helps, Hugh - Original Message - From: GENESiS DESiGNS [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 2:22 AM

Re: [PHP] quotes

2002-04-12 Thread hugh danaher
Heidi, to your input: addslashes() to your output: stripslashes() Hope this helps, Hugh - Original Message - From: Heidi Belal [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED]; Egypt Developers [EMAIL PROTECTED]; Egypt Programmers [EMAIL PROTECTED]; js-jive mailing list [EMAIL

Re: [PHP] Weird intermittent No Database Selected problem

2002-06-06 Thread hugh danaher
Are all the variables needed for the function getting into your call_user_func()? Also, perhaps some aren't set or are being unset outside your function--say, you are opening a new page and not passing all the variables to it. The function (which apparently works) isn't getting set variables.

Re: [PHP] PHP function for listing number of columns in table

2002-06-08 Thread hugh danaher
try mysql_num_fields() Hugh - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 08, 2002 9:54 PM Subject: [PHP] PHP function for listing number of columns in table Pardon the probably stupid question but, Is there a PHP function for listing number

Re: [PHP] PHP function for listing number of columns in table

2002-06-10 Thread hugh danaher
what's the matter with using mssql_num_fields() and get the answer directly. $fields = mysql_list_fields($db, $table, $link); $columns = mysql_num_fields($fields); Hugh - Original Message - From: Mark [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; John

[PHP] the curse of the period

2002-06-11 Thread hugh danaher
This is certainly not a php question so boil me in oil the next time we meet. I have a php page which gets a file upload from the user and attempts to put the file in a remote directory. It is failing big time with the following warning: Warning: Unable to create

Re: [PHP] the curse of the period

2002-06-11 Thread hugh danaher
Thank you Jason, I'll give it a try. Hugh dot dot slash slash Oh what a relief it is! - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 11, 2002 2:33 AM Subject: Re: [PHP] the curse of the period On Tuesday 11 June 2002 17:04, hugh

Re: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread hugh danaher
Many will tell you that the goto command is extinct. It isn't, it's just evolved into the function command. What you do now is create a function: function some_name($variable,$other_variable,...) { some code here; } then, call it using :

Re: [PHP] How do I stop foreach if $menu not set??

2002-06-11 Thread hugh danaher
You should be able to contain your foreach statement within an if statement: if (isset($menu)) { foreach ($sub as $link = $name) ( $sublink .= lia href='.$link.'.$name./a/libr; } else { print menu variable not set } Hope this helps. Hugh - Original Message -

Fw: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread hugh danaher
- Original Message - From: hugh danaher [EMAIL PROTECTED] To: Carlos U. Cirello Filho [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, June 11, 2002 2:41 PM Subject: Re: [PHP] GOTO command. Doest it exist? Many will tell you that the goto command is extinct. It isn't, it's

Fw: [PHP] dynamic water marks?

2002-06-18 Thread hugh danaher
- Original Message - From: hugh danaher [EMAIL PROTECTED] To: Peter [EMAIL PROTECTED] Sent: Tuesday, June 18, 2002 9:53 PM Subject: Re: [PHP] dynamic water marks? You can use the image functions in php/GD to bring up a .jpg or .png image from an online directory, add text or whatever

Re: [PHP] How to put a new line character with fputs($birthday_file, $content);

2002-06-23 Thread hugh danaher
I think you can also use \t to separate the data into the various columns needed by excel - Original Message - From: Alfredo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 21, 2002 7:55 PM Subject: [PHP] How to put a new line character with fputs($birthday_file, $content);

Re: [PHP] imagecopyresized() problems

2002-06-24 Thread hugh danaher
Don't know if this helps, but the following works on my system. Hugh ?php $picture=../photos/$userfile_name; $size=getimagesize($picture); $height=$size[1]; $width=$size[0]; $max=200; // maximum dimension if ($height$width) { $nheight=$max; $nwidth=$width/($height/$max); } else {

Re: [PHP] PHP to create static images

2002-06-24 Thread hugh danaher
imagepng() should work. you can save the file on your server then call it up wherever you need it. The manual has more info on using image functions just type in image. hugh - Original Message - From: Campano, Troy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 24, 2002

Re: [PHP] need to change $ char in string

2002-06-29 Thread hugh danaher
try double \\ to escape the special characters used by php for variables and what not. I think I read it here on a previous post. Hope this helps Hugh - Original Message - From: Beverly Steiner [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Saturday, June 29, 2002 7:58 AM

Re: [PHP] png image doesn't show

2002-07-05 Thread hugh danaher
at it. /Joakim -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 10:05 AM To: php Subject: [PHP] png image doesn't show Hello all, I have been trying to modify the working of one of my pages which prints a png graph. What I had

Re: [PHP] Re: png image doesn't show

2002-07-06 Thread hugh danaher
Thanks Richard, I changed from using img src=graphit2.php to a href=graphit2.phpgraph/a and now get my graph, on a page of its own, without any error messages. Works just fine, or will, when I change how it gets its data. However, I do want to have the graph display on a page with other

Re: [PHP] importing .dat SQL Data into mySQL

2002-04-17 Thread hugh danaher
Dear Wizard of Menlo Park Jr.; Similar to what you want but not exactly the same. Use the bits that you can use. I recently took an excel spreadsheet converted it to a tab delimited text file and then stored the records into a mysql table using the following code: Hope this helps, Hugh html

Re: [PHP] Images and MySQL - please help

2002-04-17 Thread hugh danaher
It should be possible to do exactly what you want using the image functions in php. You can get an image add text and then save the image in a directory (or database I guess). Because adding a stamp takes milliseconds, why not just do the operation when it's needed and erase it when you're

Re: [PHP] form posting to a fake page

2002-04-17 Thread hugh danaher
You could try the following but I don't know if it would work on your set up. 1. have the form go to a php page that has no output to the screen. 2. store the input info in a database or file. 3. use a header(location: index.php) to go to your website index page. 4. use php on your index.php

Re: [PHP] Re: [HELP] redirect browser pass variable !

2002-04-21 Thread hugh danaher
{ header(Location: http://www.XXX.edu/index.php?variable=$variablesecond_variable=$second_vari able); exit;} You'll get to transfer about 255 characters using this method. hugh - Original Message - From: Adrian Ciutureanu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April

Re: [PHP] GD: º becomes $

2002-04-26 Thread hugh danaher
Another solution would be to add another imagestringup with only the O character at the right size and location. Hope this helps, Hugh - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 11:40 PM Subject: Re: [PHP] GD: º becomes $ At

Re: [PHP] What's wrong????

2002-04-29 Thread hugh danaher
Arpan De, you have mysql not mssql. Your statement might work if you change it from mssql_connect() to mysql_connect() Hope this helps, Hugh - Original Message - From: Arpan De [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 29, 2002 6:09 PM Subject: Re: [PHP] What's

Re: [PHP] Variable vs Constant

2002-05-28 Thread hugh danaher
Billy, There must be a limit to the number of variables you can use in php but I haven't run up against a limit yet, and php seems to run as fast on my high variable count code as my more mundane code. Obviously, the advantage of using variables is that you can group your variables/constants in

Re: [PHP] delete file contents before writing?

2002-06-03 Thread hugh danaher
Try unlink($file_name) then fopen($file_name,rw) unlink() deletes the whole file from the directory. Hope this helps. Hugh - Original Message - From: Jas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 03, 2002 8:37 AM Subject: [PHP] delete file contents before writing? Not

  1   2   3   >