RE: [PHP] PHP on one box, Apache on another?

2003-07-01 Thread Jay Blanchard
[snip] > Your intention is a little foggy. > PHP is server side, it works through the web server, thus Apache > parses the > scripts, so no, it can't. > > If you mean scripts on one box, database on another, no problem. > > Miles Thompson > > At 09:20 AM 7/1/20

RE: [PHP] PHP5 - Bugs

2003-07-01 Thread Jay Blanchard
[snip] Can't figure this out... whenever I try to use any mysql functions or anything, I get problems. PHP throws a DNS error... what's up with that? [/snip] Hey, Give us some more information and we might be able to start helping you. -- PHP General Mailing List (http://www.php.net/) To unsubsc

FW: [PHP] PHP5 - Bugs

2003-07-01 Thread Jay Blanchard
-Original Message- From: Michael A Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 1:40 PM To: Jay Blanchard Subject: RE: [PHP] PHP5 - Bugs I'm running on a RH9 box with Apache2. Going to pages that include the PEAR::DB file throw DNS errors, but much simpler pages d

RE: [PHP] Forms & PHP

2003-07-02 Thread Jay Blanchard
[snip] I have a form that gets filled out and within this form there is a link to add additional information in a new form. When this information is saved I would like the browser to redirect to the previous form (this I can do) but with all the details they have already filled out still in the te

RE: [PHP] outputting xml declaration

2003-07-02 Thread Jay Blanchard
[snip] print ""; This is probably because I print a questionmark? How can I avoid that an error is generated? Besides it's not an error in the way that it gives an errorstring but it writes the output in the error_log of apache... [/snip] Search the archives of this list, the subject comes up of

RE: [PHP] Forms & PHP

2003-07-02 Thread Jay Blanchard
[snip] By maintaining the POST (assuming you're using POST)variables and calling them into the form values when reloaded. If you go to the second page store the POST variables in hidden form input types, then grab them when the second page is POSTED. Does this make sense? Not enough caffeine for me

RE: [PHP] Forms & PHP

2003-07-02 Thread Jay Blanchard
[snip] You'll have to forgive me as I am unfamiliar with PHP, still a beginner!! So if I have a page (page1.php) which is my first page with a form. When I click a normal link within this form it takes me to page2.php. This page has another smaller form. When the submit button in this form is click

RE: [PHP] Re: PHP user group

2003-07-02 Thread Jay Blanchard
[snip] there are php user groups hmmm... there should a listing for that. someone should start a list... i wish there was one near me... [/snip] If we knew where you were we might be able to point you in the right direction. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] dynamic form display??

2003-07-03 Thread Jay Blanchard
[snip] On the form that I am creating I allow the user to browse for a file. I would like it that once the user selects the file, that it displays only the file information in a on the same page. The idea is that the user can keep browsing and selecting files and the file information (location a

RE: [PHP] (pas d'objet)

2003-07-08 Thread Jay Blanchard
[snip] PHP is designed for rapid development of web applications. Manipulating relational database data is not its strong point. [/snip] At the risk of starting a flame war . I think a lot of folks would take exception to the above statements. PHP is being used for complex web-apps, command

RE: [PHP] another big, juicy, delicious bug

2003-07-08 Thread Jay Blanchard
[snip] But then it will go and do something like this: Array ( [0] => 172.170.69.74 [1] => 172.141.183.231 [2] => 172.137.79.102 [3] => 172.151.144.242 [4] => 172.150.212.129 [5] => 172.158.154.92 ) // correct array Array ( [172.170.69.74 ] => 0 [172.141.183.231 ] => 1 [

RE: [PHP] PHP forum

2003-07-09 Thread Jay Blanchard
me four! Couldn't resist, and I loke the top posty thingie too. JB -Original Message- From: Dan Anderson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 7:39 AM To: PHP4 Emailer Cc: Richard Baskett; [EMAIL PROTECTED] Subject: RE: [PHP] PHP forum me three! j/k. -Dan On Wed,

[PHP] Antithesis to array_unique

2003-07-09 Thread Jay Blanchard
Having STFM I am wondering if anyone knows of a quick antithesis to array_unique? We have an array in which we need to return all duplicate values instead of the non-duplicates. Thanks Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Can php/mysql handle 10000s of records

2003-07-09 Thread Jay Blanchard
[snip] I am writing an attendance system in php/mysql for my school. We have a little less then 1000 students. For every day of the school year one record will be entered into a table for each student representing their attendance status (present, absent, late, etc...). I also have several othe

RE: [PHP] Can php/mysql handle 10000s of records

2003-07-09 Thread Jay Blanchard
[snip] Suprisingly MySQL is very good, as the others have said... I've been involved in a few sites that have been known to hammer the DB pretty hard.. And it's stood up to the test... Hmmm... I am sure others here can validate this... But I think the size limit for the database is about 4 gigs!!!

RE: [PHP] Simple forms query

2003-07-09 Thread Jay Blanchard
[snip] I have a form, and I want to display all the form variables on the target page - without having to use separate print statements for each variable. [/snip] print_r($_POST); or print_r($_GET); hth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

[PHP] Using PPP with PHP

2003-07-10 Thread Jay Blanchard
Good afternoon gurus and gurettes! Has any of you had any experience using PPP (Point-to-Point Protocol) with PHP? I need to work with it to establish a connection to a remote server on a remote network and was hoping that I could use PHP. Currently I can manually establish I dial-up using PPP ove

RE: [PHP] Using PPP with PHP

2003-07-10 Thread Jay Blanchard
[snip] Umm, use exec() to call the dialing program? [/snip] That works on the surface, but the PPP program returns some vital information about its connection status that is required for use by any subsequent file operations. The information is returned via STDOUT. Thanks! Jay -- PHP General Ma

RE: [PHP] just wondering

2003-07-11 Thread Jay Blanchard
[snip] Just wondering if there's a clear screen function in PHP like the clrscr() in 'C'. [/snip] If you are running PHP from the command line on a *nix or BSD box you could... exec("clear"); HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

[PHP] Enable GD on PHP 4.1.1 problems

2003-07-11 Thread Jay Blanchard
Argh! I am ready to pull out my hair on this. I have made sure that jpeg-6b is installed, libpng is installed, zlib etc. I can configure with ./configure --with-apxs=/usr/local/sbin/apxs --with-config-file-path=/usr/local/etc --enable-versioning --with-system-regex --disable-debug --enable-track-

RE: [PHP] Enable GD on PHP 4.1.1 problems SOLVED

2003-07-11 Thread Jay Blanchard
[snip] ... all of it ... [/snip] required installing the jpeg library first, png second, then gd Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Couple of questions form a PHP newbie

2003-07-14 Thread Jay Blanchard
[snip] First question: I'm creating a custom content manager for a small site. It will basically be used to store short articles (several paragraphs each). Now my question is, is storing these to a text file going to work or am I going to have problems later on when the file gets to be a reasonab

[PHP] PHP, Excel, jpgraph - can the graph be included in the Excel output?

2003-07-14 Thread Jay Blanchard
Good morning! I have several reports that are generated using PHP & MySQL for which I would like to include a graph using the excellent jpgraph (http://www.aditus.nu/jpgraph/) class for PHP. The file output for Excel is in the tab delimited format and the IMG tag is what calls the graph. I ha

RE: [PHP] PHP, Excel, jpgraph - can the graph be included in the Excel output?

2003-07-14 Thread Jay Blanchard
[snip] You need a class that can create xls files with images. Or you can create a Web Archive: http://officeupdate.microsoft.com/office/webarchive.htm [/snip] Thanks! We have looked at this, but have arrived at the problem of opening the file for the user. Here is the process in a nutshell... U

RE: [PHP] Mp3 Conversion, using PHP

2003-07-15 Thread Jay Blanchard
[snip] I'm wondering if there's any crazy dude out there that would like to join me in making a class for PHP to convert Mp3's to Mp3Pro. [/snip] Have you looked at sourceforge.org, search for mp3 a wealth of stuff is there -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

RE: [PHP] Display HTML/PHP code on a web page

2003-07-17 Thread Jay Blanchard
[snip] i'm not sure but i think a tag in html is available which name and [/snip] You can also put your code between tags (pre-formatted text) I do this to display pre formatted text in text area boxes title); // article title ?> By: name); //article author ?> Published: publish); //art

RE: [PHP] PHP/HTML Question

2003-07-17 Thread Jay Blanchard
[snip] I have a quick question about PHP and HTML. I have a page that is supposed to update the "status" of hosts by pinging each host and displaying the result. I would like to get the page to the point that I can have something (either PHP or JavaScript or the like) ping every 10 seconds or

RE: [PHP] Print help

2003-07-21 Thread Jay Blanchard
[snip] What I would like to do is to make an optional page that can print information to a specified printer. Can PHP do this? If so how??? [/snip] Start by RTFM at http://us3.php.net/printer HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

RE: [PHP] Changing numbers

2003-07-21 Thread Jay Blanchard
[snip] How can I make them have at least 2 decimal places? [/snip] RTFM at http://www.php.net/number_format HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] CSV import

2003-07-21 Thread Jay Blanchard
[snip] When using something like this: LOAD DATA LOCAL INFILE '/tmp/phpKBjUWb' INTO TABLE `indoma` FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n' How do I also insert a field not in the CSV. For example there are 8 fields in the CSV and 9 in the table. I want the ninth field to be the name

RE: [PHP] Changing numbers

2003-07-21 Thread Jay Blanchard
[snip] I would like it at least 2 decimal places.. So, 5.2670 would be 5.267 not 5.27: [/snip] RTFM for formatted string http://us3.php.net/sprintf or http://us3.php.net/printf HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] IE Issues

2003-07-22 Thread Jay Blanchard
[snip] Why is the font tag evil and depreciated ??? [/snip] This topic is better suited to an HTML or web-dev list, but the bottom line here is that CSS has been put into use as further effort to seperate design from content. The CSS recommedation being in place deprecates a lot of the old in-line

RE: [PHP] header & headers_sent BUG

2003-07-23 Thread Jay Blanchard
[snip] Hello all: I am having a hard time with a small piece of code. I was wondering if someone may be able to explain why the following code will not work... I have been scratching my head for a few hours now and I am stumped. http://someplace.com";); if( ! headers_sent()) header("Locat

RE: [PHP] I'm really getting annoyed with PHP

2003-07-23 Thread Jay Blanchard
[snip] Yes, I'm still screwing around with this stupid redirection thing, and either I'm just a total idiot or there are some serious problems with PHP. I have now tried to do it another way and - yes - you guessed it. It does not work. I mean really, it can not be this hard to redirect a user to

RE: [PHP] PHP Webpage like MySql- need to be able to see all fields and edit

2003-07-24 Thread Jay Blanchard
[snip] Hello. I am building a webpage for a sorority- http://www.olemissaoii.com . I built a basic php script where they add the sisters and their names, grad. date, and email. Is there anyway to build a page that shows all the fields where someone could go in and edit/add what they need? What

RE: [PHP] Include Problems

2003-07-24 Thread Jay Blanchard
[snip] The content would go here. Now, when I try to reference the subnav variable in the inHeader.php or incFooter.php files, it comes up blank. I am basically trying to adjust the navigation on each page depending on the page I am on. I am just learning PHP, have programmed in ColdFusi

RE: [PHP] ARRAY QUESTION

2003-07-24 Thread Jay Blanchard
[snip] Lets pretend I have this array called myStuff. If I add two elements to myStuff and call the count function, I will get a result of 2. My question is how do I re-initialize the array after adding elements so when I call the count function on the array, I get a result of 0. [/snip] If you ad

RE: [PHP] Include Problems

2003-07-24 Thread Jay Blanchard
[snip] <-incHeader.php--> [Site Name] home <-incHeader.php--> [/snip] home"); } ?> HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Include Problems

2003-07-24 Thread Jay Blanchard
[snip] What is different about the code that you wrote except that you have the html being output by php? [/snip] I just cleaned it up some, used non deprecated formatting tags and sis it all in one shot. HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

RE: [PHP] PHP should know my data!

2003-07-25 Thread Jay Blanchard
[snip] > >Unfortunately I don't think some people "got" the joke. Next thing you > >know their going to complain that PHP should have told them the > >punchline ;) [/snip] RTFM at http://www.php.net/itsajoke or STFW at http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=PHP+jokes (which, BTW ha

RE: [PHP] PHP should know my data!

2003-07-25 Thread Jay Blanchard
[snip] Quit horsing around fellas, what if the developers take interest in this thread and decide it's a good idea to release PHP6 with cranial electrodes that will detect "what I want to do", and instead of me having to code the application, PHP will just spit out the application... That way our b

RE: [PHP] cms design & xml-php ?

2003-07-25 Thread Jay Blanchard
[snip] > Is there any php book that discusses general design issues for cms's and > webservices in php? [/snip] http://www.glasshaus.com has a book on CMS, but it is fairly general. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Jay Blanchard
[snip] I found out that it works fine without the submit button that I had in there. When I take the submit button out, it works, if I put it back in there I get the error message again. Any ideas? [/snip] Are you naming the submit buttons? Not just value, but id or name? You must keep them se

RE: [PHP] Freeze Pane

2003-07-25 Thread Jay Blanchard
[snip] And since it probably isn't, can someone suggest a language that would cover this subject? [/snip] JavaScript or any other client-side magic. HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] $person = mysql_query("Some Statement Here"); if (!$person || $person == 0 || $person == '' || $person == '0') { $result = 1; } else { $result = 4; } If the SQL statement returns an empty set, shouldn't $result be equal to 1? Instead, I'm getting $result = 4. [/snip] Actually I think we n

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] Here's the SQL - I tested it via command line and it comes back empty set. SELECT ID FROM tblItems WHERE number = $place > > [snip] > $person = mysql_query("Some Statement Here"); > > if (!$person || $person == 0 || $person == '' || $person == '0') { > $result = > 1; } > else { $result =

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] ...lots of stuff... [/snip] What I forgot to say is that basically you were testing for query execution, not the number of rows returned from the database. If you want to test the number of rows or some other result from the query you have to go further. HTH! -- PHP General Mailing List

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] I know. I first tested for !$person but got the TRUE result when I should have received FALSE (empty set). Why would that be? I added '0' and such just to see if I wasn't thinking straight. :\ -Mike [/snip] If the query executes it will return TRUE for $person, so if(!$person) woul

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] Off hand, I would agree. And that is what I would expect. However, the *exact* same setup on a different server gives me a result of 'FALSE' properly. The other server has php 4.3.3 on it - the one giving the improper response has php 4.1.2. Could this be the issue? [/snip] It sounds un

RE: Fw: [PHP] debuging and getting mor information about failures

2003-07-29 Thread Jay Blanchard
[snip] I wonder why the heck the author didn't just go for the alternative syntax with proper end-tokens and get the added value they deliver. [/snip] At the risk of stepping of of the curb into the holy-war that rages about this the answer Mike is that a lot of PHP coders are what as known as "ol

RE: [PHP] Is there an alternative to HTML frames?

2003-07-29 Thread Jay Blanchard
[snip] I'm new to php and web development in general. I've toyed with ASP a little and enjoyed using "include" statements to include my navigation and heading pages. Does PHP provide a similar statement, or is there something else I can do to achieve this effect? [/snip] *sigh* RTFM at http://ww

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] $which_person = mysql_query("SELECT ID FROM tblItems WHERE number = $place"); $vthere = mysql_num_rows($which_person); if ($vthere == '0') { True } else { False } What should this return? True or False? [/snip] If there is one or more rows returned by the

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] I did the var_dump and got: bool(false) While $vthere (from my previous post) returns 0 (zero) still. :\ But proceeds as if 0 were a false statement when asked if $vthere equals zero. :\ -Mike [/snip] Is the query executing properly? Try this ... $sql = "SELECT ID from tblItems WHERE

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] Nothin' wrong with the SQL statement - it executes properly when I enter values that actually pull something from a table. When I enter values that are not present in the table, I go on to have the other issue of it looking like it is false, though it is not. :\ [/snip] But you are testin

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] > I still want to know what you need to do, test for query execution or > value? It is pretty cut and dried after that. Value. If there is nothing found in the table that matches, do one thing. If there is, do another. :) [/snip] Then you must test for something returned, not whether or

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] I did! Look at this again: $which_person = mysql_query("SELECT ID FROM tblItems WHERE number = $place"); $vthere = mysql_num_rows($which_person); if ($vthere == '0') { True } else { False } Yet it still returns as if this is FALSE (i.e. it executes the el

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] if ($vthere == '0') { True } else { False } > if ($vthere == 0) { True } else { False } Same result (actually, that was the first statement I tried). :\ [/snip] Then the query is failing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] And when I plug values into the query at command line - values that would return an empty set, it executes and returns an empty set. [/snip] If the query is returning an empty set the value of mysql_num_rows($person) == 0 so $person = mysql_query("The Query"); $thecount = mysql_num_rows($

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] > $person = mysql_query("The Query"); > $thecount = mysql_num_rows($person); > echo "$thecount \n"; > > And tell us what $thecount is... Returns 0 (zero). [/snip] Then if($thecount == 0){ $whatever = 1; } else { $whatever = 4; } $whatever should be 1 -- PHP General Mailing List (

RE: [PHP] Apache logs to keep $_POST values

2003-07-29 Thread Jay Blanchard
[snip] Is there any way to log the $_POST values passed to the PHP scripts in Apache's access log? [/snip] fopen the log file, write the $_POST variables and any other data you would like to record along with a newline ("\n"). Make sure to fclose the log file. HTH! -- PHP General Mailing List (

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] But that is my point - and I think we are going in circles now. It just doesn't do that. It returns 4 (as per your example). :\ [/snip] Then something else is wrong Mikevery, very wrong. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

RE: [PHP] Apache logs to keep $_POST values

2003-07-29 Thread Jay Blanchard
[snip] I wanted to know if Apache has a feature that could log the $_POST values. [/snip] I don't think so, you would probably have to consult an Apache list or the Apache manual. [snip] By the way, fopening the log file and write the $_POST variables won't work on a server with high activity bec

RE: [PHP] Weird Problem

2003-07-29 Thread Jay Blanchard
[snip] $sql = "SELECT setting from settings where name='display_rows'"; include("connect.inc.php"); print $sql; $row = mysql_fetch_row($result); $path = $row[0]; print $path; [/snip] Because $result is not being gotten properly... $sql = "SE

RE: [PHP] Apache logs to keep $_POST values

2003-07-29 Thread Jay Blanchard
[snip] I don't think I would have a problem with a separate log because I write into the log file all the datas I want(URL, Referer, etc, and $_POST) at once so the log would be OK. The difference from writing into Apache's log is that Apaches writes the URL, Referer, etc and then I write the $

RE: [PHP] Please Help

2003-07-30 Thread Jay Blanchard
[snip] I have two files one is letter.php and another is simple.php in simple.php i assign a value to a php variable , after assigning, i call letter.php in the same file. [/snip] http://www.php.net/include HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

RE: [PHP] has anyone seen this done?

2003-07-30 Thread Jay Blanchard
[snip] i know this is possible with php, but have been wracking my brain trying to figure this out, in any case, i am just a beginning php programmer, but what i want to do is...when a link is clicked, i need to be able to pull some text from a static html page and dynamically create a new window i

RE: [PHP] php-cli - Controlling external programs

2003-07-31 Thread Jay Blanchard
[snip] Bah, not the answer I was looking for...I really wanted to use PHP and I have most of what I wanted accomplished. Thanks for the tip, I will investigate. [/snip] http://us3.php.net/features.commandline If you use -a for your command line script the script will run interactively example:

RE: [PHP] Article: PHP vs ASP

2003-07-31 Thread Jay Blanchard
[snip] Might want to file this link, next time somebody asks about PHP vs. ASP http://www.wowwebdesigns.com/wowbb/forum12/149.html [/snip] And the thing is that you cannot compare ASP to PHP. ASP is a platform, PHP is a language. This arg has been going on for a couple of years. ASP (Active Ser

RE: [PHP] xml and php

2003-07-31 Thread Jay Blanchard
[snip] I'm a beginner in php. I want to manipulate xml file with Php (add some element, modify some element, delete some element and consult some element) but when I try domxml_open_file I obtain system error : Call to undefined function: domxml_open_file() I heard about use --with-do

RE: [PHP] xml and php

2003-07-31 Thread Jay Blanchard
[snip] so I can parse and read xml file but I can't add or modify nothing in my xml file and even not create xml file ! [/snip] Uh, XML files are text files which you can modify with any of the text handling functions in PHP. What exactly are you trying to accomplish? -- PHP General Mailing List

RE: [PHP] Article: PHP vs ASP

2003-07-31 Thread Jay Blanchard
[snip] I'm wondering if there is an IIS extention for allow PHP in ASP. Wouldn't that be a kick in the ass. (I'm not talking about PHP for IIS, either) [/snip] But why go to the extra-effort? Just to save yourself the installation of PHP on the IIS box? -- PHP General Mailing List (http://

RE: [PHP] Ticketmaster.com and Word Images

2003-07-31 Thread Jay Blanchard
[snip] Does anyone know how sites like Ticketmaster.com creates the "Word Image" used for ticket purchase verification? Do they generate the image on-the-fly from a dictionary, or do the images pre-exist and they are pulled from a DB along with the word. [/snip] The word can be pulled from the D

RE: [PHP] Article: PHP vs ASP

2003-07-31 Thread Jay Blanchard
[snip] Yes I agree it would be funny... In my opinion there is no need for the ASP platform... But then again, who am I for having an educated opinion, I let a hacker put a shell script on my site NOW THAT'S FUNNY! [/snip] Proving once again that 'funny' is relative and someone will develop a

RE: [PHP] xml and php

2003-07-31 Thread Jay Blanchard
[snip] 1 Title 1 Description 1

RE: Re: [PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-31 Thread Jay Blanchard
[snip] what does trolling mean? Never heard of it before. [/snip] Ever been fishing? It means fishing. It also refers to the nasty troll that lived under the bridge in the classic Grimm's fairy tale. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

RE: [PHP] Opinions on Micro$oft .NET

2003-07-31 Thread Jay Blanchard
[snip] I've basically got a month to do research and get my guns loaded for what I'm sure will be a heated debate about the Open Source Solution vs the Micro$oft .NET solution. So what I am looking for is personal and professional opinions about both solutions (specifically PHP etc), any and all l

RE: [PHP] load the PHP script last on the page

2003-07-31 Thread Jay Blanchard
[snip] I have a page with a particular PHP section that takes quite a time to load. Is there a way I can delay that script to run after everything else has loaded. I suppose it may need to use Javascript [/snip] For any insight to take place we would need to see the code. -- PHP General Mai

RE: [PHP] include() as last thing to execute on page

2003-07-31 Thread Jay Blanchard
[snip] I have a PHP included page that takes quite a time to load. I would like to have the entire main page loaded and displayed and then the final include page executed. Is this possible? Thanks for your help - appreciate it. [/snip] Why do people insist on sending two e-mails to the list with

RE: [PHP] Escaping nasty quotes

2003-07-31 Thread Jay Blanchard
[snip] $query = "LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE mytable FIELDS TERMINATED BY ',' ENCLOSED BY '" . '"' . "' "; {/snip] try ... $query = "LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE mytable FIELDS TERMINATED BY ',' ENCLOSED BY '"' "; The period concats were not needed.

RE: [PHP] Escaping nasty quotes

2003-07-31 Thread Jay Blanchard
[snip] Sorry...Because of the double quote near the ENCLOSED BY .. It delivers a PARSE ERROR $query = "LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE mytable FIELDS TERMINATED BY ',' ENCLOSED BY '"' "; [/snip] Are the fields enclosed by a quote? If not... $query = "LOAD DATA LOCAL INFILE '/h

RE: [PHP] Escaping nasty quotes

2003-07-31 Thread Jay Blanchard
[snip] Unfortunately, they are indeed enclosed by double quotes [/snip] Can you show us a snippet of data.txt? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Form Retain Info on Back?

2003-07-31 Thread Jay Blanchard
[snip] Is there a simple way of retaining this information so the user doesn't has to retype all the information in? [/snip] The answer is in the archives young Grasshopper. Are you saving the data to a database? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

RE: [PHP] Search Engine

2003-08-01 Thread Jay Blanchard
[snip] Does anyone know any free search engine for web application [/snip] Google for "web application"? It's free. Oh, I get it! Google for "free search engine for web application". HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Frames and variables

2003-08-01 Thread Jay Blanchard
[snip] I have a site that uses frames. On one frame i have buttons to select the language. When user hits the button to select the language it is supposed to change in both frames. Any idea how to do this? [/snip] Please read http://www.w3.org/TR/html4/present/frames.html -- PHP General Mailing

RE: [PHP] Please Help

2003-08-01 Thread Jay Blanchard
[snip] John Manko on Thursday, July 31, 2003 11:26 PM said: > umm... ok. > > www.google.com > www.php.net > > that should get you started. It's always funny how people think these kinds of posts are helpful. [/snip] They're not? -- PHP General Mailing List (

RE: [PHP] Please Help

2003-08-01 Thread Jay Blanchard
[snip] > It's always funny how people think these kinds of posts are helpful. > [/snip] > > They're not? Yes, they are not. [/snip] Hmmm, let's see. The post had no clarity in the subject line, the post showed no sense of "I tried to look it up", the post was vague, shall I go on? Folks on the l

RE: [PHP] Please Help

2003-08-01 Thread Jay Blanchard
[snip] 1. Which do you think is most helpful and benefits the list the most? [/snip] Give a man a program, frustrate him for a day, teach a man to program, frustrate him for a lifetime. IOW send a person to start learning. The question was so vague that the answers given were appropriate. [snip]

RE: [PHP] using mail()

2003-08-01 Thread Jay Blanchard
[snip] If I am using this code: mail("[EMAIL PROTECTED]", "test", "testbody"); and want to add a From: line, how do I do it? Also, is this an excepted way of sending mail from a web page? [/snip] Read http://us4.php.net/manual/en/function.mail.php Example 2 (How's that Chris?) And yes, it is a

RE: [PHP] Globals

2003-08-01 Thread Jay Blanchard
[snip] $GLOBALS [/snip] >From http://us2.php.net/language.variables.scope "The $GLOBALS array is an associative array with the name of the global variable being the key and the contents of that variable being the value of the array element. Notice how $GLOBALS exists in any scope, this is because

RE: [PHP] Globals

2003-08-01 Thread Jay Blanchard
[snip] just to let you know, the $GLOBALS[] superglobals was around long before php 4.1.0 // Superglobals are available in any scope and do // not require 'global'. Superglobals are available // as of PHP 4.1.0 [/snip] This is the quote in the online manual -- PHP General Mailing List (http://

RE: [PHP] Relevant PHP market research

2003-08-04 Thread Jay Blanchard
[snip] I would appreciate any figures on the web development market - because this is the market for most of us - and knowing the market could only be a good thing. I think we should consider this key figures: [/snip] {IMHO} I understand why your focus would be on the web development market, but I

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] I tried doing as you said and it returned 0. Is there another way to add up the column? [/snip] $sql = "SELECT foo FROM table WHERE you have conditions "; if(!($result = mysql_query($sql, $connection))){ print("MySQL reports: " . mysql_error() . "\n"); exit(); } while($row = mysql_f

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] while ($row = mysql_fetch_array($result_2)) { $paid = $row['paid']; } CODE End- What I want to do from here is add up all the 'paid' figures. [/snip] while ($row = mysql_fetch_array($result_2)) { $paid = $row['paid']; $total = $total + $paid; }

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] $sql_2 = "SELECT SUM(paidamount) as paid FROM $tb_name WHERE id = \"$id\" "; [/snip] Ben I would also check the query with echo"$sql_2 \n"; You may be surprised that what you get back is not what you intended. -- PHP General Mailing List (http://www.php.net/) To

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] It still returns '0'. I think we are missing something. Any other ideas? Anyone else have any ideas? [/snip] echo the SELECT statement to make sure that $id is worth something -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] CODE Begin- $sql_2 = "SELECT SUM(paidamount) as paid FROM $tb_name WHERE id = \"$id\" "; $result_2 = @mysql_query($sql_2,$connection) or die(mysql_error()); while ($row = mysql_fetch_array($result_2)) { $paid = $row['paid']; } CODE En

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] I tried the code again and still returns a '0'. It looks like the while() is only looping one record at a time. It does looks like it is add all the records. Do you or anyone have any other suggestions? [/snip] D'oh! *slaps forehead*! It IS getting only one record! Dang! SELECT SUM(foo

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] When I echo the select state the id is the first of many ids that need to be added together. It is still not summing the total value of the records. [/snip] Are you looping through the id's somehow? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] Let me try and explain a little better and easier. What I am trying to do is take a list of values and add them to get. I am getting the values from a database query. Assuming that I had the following: val_1 100.00 val_2 150.00 val_3 200.00 val_4 250.00 val_5 100.00

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] Unsure. How would I do that? [/snip] Ben I think that we have a communications failure. Let's start over...you wish to total a database column using php, correct? Everything that you have been shown so far will do that. Is it possible that there are no query results? If not, then we are do

  1   2   3   4   5   6   7   8   9   10   >