[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

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] 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] 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] 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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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 : -- > 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] 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] 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] 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] 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] 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
> > > 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
> 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 > > 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
> 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] Problem with date('w')

2003-08-25 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 for

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] 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 confu

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 the

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 >

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 X-Powered-By: PHP/4.2.3 Content-type: text/html 2003-01-01 2003-02-01 Wha

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

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 > c:\inetpub\wwwroot\web

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

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/

RE: [PHP] Stop neurotic posting

2003-08-07 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 thin

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

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] 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 witho

RE: [PHP] Values from forms

2003-08-04 Thread Jennifer Goodie
> --- "Beauford.2005" <[EMAIL PROTECTED]> wrote: > > > > You misspelled method. :-) > > Hope that helps. > > Chris It seems like this exact same problem has been addressed before. http://marc.theaimsgroup.com/?l=php-general&m=105900603231518&w=2 http://marc.theaimsgroup.com/?l=php-general&m=10590

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", trim($_P

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 thi

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

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

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 "$query2"; > > The query doesn't take ... but if I cut and paste the printed > response into > the mysql server

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: > Edit > > 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, > but couldn't > fin

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 ow

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] 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 r

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 clien

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 > c:\inetpub\wwwroot\al

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. > $subnav = "home"; > include("incHeader.php"); > ?> > > > > The content would go here. > > > > > > Now, when I try to reference the subnav variable in the inHeader.php or > incFooter.p

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 = mysql_fe

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] Javascript multi text box form validation?

2003-07-18 Thread Jennifer Goodie
> 2. a sql_scrubber function to handle the apostrophes addslashes() http://www.php.net/manual/en/function.addslashes.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Returning values from functions

2003-07-09 Thread Jennifer Goodie
> function auth_user($logged_in) { > if (isset($logged_in)) { > list($s_username, $hash) = explode(',',$logged_in); > global $secret_word; > if (md5($s_username.$secret_word) == $hash) { > $username = $s_username; > return $username; > } else { > die ("You have t

RE: [PHP] php - javascript together prob?

2003-07-09 Thread Jennifer Goodie
Since you had problems with quotes yesterday too, I would suggest reading the manual page on strings so you do not continue to have the same problems day after day. http://www.php.net/manual/en/language.types.string.php > -Original Message- > From: Micah Montoy [mailto:[EMAIL PROTECTED]

RE: [PHP] preg_replace - understanding

2003-07-08 Thread Jennifer Goodie
> $filevalue = str_replace("\\", "/", $filevalue); > > it is reversing the "\\" to "//" but not replacing them with just a single > "/". I think you need to escape your \ so each \ is \\ so your string should be "" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

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

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] 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] 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] Quickie array question

2003-06-11 Thread Jennifer Goodie
> > foreach($newlines as $newline) { > > #how do I get the index of the array each time $newline is printed out? > > echo ??; > } foreach($newlines as $id=>$newline){ echo $id.''.$newline; } read the documentation http://us3.php.net/manual/en/control-structures.foreach.php -- PHP Gener

RE: [PHP] Re: Warning Spammer

2003-06-10 Thread Jennifer Goodie
> so do they get the emails from the archive ? ?if so password protect > please !! Which one? This list is archived on numerous sites. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] [FYI] phpbooks.com

2003-06-06 Thread Jennifer Goodie
> I mean if someone is into programming/php they will have enough > brains (most of the time) to do that much right? By that logic they'd also have enough brains to look at the documentation before asking questions on the mailing list, or to not reply to spam on the list, etc., etc. and we all kno

RE: [PHP] Heredoc question

2003-06-06 Thread Jennifer Goodie
> That's fine for that but I have several places that use if's and else's... > > Sparky > > http://us4.php.net/types.string says that heredoc acts just like double > > quoted, which would mean it expands variables, so I would try just Than I would suggest reading the manual page (the link I gave)

RE: [PHP] Heredoc question

2003-06-06 Thread Jennifer Goodie
> Can one use within the heredoc syntax or is there > another way?? I'm trying to dynamically generate email from > generic text but with obvious additions, like this: http://us4.php.net/types.string says that heredoc acts just like double quoted, which would mean it expands variables, so I would

RE: [PHP] insert loop logic

2003-06-05 Thread Jennifer Goodie
> When i get these values I want to enter them into the database but > 1)I should enter only the first 5 (and ignore the rest) into the database > 2)it has to enter 1 record for every every "id" picked > eg: > if id[1], id[2],id[3] and id[4] were picked it should enter this as 4 > differient record

RE: [PHP] Code Help Please

2003-05-31 Thread Jennifer Goodie
> I need to find if table1.username = table2.domain/table2.username is If you are using mySQL you can use CONCAT table1.username = CONCAT(table2.domain,'/',table2.username) http://www.mysql.com/doc/en/String_functions.html#IDX1174 -- PHP General Mailing List (http://www.php.net/) To unsubs

RE: [PHP] What's wrong with this code??

2003-05-31 Thread Jennifer Goodie
> Problem lines > > if ($mo == 06 and $dy > 01 and $dy < 09) { $wd = "8"; } > if ($mo == 06 and $dy > 08) { $wd = "9"; } > but if I change my date to 06/02 then no matter what I > try, $wd always gets the value of 9 (it should be 8 on this > date). It should > not get the value 9

RE: [PHP] dynamic IF statement

2003-04-04 Thread Jennifer Goodie
HTTP_GET_VARS["id"] is probably empty so this won't work, stick a $ in front of it. > -Original Message- > From: Leif K-Brooks [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 12:38 PM > To: Tim Haskins > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] dynamic IF statement > > > If I un

RE: [PHP] Quick Sessions ?

2003-04-04 Thread Jennifer Goodie
/ and got no change in behavior. It seems to me that > what I need is something like > session.cookie_path = /, ../ > but that doesn't work. Any other ideas? > > - Anthony > > "Jennifer Goodie" <[EMAIL PROTECTED]> wrote in message > news:[EM

RE: [PHP] Includes confusion

2003-04-04 Thread Jennifer Goodie
PHP parses includes inline, so whatever the scope is where the file is included, is the scope of the variables that the include contains. You can declare the variables global in your fuction and it will use what was included, that would be the quick fix, you could also switch your include to use D

RE: [PHP] Quick Sessions ?

2003-04-04 Thread Jennifer Goodie
Your cookie path is "" not "/" so your cookie is only readble by the directory it was set in. Check your session.cookie_path http://www.php.net/manual/en/ref.session.php > -Original Message- > From: Anthony [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 12:03 PM > To: [EMAIL PR

RE: [PHP] Which PHP version is stable with apache 2.0.39

2003-04-03 Thread Jennifer Goodie
http://www.php.net/manual/en/install.apache2.php > -Original Message- > From: Jason Smith [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2003 5:22 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Which PHP version is stable with apache 2.0.39 > > > Hi, > > Need some information as

RE: [PHP] no worky :|

2003-04-03 Thread Jennifer Goodie
rying to run it, so you can see what is wrong with it. > -Original Message- > From: Sebastian [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2003 2:33 PM > To: Jennifer Goodie; php list > Subject: Re: [PHP] no worky :| > > > thanks for pointing that out ye

RE: [PHP] no worky :|

2003-04-03 Thread Jennifer Goodie
Have you checked to make sure your query works, the syntax looks really odd. I've never seen INSERT ... WHERE > -Original Message- > From: Sebastian [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2003 2:20 PM > To: php list > Subject: [PHP] no worky :| > > > Hello, > > This form is

[PHP] php 3 to 4.3

2003-04-02 Thread Jennifer Fountain
Has anyone had issues with their php scripts not working after upgrading php from 3 to 4.3?   I have simple page that inserts data into mysql db.  The scripts worked fine until after the upgrade.    Below is one of my php scripts.  When I hit submit, nothing is added to the db :(   Add Record /

RE: [PHP] Making it so the .php isn't needed

2003-04-02 Thread Jennifer Goodie
You can accomplish this by enabling multiviews in your httpd.conf > -Original Message- > From: Teren Sapp [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 02, 2003 3:18 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Making it so the .php isn't needed > > > Hi, I had it setup on my server

RE: [PHP] Command line php

2003-04-01 Thread Jennifer Goodie
Try sending a control d to signify EOF, because fread will only read to end of file. But I wouldn't do 255 because you might want to enter more. Maybe stick a while !EOF in there. > -Original Message- > From: John Nichel [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 01, 2003 6:01 PM >

RE: [PHP] Question on response time, SQL vs. PHP

2003-03-31 Thread Jennifer Goodie
It is faster to do a count(*) -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 1:31 PM To: php list Subject: [PHP] Question on response time, SQL vs. PHP I'm trying to do a count(*) in SQL. Would it be faster to do a or b below? a: just do a sim

RE: [PHP] if statment

2003-03-31 Thread Jennifer Goodie
-- Tim Haskins "Tim Haskins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Wow, that's weird- I had just tried it and that didn't work, so I thought it > might be some special php thing goin on- thanks for your help! > > -- > Tim H

  1   2   >