[PHP] mail()

2002-03-19 Thread Jennifer
Hi guys, I'm new to PHP and i'm trying to set it up so that i can use the mail() function to send emails. I'm using Mac OS X 10.1.3, PHP 4.1.2 and Apache/1.3.20. I've copied the php.ini-dist to usr/local/lib and renamed it php.ini I have also uncommented the following lines from the

Re: [PHP] mail()

2002-03-19 Thread Jennifer
sorry...i should have mentioned also that I am not using the internal mail server but i am using an external mail server On Wednesday, March 20, 2002, at 05:24 PM, Jennifer wrote: Hi guys, I'm new to PHP and i'm trying to set it up so that i can use the mail() function to send emails. I'm

[PHP] fopen failing to connect

2002-05-15 Thread jennifer
: Warning: php_hostconnect: connect failed in /usr/local/apache/htdocs/514parser.php on line 135 Warning: fopen(http://www.thedeal.com/NASApp/cs/ContentServer?pagename=TheDeal/xmlfeed;, r) - Bad file number in /usr/local/apache/htdocs/514parser.php on line 135 Any suggestions? -jennifer -- PHP

Re: [PHP] fopen failing to connect

2002-05-15 Thread Jennifer
i looked at the php.ini file and f wrapper is configured. thanks for the suggestion. i am still looking for any suggestions anyone has. thanks. -jennifer Miguel Cruz wrote: Sounds like maybe the fopen url wrapper is not installed. I've never taken any particular steps to install it, so I'm

Re: [PHP] How to add a new color to JPEG

2001-07-17 Thread Jennifer
Jennifer wrote: it seems to ignore the color that I specify and always came out grey. (Of course now if I use ImageColorClosest(), some colors work because they are in my image.) Any idea on how solutions? Oops. I didn't read far enough. I found the following in a separate thread

[PHP] Whitespace in Emails

2006-12-12 Thread jennifer
I'm experiencing a strange problem and difficult to diagnose because it's random. I have built an application that sends out an email with a nice amount of text (don't have exact char count, but could get it). On the html email, a random whitespace appears in the content, but always toward

[PHP] TTF Support

2001-04-10 Thread Jennifer
can do this locally without having root access? Jennifer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] What is Dynamic Library support

2001-04-12 Thread Jennifer
When I do phpinfo() on my server one of the things it says is PHP_DL Dynamic Library support enabled. What does that mean? Jennifer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] is_null

2001-04-12 Thread Jennifer
I wanted to use is_null, but it isn't available in my version (4.0B2) What would be an equivalent? I'm fairly new to PHP. I was using isset, but sometimes it is set to Null. Null values are unacceptable, but zero is a perfectly acceptable value for what I want. Jennifer -- PHP General

[PHP] Sessions

2001-04-29 Thread Jennifer
to work? Jennifer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] session_register()

2001-05-02 Thread Jennifer
? session_register should return true if the variable was successfully registered? The variable name and it's value should be written to the file with the same name as session_id()? Jennifer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: [PHP] session_register()

2001-05-03 Thread Jennifer
. Jennifer Johnson, Kirk wrote: -Original Message- From: Jennifer [mailto:[EMAIL PROTECTED]] Do you need to register a variable with the session before you assign it a value? Not in my experience. session_register should return true if the variable was successfully

[PHP] Working with numbers

2001-05-03 Thread Jennifer
make it easy. Jennifer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] session_register()

2001-05-03 Thread Jennifer
This is bad, bad, bad. I tried using another browser as you suggested (since I was using Netscape 4.7) and the session_register worked. I still got different results than you though. Read throughout for more comments. Johnson, Kirk wrote: Jennifer, there are at least two of us totally

Re: [PHP] session_register() - Netscape workaround?

2001-05-05 Thread Jennifer
Johnson, Kirk wrote: -Original Message- From: Jennifer [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] session_register() 1. What browser are you using? I, and others, have seen erratic results with sessions using Netscape 4.x. If this is your browser, try your code

Re: [PHP] session_register() - Netscape workaround?

2001-05-05 Thread Jennifer
Jennifer wrote: I thought of a workaraound for Netscape and would like some feedback on how to do it and whether it is a good idea. I manually edited the session file and Netscape was able to read the variable on subsequent pages. It just can't seem to write it. So I thought, until

[PHP] passing variables to a sql statement

2003-01-18 Thread jennifer
?rowid=$foobar' . $foo/a . | ); echo(/font); } ? thanks in advance, jennifer

[PHP] connecting to a txt file - newbie

2002-10-10 Thread jennifer
and the txt file contains one line of bogus txt. you can see my results here: http://www.villany2k1.com/text.php. if anyone has any info as to what i am doing wrong, i would really appreciate it. thanks so much jennifer ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net

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

[PHP] Random number Question

2002-03-12 Thread Jennifer Downey
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
', 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
()); } } TIA Jennifer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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 last record in the table. in oth

[PHP] Re: Closing curly brackets?

2002-04-13 Thread Jennifer Downey
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 properly

[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

[PHP] Using one submit button

2002-04-16 Thread Jennifer Downey
one submit button how do I get this to update all items that are listed? TIA Jennifer -- The sleeper has awaken --- 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 General

Re: [PHP] Using one submit button

2002-04-16 Thread Jennifer Downey
s:[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 PROTECTED]] Sent: Wednesday, April 17, 2002 11:51 AM To: [EMAIL PROTECTED] Subject: [PHP] Using on

Re: [PHP] Re: Using one submit button

2002-04-17 Thread Jennifer Downey
]; $ret = mysql_query($query) or die(mysql_error()); } else { echo TD width=30%font size=2CENTERinput=\hidden\ name=\id[$i]\ value=\$id\input type=\text\ value=\\ name=\price[$i]\ size='8' MAXLENGTH='8'BR/a/CENTER/font/TD; Jennifer Kevin Stone [EMAIL PROTECTED] wrote

Re: [PHP] Re: Using one submit button

2002-04-17 Thread Jennifer Downey
]; $ret = mysql_query($query) or die(mysql_error()); } else { echo TD width=30%font size=2CENTERinput=\hidden\ name=\id[$i]\ value=\$id\input type=\text\ value=\\ name=\price[$i]\ size='8' MAXLENGTH='8'BR/a/CENTER/font/TD; Jennifer Jason Wong [EMAIL PROTECTED] wrote in message

[PHP] If else question

2002-04-23 Thread Jennifer Downey
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 Free. Checked by AVG anti

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
) echo can't be found; else { echo first line of form; echo second line of form; } This is what I have: if($quantity 1) { echo Sorry I can't seem to locate this item; } else { do this } So yes I have done exactly as you have stated and it still shows the form. Jennifer

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
It shows both. Natalie Leotta [EMAIL PROTECTED] wrote in message 7546CB15C0A1D311BF0D0004AC4C4B0C024ABFC3@SSIMSEXCHNG">news:7546CB15C0A1D311BF0D0004AC4C4B0C024ABFC3@SSIMSEXCHNG... Does it show the message and the form or just the message? -Natalie -Original Message- From:

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 Serna [EMAIL PROTECTED] wrote:

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
that 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:7546CB15C0A1D311BF0D0004AC4C4B0C

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 PROTECTED]">news:001d

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
='discard'Discard this item/OPTION; echo OPTION VALUE='donate'Donate this item/OPTION; echo /SELECT; echo INPUT TYPE='submit' VALUE='Submit' NAME='submit'; echo /FORM; } Jennifer --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.351

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
rd, have you printed out all the values fetched via mysql_fetch_array() to ensure they contain valid data? - Original Message - From: Jennifer Downey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 12:48 PM Subject: Re: [PHP] If else question Ok y

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 messing the rest of your code, change

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
this item/OPTION; echo /SELECT; echo INPUT TYPE='submit' VALUE='Submit' NAME='submit'; echo /FORM; } } } and it worked perfectly! Thank you ALL for your time and help! Jennifer P.S. You people are wonderfull! --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

[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

[PHP] Redirect

2002-04-25 Thread Jennifer Downey
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.php.net

[PHP] mail() through a form

2002-04-26 Thread Jennifer Downey
BRINPUT TYPE='submit' VALUE='Send Report' NAME='submit'; echo /FORM; } Thanks 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

[PHP] Columns not displaying as they should

2002-05-01 Thread Jennifer Downey
]BR ; echo table cellSpacing=0 cellPadding=0 width=\100%\ border=0trtd width = \100\$display_block/td; if ($column 5) { echo /trtr; $column = 1; } echo/table; } } Thanks for your time and help Jennifer -- The sleeper has awaken --- Outgoing mail

[PHP] strtotime failure

2002-05-07 Thread Koenig, Jennifer
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: http

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) echo The file exists!; else echo The file does

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 to be a

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 'someflag', or if

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 ?php $url =

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 calls

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? Well, the apache user really shouldn't

[PHP] Re: PHP and MySQL bug

2003-01-06 Thread Jennifer Goodie
It would be helpful if you posted that error. You can get it by changing the die to $queryr = mysql_query($query) or die(mysql_error()); Without knowing the error, you problem will be harder for everyone to debug. -Original Message- From: Nuno Lopes [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] MySQL/PHP problem.

2003-07-22 Thread Jennifer Goodie
Off the top of my head, try using OR in your query rather than AND day=\2\ or day=\3\ day probably won't equal both 2 and 3, which is why you are getting 0. Also, if you group by item name, you are going to get the total for each itemname, is that what you want, or just the overall total?

RE: [PHP] newbY prob

2003-07-23 Thread Jennifer Goodie
! am trying to count the number of items in this table. The table has one field in it. The code I am using is: $dbquerymeal = select COUNT(*) from mealtype; $resultmeal = mysql_db_query($dbname,$dbqueryshipping1); if(mysql_error()!=){echo mysql_error();} $mealcount =

RE: [PHP] Include Problems

2003-07-24 Thread Jennifer Goodie
Without seeing what you have in your includes, it will be hard to determine where your scope is messed up. ?php $subnav = home; include(incHeader.php); ? !--- CONTENT AREA --- The content would go here. !--- END CONTENT AREA --- ?php include (incFooter.php); ? Now, when I try to

RE: [PHP] File upload?

2003-07-24 Thread Jennifer Goodie
$uploaddir = 'C:\Inetpub\wwwroot\pix'; $filnamn=$_FILES['userfile']['name']; I thought of just adding a backslash at the very end of the $uploaddir variable but that just leaves me with this error-message instead: Parse error: parse error, unexpected T_STRING in

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

2003-07-29 Thread Jennifer Goodie
Actually, what you see is *exactly* the code being used. Nothing has changed about it. And whether the variable is regarded as a string or a number, it gives me the same stupid issue. Not recognizing it as a True statement. :\ Is there any way possible that this could be the client's

RE: [PHP] Weird Problem

2003-07-29 Thread Jennifer Goodie
I have the following chunk of code: $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; It always prints out 1 But if I run the code at

RE: [PHP] Weird Problem

2003-07-29 Thread Jennifer Goodie
The only setting contained in that table is the one im calling for, and its value is 25. see what print_r($row) outputs, then you'll at least know what is in the array. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySQL query/PHP logic?

2003-07-29 Thread Jennifer Goodie
select * from main left join fof on main.id = fof.id left join pub on main.id = pub.id left join gov on main.id = gov.id left join med on main.id = med.id left join ngo on main.id = ngo.id left join own on

RE: [PHP] Using link to submit a form

2003-07-30 Thread Jennifer Goodie
Hi everyone, Can I replace Submit buttons on forms with a text button? I need to be able to click on a link: a href=index.php?option=editEdit/a and have it submit the form. The form only contains one field...does anyone know how to do this? I've been searching google for an answer,

RE: [PHP] Escaping nasty quotes

2003-07-31 Thread Jennifer Goodie
I have this: $query = LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE mytable FIELDS TERMINATED BY ',' ENCLOSED BY ' . '' . ' ; $result = MYSQL_QUERY($query); PRINT br$query2br; The query doesn't take ... but if I cut and paste the printed response into the mysql server manually ...

RE: [PHP] Re: include help please

2003-07-31 Thread Jennifer Goodie
if (isset($page)) { include $$_GET['page']; } else { $page = $home; include $page; } would that be right? or should i use if (isset($page)) { include $$_GET['page']; } else { include $home; } hopefully that's right. if so, pretty good for a n00b I don't think I'd let someone

RE: [PHP] is there a way?

2003-07-31 Thread Jennifer Goodie
Is there a way to have your html table represent one color, Cause when I click the link it turnes purple, and I want it to stay 336699 no matter what state. I tried to use css, but it does the whole page. And I want the 336699 to be in this table alone. Can anyone help me out with this

RE: [PHP] Is there an easier way?

2003-07-31 Thread Jennifer Goodie
if(!($rs = mysql_query($q))) // querying { echo Query failed. mysql_error(); exit; } $n = 0; while ($line = mysql_fetch_assoc($rs)) { //dumping into an array foreach ($line as $field = $value) { $data[$field][$n] = $value; } $n++; } and this is how i use

RE: [PHP] Regular Expression

2003-08-04 Thread Jennifer Goodie
Been working on this one for a while but can't get it working properly. I need a regular expression to match if address is 1. PO Box 2. P.O. Box 3. P.O.Box I got it working with 1 2, but it's still not matching 3. Any suggestions? if(preg_match( /p[\.]o\.* +box/i,

RE: [PHP] Values from forms

2003-08-04 Thread Jennifer Goodie
--- Beauford.2005 [EMAIL PROTECTED] wrote: FORM ACTION=teams-write.php action=post name=inputs You misspelled method. :-) Hope that helps. Chris It seems like this exact same problem has been addressed before. http://marc.theaimsgroup.com/?l=php-generalm=105900603231518w=2

RE: [PHP] setting function variables

2003-08-07 Thread Jennifer Goodie
I am trying to specify a single php file to contain all the variables and I just call this file where necessary. What I am running into is that I want to do this for all the built in functions (i.e. mssql_query) as well. I've tried numerous attempts but can't get it to operate without

RE: [PHP] AOL Email client

2003-08-07 Thread Jennifer Goodie
I am using php mail and setting all my $headers info to show From:, To:, What does your call to mail() look like? How are you formatting you headers? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] AOL Email client

2003-08-07 Thread Jennifer Goodie
Here is what my header look like: $headers .= MIME-Version: 1.0\r\n; $headers .= Content-type: text/plain; charset=us-ascii\r\n; $headers .= From: .$name. .$email.\r\n; $headers .= To: .$myname.

RE: [PHP] Stop neurotic posting

2003-08-08 Thread Jennifer Goodie
Not to beat a dead horse, but... From two separate responses: And as for Google, I don't feel like I have time to wade through pages and pages of irrelevant links until I find what I'm looking for when I have a better resource right here. I've actually learned quite a few useful things

RE: [PHP] strtotime()

2003-08-14 Thread Jennifer Goodie
strtotime( '+1 month', mktime( 0, 0, 0, 1, 1, 2003 )); I get back the timestamp for 1/31/2003 and not 2/1/2003. Are you sure? Yeah, but I missed something in my above example. If I did this: strtotime( '+1 month GMT', mktime( 0, 0, 0, 1, 1, 2003 )); It came back with 1/31/2003 and

RE: [PHP] bug in code - can't find it!

2003-08-14 Thread Jennifer Goodie
Ok, here is my query and the bit of code I can't figure out: $query = SELECT * from apt_user_t a, apt_company_t b ; $query .= WHERE a.user_cd = b.user_cd ; $query .= ORDER BY a.username; $search_results = mysql_query($query) or die(Select Failed!); while ($search_result2

RE: [PHP] setting function variables

2003-08-14 Thread Jennifer Goodie
Tried this and it returns errors of type: Warning: Wrong parameter count for mssql_result() in c:\inetpub\wwwroot\webpage10\example\utilities\dsp_del_images.php on line 78 Warning: mssql_result(): supplied argument is not a valid MS SQL-result resource in

RE: [PHP] strtotime()

2003-08-14 Thread Jennifer Goodie
strtotime( '+1 month', mktime( 0, 0, 0, 1, 1, 2003 )); I get back the timestamp for 1/31/2003 and not 2/1/2003. Are you sure? I tried it on my system (php 4.2.3 freeBSD 4.6.2) and this is the output I got... # php ?php echo date(Y-m-d, mktime( 0, 0, 0, 1, 1, 2003 )).\n; echo

RE: [PHP] discussion forum from j. meloni's book

2003-08-14 Thread Jennifer Goodie
// the query $verify = select ft.topic_id, ft.topic_title from forum_posts as fp left join forum_topics as ft on fp.topic_id = ft.topic_id where fp.post_id = $_GET[post_id]; ... My question: why - or how can - the columns ft.topic_id and ft.topic_title come from

RE: [PHP] Commands out of sync; You can't run this command now

2003-08-14 Thread Jennifer Goodie
Hi For a few days or maybe even a week or two I'm getting this error message in my site. This happens when i do : mysql_select_db() This doesn't happen all the time and there are pages that it happens more than others so it seems. I looked in the manual and the explanation there doesn't

RE: [PHP] discussion forum from j. meloni's book

2003-08-14 Thread Jennifer Goodie
Anyway, in the textbook and the zip her mySQL query reads: ... $verify = select ft.topic_id, ft.topic_title from forum_posts as fp left join forum_topics as ft on fp.topic_id = ft.topic_id where fp.post_id = $_GET[post_id]; . The part that I'm confused about

RE: [PHP] Question on class syntax

2003-08-14 Thread Jennifer Goodie
I am currently using a php class that uses the following syntax: $value= htmlcleaner::cleanup($value); What exactly is the :: used for? Is there a different syntax for :: ? The manual has an entire section on this (http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php) have you read

RE: [PHP] Bug in Ereg?

2003-08-15 Thread Jennifer Goodie
What is posted [ from phpinfo() ]: _POST[color-1] on _POST[color-4] on _POST[color-6] on Parser: foreach($_POST as $ThisVar=$ThisVal){ if(ereg(color-, $ThisVar) AND $ThisVal==on OR $ThisVal==1){ $newVarA=explode(-, $ThisVar);

RE: [PHP] Problem with date('w')

2003-08-26 Thread Jennifer Goodie
I have a problem with the date function ? $theday = date(Y-m-d, time()); echo date((w), $theday); ? I'm pretty sure the optional second argument for date is a unix timestamp that you would generate by using either time or mktime or strtotime. You are passing it something in the form of

RE: [PHP] Impossible error

2003-08-26 Thread Jennifer Goodie
I have a 163 line file. I get a parse error on line 164. Ideas? You're probably missing a } somewhere. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 display the lowest

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 something a little

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... but anyway...

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
?php /* your mixed html and php code here */ ? that way php will take everything inside the ?php ? 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

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

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 section on

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 ?php $lines = file ('https://www.example.com/'); foreach ($lines as $line_num = $line) { echo Line #b{$line_num}/b : . htmlspecialchars($line) . br\n; } My interpretation of the manual page

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

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-generalw=2r=1s=excelq=b Here is yesterday's thread

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 a drug.

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= 24;

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'), not

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_error() telling you? If it was my

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,

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 you? I dont believe it to be an error because Ive run this from the CLI

  1   2   >