RE: [PHP] Headers in body - what am I doing wrong???

2003-06-11 Thread Jennifer Goodie
> >// pull fields from form query >$to = "[EMAIL PROTECTED]"; >$name = $HTTP_POST_VARS['name']; >$address = $HTTP_POST_VARS['address']; >$listname = $HTTP_POST_VARS['listname']; >$action = strtoupper($HTTP_POST_VARS['action']); > >// build headers >$from = "\"$name\"

RE: [PHP] Headers in body - what am I doing wrong???

2003-06-11 Thread Jennifer Goodie
> > PS some mailservers do not like \r\n, check the manual on mail() and see > what they suggest, i think it was just \n. RFC for SMTP states that CRLF (\r\n) should be used. A lot of mail servers will accept just \n, but it is best to try and be standards compliant, you have less potential for p

RE: [PHP] Agh! Driving me crazy!

2003-06-18 Thread Jennifer Goodie
You are missing the closing ) around the values you are inserting. > Anyone see anything wrong with this line of code? > > $fine = mysql_query("INSERT INTO > tblPOItems(poID,poItemUPC,poItemNumber,poItemDescription,poItemInn > erCasePkg, > poInnerQuantity,poItemEstQuantity,poItemCostEach,poItemSug

RE: [PHP] how to get the date of this Saturday all the time?

2003-06-24 Thread Jennifer Goodie
> We have a meeting at every Saturday,I'd like to post the > news and write the date of this Saturday every week,how can I get > the date of Saturday. This has not been tested, there might be a bug. Something like that should be what you want though. -- PHP General Mailing List (http

[PHP] reg exp and basename help?

2002-10-01 Thread Jennifer Swofford
I need help with some regular expression matching. Here is what I am doing. In one php file, I'm reading in the contents of an html file. Both reside on the same server. What I need to do is change all image tags that are like this: To this: I know that "basename" works if you have somet

[PHP] eregi_replace / preg_match_all

2002-10-01 Thread Jennifer Swofford
Why does this work: $contents = eregi_replace("(\")(.(/))*[A-Z0-9_/-]+(.gif|.jpg)", "\"blah.gif", $contents); But this does not: preg_match_all("(\")(.(/))*[A-Z0-9_/-]+(.gif|.jpg)", $contents, $matches); for ($i=0; $i< count($matches[0]); $i++) { echo "matched: ".$matches[0][$i]."\n" } I get

Re: [PHP] eregi_replace / preg_match_all

2002-10-01 Thread Jennifer Swofford
delimeter apart > from the quote? > > "/(\")(.(\/))*[A-Z0-9_\/-]+(.gif|.jpg)/" > > Maybe that's it? But if so I dunno why the other > one would be working. > > -Kevin > > - Original Message - > From: "Jennifer Swofford" &

Re: [PHP] eregi_replace / preg_match_all

2002-10-02 Thread Jennifer Swofford
Extraordinarily helpful; thank you very much! Thanks to both Mike and Kevin on this. Jen > > > Why does this work: > > > > > > $contents = > > > > > eregi_replace("(\")(.(/))*[A-Z0-9_/-]+(.gif|.jpg)", > > > "\"blah.gif", $contents); > > > > > > But this does not: > > > > > > > > preg_match_all(

[PHP] reg exp matching/replacing

2002-10-02 Thread Jennifer Swofford
I'm getting much closer to achieving my goal here. Now, I'm missing yet one more element. Here is my code: -- $filename = "newexample.html"; $fd = fopen ($filename, "r"); $contents = fread ($fd, filesize ($filename)); preg_match_all('{\/*[A-z0-9_/-]+(.gif|.jpg)}', $contents, $matche

Re: [PHP] MORE Problems with PHP as CGI and Flash !!!!!!!!!!

2002-10-03 Thread Jennifer Swofford
FEI, it works fine on my IE6/WinXP. :) (And NS7.) > Rebekah, > > When I click link to go to the second index (using IE6, WinXP) at > http://www.overbrookfarm.myiglou.com/index2.html my browser hangs and I > never get the menus. However it all works fine in Mozilla 1.0 on the same > platform. (

[PHP] eregi_replace help

2002-10-07 Thread Jennifer Swofford
Hello all, I am trying to use php to read through an html file and replace all image paths, like such: Change "images/firstimage.gif" to "http://www.blah.com/firstimage.gif"; ... Change "somesuch/images/secondimage.jpg" to "http://www.blah.com/secondimage.jpg"; So I am going through the file an

Re: [PHP] eregi_replace help

2002-10-07 Thread Jennifer Swofford
BTW - I have found errors in the regular expression that I was matching so don't bother to point those out. ;) That shouldn't affect the nature of the problem I was asking about. --- Jennifer Swofford <[EMAIL PROTECTED]> wrote: > Hello all, > > I am trying to use ph

Re: [PHP] eregi_replace help

2002-10-07 Thread Jennifer Swofford
nd behold, it works. Thanks all! Jen --- Marco Tabini <[EMAIL PROTECTED]> wrote: > Jennifer-- > > A couple of things. eregi_replace does not have a > limitation parameter, > which means that if you use it *all* the strings > that match your pattern > will be replace with th

Re: [PHP] Weird, weird, weird!

2002-10-08 Thread Jennifer Swofford
--- Mike At Spy <[EMAIL PROTECTED]> wrote: > > Anyone ever have the experience of working on a > site, working with MySQL and > then having something almost inexplicable happen? Hmmm, yes, that would be a daily exercise for me. Ah, but I see that your inexplicable problem has been explained... l

Re: [PHP] POST and GET variables don't work

2002-10-13 Thread Jennifer Swofford
BTW, disregard my comment about GET... I confused myself. Zzz. Jen > Try: > > $_Post[name]; > > or $HTTP_POST_VARS[name]; > > In new PHP version, register_globals is set to "off" by default, which is > why $name isn't working for you. Although, I'm surprised GET isn't > working > > Jen >

Re: [PHP] POST and GET variables don't work

2002-10-13 Thread Jennifer Swofford
Try: $_Post[name]; or $HTTP_POST_VARS[name]; In new PHP version, register_globals is set to "off" by default, which is why $name isn't working for you. Although, I'm surprised GET isn't working Jen > I've just built PHP from source (4.2.3) on Red Hat Linux 7.2 with > > configure --with-

[PHP] upload directory

2002-10-14 Thread Jennifer Swofford
Is there an easy way to upload an entire directory? Rather than selecting the 19 files in a directory, to just select the directory, and have all its contents go with it? (Or even a not-such-an easy way?) Thank you very much for any hints. Jen

Re: [PHP] upload directory

2002-10-14 Thread Jennifer Swofford
First scenario is correct. > Are you trying to do this via a web-script? > Meaning, your php script is the server, and windows would be the client? > > Or is your script uploading a file to another server? > > Tim > > - Original Message - > From: "Jenn

Re: [PHP] Help Needed

2002-10-15 Thread Jennifer Swofford
--- Pushpinder Singh Garcha <[EMAIL PROTECTED]> wrote: > Hi > > I am trying to create an online survey using PHP > ...I am using MySQL as > the database and MAC OS Jaguar. I do not need the > results to be added to > the database. I need to be able to send the results > of the survey to an > email

RE: [PHP] Blank PHP pages.

2002-10-16 Thread Jennifer Swofford
What's your PHP code look like? --- Angel Gabriel <[EMAIL PROTECTED]> wrote: > I get absolutly NOTHING! I get the most basic HTML > page, but blank, as in > the following > > Transitional//EN"> > > http-equiv=Content-Type> > -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Send mail in HTML FORMAT

2002-11-03 Thread Jennifer Swofford
You also need to add the text/html header, such as: $headers = "Content-Type: text/html \r\n"; mail("[EMAIL PROTECTED]", "subject",$out , "From: website", $headers); jen > I read from a template, insert data and save it as a new file with html > code... > i want to send that file that is the sa

RE: [PHP] Get the lowest value out of different fields

2003-09-03 Thread Jennifer Goodie
> Hi All, > > I hope you can help me with this: > > I have a tabel in my database like this > > TEST > > fieldnameValue's > > testid 1 > testf1 3 > testf2 4 > testf3 0 > testf4 2 > testf5 0 > > (so this is one record!) > > I want to dis

RE: [PHP] Get the lowest value out of different fields

2003-09-03 Thread Jennifer Goodie
> BUT how can i make the function loop through the whole > result? > > --- > if (mysql_num_rows($result3) > 0) > { > $test = mysql_fetch_array($result3); > echo minnum($test); > } > > -- > Someone will probably come up with someth

RE: [PHP] Re: cookies under php 4.06

2003-09-04 Thread Jennifer Goodie
> >setcookie("UserName", $HTTP_POST_VARS['UserName'], > time()+(60*10), "/", > > $HTTP_SERVER_VARS['SERVER_NAME']); > >setcookie("Password", $password, time()+(60*10), "/", > > $HTTP_SERVER_VARS['SERVER_NAME']); > >print "login - set cookie"; > > > sorry for kinda answering my own post.

RE: [PHP] Session stealing, ..

2003-09-12 Thread Jennifer Goodie
> 93 # When deserialized we are called and need to check if the > stored IP address equals the client's > 94 function __wakeup() { > 95 global $Log; > 96 if ($_SERVER['REMOTE_ADDR'] != > $this->Night['IP']) { > 97

RE: [PHP] How to comment out chunk of html/php mixed code?

2003-09-15 Thread Jennifer Goodie
> > your mixed html and php code here > > */ ?> > > that way php will take everything inside the tags and > comment them > out, regardless of if they are html or php or whatever. This won't work is your PHP code has comments using /* */ syntax in it already. I always just through an if(false){

RE: [PHP] output to Excel

2003-09-16 Thread Jennifer Goodie
> Is there a way to output PHP to MS Excel format? > Send the headers for the appropriate application type and then format your output as HTML with Excel's styles. In order to get a feel for what my output should be, I just create a sample of what I want in Excel, save as html and then open the fi

RE: [PHP] Control Structure problem

2003-09-16 Thread Jennifer Goodie
> This doesnt work as expected. > > if ( $var === "TEST ONE" || "TEST TWO" || "TEST THREE") { > > do something; > > } > > It returns true on all strings. Ive tried using the or operator > and the == but these fail as well. Any Ideas? It behaves exactly as expected. Try checking the manual

RE: [PHP] How to use file() function with an "HTTPS:\\www.example.com"

2003-09-17 Thread Jennifer Goodie
> How to use file() function with an "HTTPS:\\www.example.com" > > > $lines = file ('https://www.example.com/'); > > foreach ($lines as $line_num => $line) { > echo "Line #{$line_num} : " . htmlspecialchars($line) > . "\n"; > } My interpretation of the manual page (http://us3.php.net/manua

RE: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread Jennifer Goodie
> > I have a section of my script where I call gethostbyname($hostname) . > > For some host names that are not registered (according to register.com) > > I am still getting an IP address returned? > > > > What is happening? > Well, try only the toplevel domain... For example, I have like > hns3456

RE: [PHP] Excel Files

2003-09-18 Thread Jennifer Goodie
> Hi, is there a way to create excel files with php? > > Thanks. This was answered yesterday and I'm way too lazy to type out my reply again. Here is an archive search on the word 'excel' http://marc.theaimsgroup.com/?l=php-general&w=2&r=1&s=excel&q=b Here is yesterday's thread http://marc.theai

RE: [PHP] Attention: List Administrator

2003-09-19 Thread Jennifer Goodie
> And I get this: > > [snip] > Violation Information: > The subject violated the content filtering rule PHP as subject is a > malacious code - Not Allowed. No attempt was made to repair. > [/snip] > > How can PHP be a code so powerfull it is not even allowed in the > subject? I thought PHP was

RE: [PHP] Need to convert seconds to DD:HH:MM:SS

2003-09-19 Thread Jennifer Goodie
>can't seem to figure > out how to get the number of days integrated in here for $hh that > are > 24. > to days:hours:minutes:seconds... This function works for what it > does, can > someone embelish it to handle days too? > > function convertToHHMMSS($seconds) > { > $hoursPerDay

RE: [PHP] SQL statement

2003-09-23 Thread Jennifer Goodie
> Ive used this > $query = ("SELECT username, password, DATE_FORMAT(timestamp, > '%d%m%y') FROM > custlogon"); > > But I recieve unknown index timestamp. *shrug* > > You are receiving the error on an array returned by fetch_array? If so, it is because the index is "DATE_FORMAT(timestamp, '%d%m%y

RE: [PHP] SQL statement

2003-09-23 Thread Jennifer Goodie
> Jennifer, you're right, I am using fetch_array... I tried to use your > suggestion, and it failing as well, It wont even execute > > Do you have a better method of looping through all these records?? > There's probably an error in my SQL syntax. What is mysql_er

RE: [PHP] SQL statement

2003-09-23 Thread Jennifer Goodie
> try this: > > $query = "SELECT username, password, > DATE_FORMAT(CURRENT_TIMESTAMP(), '%d%m%y') FROM custlogon"; > > or if that doesnt work try: > > $query = "SELECT username, password, DATE_FORMAT(NOW(), '%d%m%y') > FROM custlogon"; [snip] original query as posted: SELECT username, password, DAT

RE: [PHP] SQL statement

2003-09-23 Thread Jennifer Goodie
> > > Jennifer, you're right, I am using fetch_array... I tried to use your > > > suggestion, and it failing as well, It wont even execute > > > > > > > There's probably an error in my SQL syntax. What is > mysql_error() telling > >

RE: [PHP] SQL statement

2003-09-23 Thread Jennifer Goodie
> http://www.mysql.com/doc/en/Reserved_words.html > > [snip] > 6.1.7 Is MySQL Picky About Reserved Words? > > A common problem stems from trying to create a table with column > names that use the names of datatypes or functions built into > MySQL, such as TIMESTAMP or GROUP. You're allowed to do it

RE: [PHP] SQL statement

2003-09-23 Thread Jennifer Goodie
> Thank you for your time on this. No problem. > > // Function that runs reports on logon history > > function logonHist() { > > db_connect(); //establish connection > > $_qlogonhist = ("SELECT username,host_info,status, DATE_FORMAT(timestamp, > '%d%m%y') > as formatted_ts FROM custlogon

RE: [PHP] rename variables

2003-09-24 Thread Jennifer Goodie
> I'm trying to rename some variables. > > first I have a function - > randomize (3,4); //has created unique $numbers > > then I want to create a function for the renaming: > > renameit($sculp); //sends $sculp for the new variable name > > and this function (and variations) > > function renameit($v

RE: [PHP] Conversion between dates and weeknumbers

2001-03-20 Thread Jennifer Woodhead
I think you can do it using strftime %V - The ISO 8601:1988 week number of the current year as a decimal number, range 01 to 53, where week 1 is the first week that has at least 4 days in the current year, and with Monday as the first day of the week. %W - week number of the current year as a d

[PHP] Using one submit button

2002-04-16 Thread Jennifer Downey
- What I need this to do is update the price in the db table. if I have on item it is fine. If I have two items it won't update the first items price but will the second. if I try to enter a price in the first items textbox it doesn't update and then deletes

Re: [PHP] Using one submit button

2002-04-16 Thread Jennifer Downey
;[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > user price[] as the name > you'll also need to pass the ids as $id[] > so you know which one you're updating > > -Original Message- > From: Jennifer Downey [mailto:[EMAIL PR

Re: [PHP] Re: Using one submit button

2002-04-17 Thread Jennifer Downey
Thank you Jason and Kevin for your time and help. Does this look like what I should have? if(isset($update)) for ($i=0; $i"; Jennifer "Kevin Stone" <[EMAIL PROTECTED]> wrote in message 004301c1e633$e1e20090$6601a8c0@kevin">news:004301c1e633$e1e20090$6601a8c0

Re: [PHP] Re: Using one submit button

2002-04-17 Thread Jennifer Downey
Thank you Jason and Kevin for your time and help. Does this look like what I should have? if(isset($update)) for ($i=0; $i"; Jennifer "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > On Thursday 18 April 2002 00:11, Jennifer Downey wrote:

[PHP] If else question

2002-04-23 Thread Jennifer Downey
e table if that condition < 1 echo that it can't be found else echo the form But in this case even if the condition < 1 it still echoes the form. I am not understanding this. Thanks for your time and help Jennifer -- The sleeper has awaken --- Outgoing mail is certified Virus

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
em to locate this item"; } else { do this } So yes I have done exactly as you have stated and it still shows the form. Jennifer --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
> -Original Message- > From: Jennifer Downey [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 23, 2002 12:23 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] If else question > > > > > If and else expect to be followed by exactly 1 statement. To aggregate >

Re: [PHP] Browser cache

2002-04-23 Thread Jennifer Downey
PLEASE TAKE THIS OUT OF MY THREAD. I am trying to get an answer to my question. Not yours. Thank you Jennifer "Stuart Dallas" <[EMAIL PROTECTED]> wrote in message 000d01c1eae5$96243450$de01420a@stuart">news:000d01c1eae5$96243450$de01420a@stuart... > José León Sern

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
at is not the case. I have used this code through out my site and this is the only part it does this on and I am not understanding why. Jennifer "Natalie Leotta" <[EMAIL PROTECTED]> wrote in message 7546CB15C0A1D311BF0D0004AC4C4B0C024ABFC4@SSIMSEXCHNG">news:7546CB15C0A

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
No this is the first if statement but there are nested if's after that. I'd post the code but everyone yells at me about my coding style. If you promise not to yell I will post it. Jennifer "-Bd-" <[EMAIL PROTECTED]> wrote in message 001d01c1eae9$d58f4360$[EMAIL PRO

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
option="Feed my pet\n"; } else { //if book or weapon is present then set a blank $thisoption=""; } } } } } //check if form has been submitted if($submit) { } else { //if the form has not been submitted run the following ec

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
u certain the mysql_query() is successful? I ask, because > you > > don't have the "or die()" that SHOULD be on all queries. > > > > Third, have you printed out all the values fetched via mysql_fetch_array() > > to ensure they contain valid data?

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
Ok I have hard coded $quantity so it does = 0 and else still prints. "Maxim Maletsky )" <[EMAIL PROTECTED]> wrote in message 004701c1eaf1$c915c6b0$92e3021a@machine52">news:004701c1eaf1$c915c6b0$92e3021a@machine52... > > Try this, Jennifer: > > Without messi

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
ollowing echo ""; echo ""; echo "$thisoption"; echo "Put in my shop"; echo "Put into my Footlocker"; echo "Discard this item"; echo "Donate this item"; echo ""; echo ""; e

[PHP] SQL Warning

2002-04-23 Thread Jennifer Downey
Hi all, Would you please direct your attention to this URL http://testphp.netfirms.com/code1.html Look at the bottom where the big orange commented syntax is and explain what is going on there? Thanks Jennifer -- The sleeper has awaken --- Outgoing mail is certified Virus Free. Checked by

[PHP] Redirect

2002-04-25 Thread Jennifer Downey
hanks Jennifer -- The sleeper has awaken --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

[PHP] mail() through a form

2002-04-26 Thread Jennifer Downey
emailchange? Click here"; echo "This is a "; echo ""; echo "Abuse"; echo "Bug"; echo "Employment"; echo " Report"; echo "The message is"; echo ""; echo ""; echo ""; echo ""; } Th

[PHP] Columns not displaying as they should

2002-05-01 Thread Jennifer Downey
echo "$display_block"; if ($column > 5) { echo ""; $column = 1; } echo""; } } Thanks for your time and help Jennifer -- The sleeper has awaken --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (h

[PHP] Re: I-worm/Klez and a GIF query/question

2002-05-04 Thread Jennifer Downey
Ok so is there a tutorial on how to write the code to generate the key and the image? Please point me to it. Thanks Jennifer "R" <[EMAIL PROTECTED]> wrote in message 007501c1f304$3c1607a0$0a6da8c0@lgwezec83s94bn">news:007501c1f304$3c1607a0$0a6da8c0@lgwezec83s94bn... >

[PHP] strtotime failure

2002-05-07 Thread Koenig, Jennifer
0, 13:00, etc.) come out fine. Could the data that's failing strtotime have been corrupted on data-entry? Why does is_string on this data tell me it's a string? --Jennifer Koenig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] strtotime failure -- nevermind!! :)

2002-05-07 Thread Koenig, Jennifer
It was staring me right in the face - the data that wasn't working was typed (by Europeans) as 6.30 instead of 6:30. So it was a string whose format was unacceptable as a Unix timestamp format. --Jennifer Koenig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] fopen failing to connect

2002-05-15 Thread jennifer jefferson
likely as a problem? thanks. -jennifer --- Kevin Stone <[EMAIL PROTECTED]> wrote: > Jennifer, works just fine here.. > > - > $fp = > fopen("http://www.thedeal.com/NASApp/cs/ContentServer?pagename=TheDeal/xmlfe > ed","r"); > if ($fp !== FALSE) &g

[PHP] Random number Question

2002-03-12 Thread Jennifer Downey
r.php: You have won!"; }else{ print("Sorry that wasn't the answer"); } ?> Any help would be appreciated. Thanks in advance Jennifer Downey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] DHTML Trouble please help

2002-03-13 Thread Jennifer Downey
Hi all, I am no DHTML expert and don't even know the language also didn't know where to post this. But after today I am going to learn. I downloaded a tetris game from Dynamic Drive: http://www.dynamicdrive.com/dynamicindex12/tetris/index.htm Have a look. I would add it here but it's too long.

[PHP] MySQL and indexes

2002-03-18 Thread Jennifer Downey
rchar(20) NOT NULL default '', pet_date date NOT NULL default '-00-00', num_pets int(1) NOT NULL default '0', ) TYPE=MyISAM; Thanks Jennifer Downey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Getting user name in text area

2002-03-28 Thread Jennifer Downey
Hi all, Here is what I have and what I am trying to do. I would like the user name to be printed in the Username text box but can't seem to get it there. I don't want the user to have to type there username in, just click the submit button and it is entered into the db. Can anyone show me what

[PHP] Tutorial on proper code formating

2002-04-11 Thread Jennifer Downey
Hi all, Could someone point me to a tutorial on the proper way to format code. To make it more readable. TIA Jennifer --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.344 / Virus Database: 191 - Release Date: 4/2/2002

[PHP] Re: Tutorial on proper code formating

2002-04-11 Thread Jennifer Downey
Thank you all for your input. I will read through the tutorial and then figure out which style I want to use. I appreciate your time. Jennifer "Jennifer Downey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > Cou

[PHP] Forms in PHP

2002-04-11 Thread Jennifer Downey
echo "done" or die("Not!"); } } } elseif($type==food) { echo ""; echo "Feed my pet"; echo "Put in my shop"; echo "Put into my Footlocker"; echo "Discard this item"; echo "Donate this it

[PHP] Re: Forms in PHP

2002-04-11 Thread Jennifer Downey
Actually after the submit button is clicked it returns a blank page. "Jennifer Downey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > Now I have a weird problem. I am using this code and can't understand why i

[PHP] Closing curly brackets?

2002-04-12 Thread Jennifer Downey
Hi everyone, I have a question about this code. The way it sits now it always shows the last record in the table. in other words if the user has 6 items, like: item id 1 item id 2 item id 5 item id 6 item id 7 item id 8 it will only show the last record item id 8. I believe it has something to

[PHP] Re: Closing curly brackets?

2002-04-12 Thread Jennifer Downey
My apologies for putting this in the wrong list. Jennifer "Jennifer Downey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi everyone, > > I have a question about this code. The way it sits now it always shows the >

[PHP] Re: Closing curly brackets?

2002-04-13 Thread Jennifer Downey
al on proper code formatting and got back a tutorial that was extremely hard to understand. While lots of people have screamed at me for my coding format no one has supplied an understandable answer. That is until this morning. >From Paul Burney : Hi Jennifer, The first thing you should do is

[PHP] PHP MySQL Hosting services

2002-04-13 Thread Jennifer Downey
disk space, 10 to 15gig /m transfer, of course PHP and MySQL, ftp, ssh or telnet, cgi/perl, free domain transfer, at least 15 POP3 email accounts, cron support. Thanks Jennifer -- The sleeper has awaken --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http

Re: [PHP] Securing Forms???

2004-08-18 Thread Jennifer Goodie
> >> $token = md5(uniqid(rand(), true)); > >> > >> .. is a pretty bad idea, since the output could include quotes, > >> newlines, low-ascii-characters, thereby messing up the form. > >How do you figure that? md5() only returns 0-9 and a-f characters. > > From the manual: http://php.net/md5 >

Re: [PHP] Dynamic Function with return?

2004-08-27 Thread Jennifer Goodie
> -Original Message- > From: bskolb [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 3:59 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Dynamic Function with return? > > > Sample Code: > > // > function testFunction($foo) { > return $foo=="TES

Re: [PHP] MSSQL, PHP and Linux

2004-09-01 Thread Jennifer Goodie
-- Original message from blackwater dev : -- > I need some help...I am helping a local business with a site which > needs to connect to a mssql db, my webhost uses linux and compiled php > with the freetds library and when I go to the info page..it does show > Microsoft

Re: [PHP] MSSQL, PHP and Linux

2004-09-01 Thread Jennifer Goodie
-- Original message from blackwater dev : -- > I have tried recompiling with --with-mssql and --with-mssql=/usr/include/freetds > It all appears to compile correctly, except the info page does not > reflect the config was done with mssql at all. below is a snippet of >

Re: [PHP] MSSQL, PHP and Linux

2004-09-01 Thread Jennifer Goodie
-- Original message from blackwater dev : -- > the date is a very good question? Here is the info from my system > > -rwxr-xr-x 1 root root 1371932 Sep 1 19:50 /usr/bin/php > > Not sure why its showing that date - Apache has been restarted. > Are you sure apache i

Re: [PHP] Re: Convert Smart Quotes to Sraight Quotes - Need Help!

2004-09-07 Thread Jennifer Goodie
-- Original message from Monty : -- > Anyone! I'm out of online resources and answers. I guess this isn't possible > to do... > > > I've been reading for the last three days about character encodings and > > such, but, have still been unable to figure out what I think

Re: [PHP] Secret Codes in Spam and PHP

2004-09-16 Thread Jennifer Goodie
-- Original message from Kristopher Spencer-Yates : -- > As many of you may have noticed, A friend and I have noticed the odd > text at the bottom of spam. My friend once stated "What if this is some > secret code.. they send it to everyone to hide that it is code.. bu

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jennifer Goodie
-- Original message from "John Holmes" : -- > Whatever happened to those monthly stat posts? most posts, most posts per > thread, etc...?? Who was doing that? I haven't seen one in a while. > > ---John Holmes... > Bill Doerrfeld http://marc.theaimsgroup.com/?a=9211645

Re: [PHP] Referencing a "constant" class variable

2004-10-06 Thread Jennifer Goodie
-- Original message from "Chris Boget" : -- > Parse error: parse error, expecting `','' or `';'' in > /usr/local/etc/httpd/domains/eazypro.com/interactive/cron_scripts/test/rate_ > version.php on line 9 > > with line 9 being this line: > > var $MyVar = MyEnums::thisVa

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Jennifer Goodie
-- Original message from "Matthew Sims" : -- > > www.thewb.com (uses PHP for the interactive areas such as message > boards, polls, etc.) > Up until September 2003 I was the developer for PHP applications for this site. To the best of my knowledge the message board i

RE: [PHP] CPU usage @5% during 2 minutes

2004-10-19 Thread Jennifer Goodie
-- Original message from Janke Dávid : -- > The sample code (in seperate, this piece of code runs with normal speed, > but it is this part which runs slowly when executed as a whole, > everything else is fast): > > > $sqlquery = "SELECT sh_Number, sh_Status FROM servi

Re: [PHP] fopen by URL is disabled, is there another way of reading a remote webpage?

2004-10-20 Thread Jennifer Goodie
-- Original message from "Chuck Barnett" : -- > Hi, my new server has fopen by url disabled. My ISP doesn't want to turn it > on. So is there a way to do an equivilant function some other way? I need > to read a remote webpage and manipulate it. > > Thanks, > Chuck

Re: [PHP] Secure system calls -- how

2005-02-08 Thread Jennifer Goodie
-- Original message -- From: Niels <[EMAIL PROTECTED]> > Hi list, > > I'm doing an intranet website for managing users. I need to be able to > change passwords, move files and folders around and that kind of thing. > What is the best way? > I wouldn't use system

Re: [PHP] Secure system calls -- how

2005-02-08 Thread Jennifer Goodie
-- Original message -- From: Niels <[EMAIL PROTECTED]> > Jennifer Goodie wrote: > > > I wouldn't use system calls to move files around. PHP has built in file > > system functions. Why shell out to do something that is built in? >

Re: [PHP] MySql injections (related question)

2005-05-12 Thread Jennifer Goodie
-- Original message -- From: "Richard Lynch" <[EMAIL PROTECTED]> > On Thu, May 12, 2005 4:43 pm, Chris Shiflett said: > > From me: > > The fact that it uses the character set of your current connection to > > MySQL means that what your escaping function considers t

Re: [PHP] Date Calculation

2004-10-28 Thread Jennifer Goodie
-- Original message from Mike Tuller <[EMAIL PROTECTED]>: -- > Ok, so here is what I have. Please check to see if there is a better > way. There are a lot of database calls to me. There are. Do it in one query. > > $query = "SELECT * FROM hardware_assets WHERE etherne

Re: [PHP] getting screen resolution

2004-10-29 Thread Jennifer Goodie
-- Original message -- From: "Louis O'Carroll" <[EMAIL PROTECTED]> > Hi, > is there a function that gets the screen resolution of the user? > you can also reply directly to me... [EMAIL PROTECTED] > > Thanks, > Louis Search the archives before posting. This was d

Re: [PHP] Error Code Airhead

2004-11-02 Thread Jennifer Goodie
-- Original message -- From: Jeff Oien <[EMAIL PROTECTED]> > //always gives error message even if one of the two codes entered: > if ($Promotion_Sub == 'Checked' && ($code != 'D04E' || $code != 'Y04KG')) { If $code is D04K then it is not Y04KG making the statement

Re: [PHP] Programmatic Browser Rendering Engine?

2004-11-10 Thread Jennifer Goodie
-- Original message -- From: "Richard Lynch" <[EMAIL PROTECTED]> > Please Cc: me, as it's been quite some time since I posted 50 emails per > day to this list... :-^ > > > I'm interested in anybody's experience, good or bad, in what I am naively > coining as a "Pr

Re: [PHP] MySQL > Excel

2004-11-12 Thread Jennifer Goodie
-- Original message -- From: Sam Smith <[EMAIL PROTECTED]> > > I've got it working writing out a file (fopen) to CSV (comma delimited) and > the "header('Content-Disposition: attachment; filename="myFile.csv"')" > method but it's clumsy for the user to figure out h

Re: [PHP] Avoiding NOTICEs on Array References

2005-01-26 Thread Jennifer Goodie
-- Original message -- From: "Tom Rawson" <[EMAIL PROTECTED]> > I have many places where I use references like this: > > if ($fields['flags']['someflag']) ... > > or perhaps > > if ($_POST['checkboxfieldname']) ... > > If there is no value for 'somef

Re: [PHP] Re: Parsing search strings from referer urls?

2005-01-26 Thread Jennifer Goodie
-- Original message -- From: Jason Barnett <[EMAIL PROTECTED]> > T.J. Mahaffey wrote: > > First time post, please be gentle. > > You will probably find parse_url() to be useful: > http://www.php.net/manual/en/function.parse-url.php > > > $url = > "http://usern

[PHP] Newbie alert - Ok don't yell at me...

2002-09-06 Thread Fountain, Jennifer (Thomastech)
I am such a newbie it's not funny. I have a php bible and I am checking the code on three different websites. I was wondering if someone had some sample code on this: I want to list field1 from a mysql db - (I can do that) - but I want to put a hyperlink so the user can click it and go into t

<    1   2