[PHP] To much PHP (Newbie)

2001-01-23 Thread Mike Mike
Is there a such thing as to much code in an include file that will break it. Assuming that you have, say 20 people hitting that one page simultaniously. Will it just slow things or will it actually break (As in show code to the viewer)? Thanks --Mike ___

[PHP] Creating Graphs

2001-04-30 Thread Mike Mike
Hello, I was wonder if anyone knows of a place where I can get a good tutorial about making graphs for beginners using php. If so please let me know. Thank you --Mike __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices htt

[PHP] subtracting Dates

2001-05-01 Thread Mike Mike
Hello, I am trying to make a hit counter graph that will have 7 days to it. Monday thru Friday. I'm having problems getting the last 7 days. For instance today is 05-01-2001 I would like to determan the previous 7 days from that date. In VB Date - 7 = 04-24-2001 I would like this to work for an

[PHP] PHP using Forms

2001-05-04 Thread Mike Mike
Hello, I have a form field with this data in it: My Home 11 North 5th St St. Paul MN Phone: (555) 555- Fax: (555) 555- E-Mail: [EMAIL PROTECTED] When submited it goes into a mysql database. The problem i'm running into is that the output looks like this after the call from the mysql

RE: [PHP] PHP using Forms

2001-05-04 Thread Mike Mike
; [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 04, 2001 10:16 AM > To: 'Mike Mike'; [EMAIL PROTECTED] > Subject: RE: [PHP] PHP using Forms > > > Try this: > > $Home = nl2br($Home); // nl2br converts newlines > to s > > See http://www.php.net/nl2br for m

[PHP] Sorting an array.

2002-04-18 Thread Mike Mike
Hello, Here's what i'm working with. I'm figuring the distance between to points based on latitude and longitude. while ($row = mysql_fetch_array($result)) { //calculate distance between the two cities. $Lat2 = $row["Latitude"]; $Lon2 = $row["Longitude"]; $x = 69

[PHP] Spacing between $row["City"],$row["State"]

2001-03-27 Thread Mike Mike
Hello, Is there a way to get spacing between $row["City"],$row["State"] in the html output? I've tried echo "$row["City"], nbsp; $row["State"]"; and a bunch of other things and get Parse error: parse error, expecting `STRING' or `NUM_STRING' or `'$'' . The way I want the output is as follows: Du

[PHP] Submiting Data with an '

2001-07-05 Thread Mike Mike
Hello everyone, I'm having a problem of submiting an ' into a mysql database. When I have a ' it doesn't update or submit the data. but if I use \' it works fine. Does anyone know of a way around this. Thanks --Mike __ Do You Yahoo!? Get person

[PHP] Storing Java Script Varable into php variable

2001-07-20 Thread Mike Mike
Hello, I look through the php-general list database but could not find the answer. My question is I have some java script I want to store the java script variable into a php variable so I can submit it into a database. Here is the Java sript code. <-- function show(){ if (!document.all&&!document

[PHP] Date function

2001-08-15 Thread Mike Mike
Hello, I'm pulling a date out of MySQL as 2001-10-18. How do I make it print October 18 in php? Thanks much --Mike __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP Gene

[PHP] sorting a csv text file in PHP

2001-02-12 Thread Mike Mike
Hi list, I have a csv text file that looks like this: Mike,1,Monday 12th of February 2001 02:14:09 PM Bob,3,Monday 12th of February 2001 02:14:17 PM Marry,2,Monday 12th of February 2001 02:16:38 PM I'm trying to get it to sort by the 2nd value (number descending and to show only the top two high