[PHP] Error Code Airhead

2004-11-02 Thread Jeff Oien
I'm sure I'm missing something really obvious here but can't see it. There is a form where one of two promotional codes can be entered. I check for the these codes and give the user an error message if they enter the wrong code. First one doesn't work, second one does with only one code. //always g

Re: [PHP] MySQL query for average records per day

2004-09-16 Thread Jeff Oien
John Holmes wrote: From: "Greg Donald" <[EMAIL PROTECTED]> You can't get the average and a count in the same query Sure you can. mysql> select count(number), avg(number) from numbers; Depends how you interpret his request, I guess. I took it as a request for the count of records per day and then

[PHP] MySQL query for average records per day

2004-09-16 Thread Jeff Oien
I have a database with a date field in this format 20041016 I'd like to count how many records were made on each day (except today) and average them. Can I do this in one query or will I need to do some more PHP stuff after I get some results? Thanks. Bare bones so far: $sql = "select date1 from

[PHP] Strip Everything But Letters and Numbers?

2004-09-15 Thread Jeff Oien
Is there an easy way to strip out everything but letters and numbers from a string? I tried searching the archives and didn't come up with much. Thanks. Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: HTTP_POST Intermittent Problem

2004-08-26 Thread Jeff Oien
Manuel Lemos wrote: Hello, On 08/26/2004 02:12 PM, Jeff Oien wrote: I'm using the code below and about a third of the posts aren't getting through. We have no idea why and don't know where to start to trouble shoot. Any ideas? Thanks. Are you sure the data is always URL encode

Re: [PHP] HTTP_POST Intermittent Problem

2004-08-26 Thread Jeff Oien
Matt M. wrote: can you use PEAR? There is already a bunch of http packages http://pear.php.net/package-search.php?pkg_name=http&bool=AND&submit=Search I've taken a look at that and don't know the first thing about how to implement or use it. Are there any tutorials out there? Plus, I don't know i

Re: [PHP] HTTP_POST Intermittent Problem

2004-08-26 Thread Jeff Oien
Jay Blanchard wrote: [snip] I'm using the code below and about a third of the posts aren't getting through. We have no idea why and don't know where to start to trouble shoot. Any ideas? Thanks. [/snip] Have you checked the http access and error logs? On their end? Yes they can see each attempt

[PHP] HTTP_POST Intermittent Problem

2004-08-26 Thread Jeff Oien
I'm using the code below and about a third of the posts aren't getting through. We have no idea why and don't know where to start to trouble shoot. Any ideas? Thanks. Jeff function http_post($host, $path, $data) { $http_response = ''; $content_length = strlen($data); $fp = fsockop

Re: [PHP] HTTP POST then Redirect?

2004-08-04 Thread Jeff Oien
Justin Patrin wrote: On Wed, 04 Aug 2004 16:01:31 -0500, Jeff Oien <[EMAIL PROTECTED]> wrote: I'm using the code below to post form data to an ASP script. But I need to redirect to a "thank you" page when it all done or the person filling out the form sees what they're no

[PHP] HTTP POST then Redirect?

2004-08-04 Thread Jeff Oien
I'm using the code below to post form data to an ASP script. But I need to redirect to a "thank you" page when it all done or the person filling out the form sees what they're not supposed to see. Any way I can do this? If take out the last line and print a header(URL) it won't post the data. T

Re: [PHP] is_numeric questions - followup

2004-07-28 Thread Jeff Oien
Jeff Oien wrote: Does is_numeric include commas decimals and dollar signs? How do I use this to error check form data? I'm having a hard time figuring out what the correct syntax is for that application. Thanks. Jeff I think what I should have asked is how to tell if something is not num

[PHP] is_numeric questions

2004-07-28 Thread Jeff Oien
Does is_numeric include commas decimals and dollar signs? How do I use this to error check form data? I'm having a hard time figuring out what the correct syntax is for that application. Thanks. Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

[PHP] Changing items in $_POST

2004-07-23 Thread Jeff Oien
I have items from a form that will be in $_POST that I want to send on. I'll be using this: $arr = array(); foreach($_POST as $key => $value) { $arr[] = $key.'='.urlencode($value); } $URL = "https://example.com/script.asp?".implode('&',$arr); header("Location: $URL\n"); However, there are a

[PHP] Plain Number

2004-07-19 Thread Jeff Oien
Is there an easy way to make a number have no comma or decmal points? I've tried string replace with the comma but thought there would be a better alternative that I'm missing to cover more bases. number_format seems to add instead of take away items. Jeff -- PHP General Mailing List (http://ww

Re: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Jeff Oien
The client's vendor only specifies that it's = pairs and that it's URL encoded so I don't think that's an issue. But don't let that squelch any discussion. :) Jeff Oien Vail, Warren wrote: I believe we all missed something important here, but I've been

Re: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Jeff Oien
Thanks for the helpful examples. One other question. Is there an advantage to sending the URL via a header as opposed to doing http_post like this? http://shiflett.org/hacks/php/http_post Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Putting $_POST into string to send to ASP

2004-07-16 Thread Jeff Oien
Dumb question, sorry if it's a repeat. I will use PHP for a form with error checking. When there are no errors I need to send all the variables thru something like this: $URL = "https://example.com/script.asp?First=Jim&Last=Smith";; urlencode($URL); header("Location: $URL\n"); How do I gather up

[PHP] Compare Case Insensitive?

2004-04-08 Thread Jeff Oien
How can I compare a variable submitted by a form as case insensitive? A promotional code will be entered into a form and it's important that they can enter the code either way. So if I have if ($code == 'ABC123') { I want that to match 'aBC123' 'abc123' or whatever. Thanks. Jeff -- PHP General Mai

[PHP] 9 Months Ago

2004-03-20 Thread Jeff Oien
When I do this: $lastmonth = mktime(0, 0, 0, date("m")-9, date("d"), date("Y")); echo "$lastmonth"; It prints this: 1056081600 Could you tell me what I'm missing? Thanks and thanks for the previous help. Jeff Oien -- PHP General Mailing List (htt

Re: [PHP] Convert Date Format?

2004-03-20 Thread Jeff Oien
[EMAIL PROTECTED] wrote: On 20 Mar 2004 Jeff Oien wrote: How do I convert this 9/8/2001 (which is Month/Day/Year) to this 20010908 (YearMonthDay - with leading zeros) How about: Can I put that print (sprintf etc. into a variable? Thanks. Jeff Oien -- PHP General Mailing List (http

[PHP] Convert Date Format?

2004-03-20 Thread Jeff Oien
How do I convert this 9/8/2001 (which is Month/Day/Year) to this 20010908 (YearMonthDay - with leading zeros) Or alternatively take the Month/Day/Year format and find anything older than 9 months ago. Thanks. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] refresh page

2004-03-16 Thread Jeff Oien
es. Let me know if you want the code. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Switching First & Last Names in List

2004-03-16 Thread Jeff Oien
. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTML Utilities

2004-03-13 Thread Jeff Oien
y to do it myself but then I'll have to bother you people with questions. :) Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Variable Inside Variable

2002-04-20 Thread Jeff Oien
> On Fri, 19 Apr 2002, Jeff Oien wrote: > >> Far better would be to put a placeholder in $body like @@@ and then just > >> do $body = ereg_replace('@@@', $url, $body); > > > > That's giving me a blank also. The form for changing the email is

RE: [PHP] Variable Inside Variable

2002-04-19 Thread Jeff Oien
> On Fri, 19 Apr 2002, Jeff Oien wrote: > >> Use eval(). > > > > I have $url (literally) embedded in some text in the database that is to be > > sent as an email message. I'm using this and $url disappears with a blank > > spot in the text: > &

RE: [PHP] Variable Inside Variable

2002-04-19 Thread Jeff Oien
> On Friday 19 April 2002 09:31, Jeff Oien wrote: > > I have a script which retrieves the body of an email message from > > a MySQL database to be sent to someone who applies using a form. > > The script contains this: > > > > $url = " > href=\"http

[PHP] Variable Inside Variable

2002-04-18 Thread Jeff Oien
ng I can think of with $url, curly brackets, backslashes etc. What am I missing? Thanks. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mktime on W2K?

2002-03-16 Thread Jeff Oien
I use this on a Unix server to get yesterday's date if it's a Saturday: if ($day == '6') { $today1 = date("Y:m:d", mktime(0,0,0,$month,$day-1,$year)); } But on my Windows 2000 machine it thinks it's 1999:12:05. How can I do this on Windows? Thanks. Jeff Oien

RE: [PHP] PHP - Tutorial

2002-03-02 Thread Jeff Oien
I have a site here that may be helpful: http://www.webdesigns1.com/php/ Jeff Oien > Hello all, > I am a beginner of php/mysql and am looking for good books for beginners > and mostly good online php tutorials. Anybody have any suggestions? > > > -- > PHP Gener

[PHP] Pass Cookie? (Snoopy)

2002-02-17 Thread Jeff Oien
to use Snoopy? Thanks for any help. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Number_Format Question

2001-11-03 Thread Jeff Oien
I have a number like this 0.51 and I would like it to display without the leading 0. How can I do this? Thanks. Jeff Oien -- 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

RE: [PHP] 2 Forms On 1 Page

2001-11-03 Thread Jeff Oien
> On Saturday 03 November 2001 11:28 am, you wrote: > > If I have two forms on one page that both use the same script how > > do I get only the fields on one of the forms to be submitted? If that > > makes any sense. > > Jeff Oien > > as long as you enclose

[PHP] 2 Forms On 1 Page

2001-11-03 Thread Jeff Oien
If I have two forms on one page that both use the same script how do I get only the fields on one of the forms to be submitted? If that makes any sense. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Sort Question (Again)

2001-09-21 Thread Jeff Oien
This didn't get answered before. I'm trying to sort an array but it won't work. $list = file('list_main.txt'); $list = sort($list); If I print $list it gives me 1 and print $list[0] is nothing. The list_main.txt looks something like this: ABC DEFG HIJ etc. Jeff Oien --

[PHP] Sort Question

2001-09-21 Thread Jeff Oien
Could someone tell me how to sort this? Each $variable1 is a 3,4 or 5 letter string that I would like sorted alphabetically. I assumed "sort" would do it but apparently it isn't the right type of array. Thanks. $variable1 = split("\n", $variable); Jeff Oien -- PHP G

RE: [PHP] << Previous / Next Buttons >>

2001-09-06 Thread Jeff Oien
echo " | Next >>"; //no link } elseif ($photo_pos < $count) { $next_pos = $photo_pos; $next = $array[$next_pos]; echo " | Next >>"; } Comments from more experienced programmers welcome. I don&

[PHP] Image Question

2001-09-04 Thread Jeff Oien
ound will be white. If this is possible what's the best way to go about it? Thanks. Jeff Oien -- 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] File Upload Problem Solving?

2001-08-31 Thread Jeff Oien
I found the problem. A user was logged in under their username with a different case (capital/small letters) and that caused a problem. Jeff Oien > I have a user who is unable to upload files but I don't know where > to start with the troubleshooting process. I have this: >

[PHP] File Upload Problem Solving?

2001-08-31 Thread Jeff Oien
I have a user who is unable to upload files but I don't know where to start with the troubleshooting process. I have this: @copy("$img1", "/blah/$username/$img1_name") or die("File upload didn't work."); and they are getting the die message. All

RE: [PHP] mkdir Question

2001-08-26 Thread Jeff Oien
However even the permission of 0777 doesn't let me do anything to the directory or files in it. I can't even chown or chmod anything in it using Telnet once it's created. Jeff Oien > Jeff > JO> mkdir ("/usr/www/users//blah/blah/$username", 0777); > J

[PHP] mkdir Question

2001-08-26 Thread Jeff Oien
When using this command: mkdir ("/usr/www/users//blah/blah/$username", 0777); it sets it to nobody instead of my username. I'm then unable to delete or modify files in that directory. Is there a way around this? Thanks. Jeff Oien -- PHP General Mailing List (http://w

[PHP] Eregi for Image

2001-08-26 Thread Jeff Oien
I want to check if an uploaded file is an image. This isn't working. Could anyone help me out? if (!eregi("\\.gif$", $img1_name) || !eregi("\\.jpg$", $img1_name) || !eregi("\\.jpeg$", $img1_name)) { error message } Jeff Oien -- PHP General Ma

RE: [PHP] Echo/Print

2001-08-25 Thread Jeff Oien
You can read the notes lower on the page here to get a good idea: http://www.php.net/manual/en/function.print.php Jeff Oien > I am fairly new to PHP Scripting, and I am learning from a book. > Throughout the book, print is used as the basic command to output > text/variables.. yet I s

RE: [PHP] GoTo URL Function?

2001-08-20 Thread Jeff Oien
http://www.php.net/manual/en/function.header.php > Hi, > > I am sure there is an easy way to do this... > > But when my script is done doing whatever I want it to do - RATHER than > print text and all to a page, I want the browser (within the same window) to > go to a specific URL > > Can this

[PHP] Simulate Cron/PHP in Win2k?

2001-08-15 Thread Jeff Oien
Apache and PHP4 on Windows 2000 Professional. Thanks. Jeff Oien -- 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] ucwords Except 'The' 'And' etc?

2001-08-13 Thread Jeff Oien
Fabulous. Thanks to Steve and Mark. Exactly what I needed. Jeff Oien > >Something like this, perhaps (untested): > > I needed this too so I just tested it. > > >function smart_ucwords($String) > >{ > > > > $ExceptionList = array('the&#x

[PHP] ucwords Except 'The' 'And' etc?

2001-08-13 Thread Jeff Oien
Is there a prewritten function for capitalizing the first letter of each word in a string except for the common words you wouldn't want to capitalize in a title? Like Come Learn the Facts From an Industry Leader Thanks. Jeff Oien -- PHP General Mailing List (http://www.php.net

RE: [PHP] Matching Question

2001-08-04 Thread Jeff Oien
Thank you. That worked and I'm sure will have made it work a lot faster later on when there is a lot of data in the database. Jeff Oien > On Sat, 4 Aug 2001 12:40:42 -0500, Jeff Oien ([EMAIL PROTECTED]) > wrote: > >After a sign up page I want to check if someone is already

[PHP] Matching Question

2001-08-04 Thread Jeff Oien
name doesn't. Not sure what I'm doing wrong. Thanks. Jeff Oien while ($row = mysql_fetch_array($result)) { $First_Name = $row['First_Name']; $Last_Name = $row['Last_Name']; $Address = $row['Address']; if ((

[PHP] Phone Number #s Only?

2001-08-03 Thread Jeff Oien
Is there a routine out there to strip all characters from a phone number except the numbers? I was going to write my own but figured there must already be one out there I can use. Thanks. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Content Type Text?

2001-08-01 Thread Jeff Oien
I've looked all over and can't find a content-type declaration for text. This is my guess header("Content-Type: text/txt"); but I'm not sure if this is right. I know this is more HTTP than PHP. I want info to be displayed in a browser as plain text not HTML. Thanks. J

RE: [PHP] New Book - Tips?

2001-07-30 Thread Jeff Oien
One thing I would like to see is using PGP (or gnu) encryption on the server, not via e-mail. Jeff Oien > Hi there, > > I'm currently in the process of writing a new book about PHP entitled PHP Exertion. > > I've read several other books, and none of them covered everyth

[PHP] Sessions Question

2001-07-28 Thread Jeff Oien
between each other. Here is what I have for the first script/page after the form. I don't know what to do after this on the second page in order to pass the variables on to it. Thanks for any help. Jeff Oien - $title If you can see this message you are

RE: [PHP] Regular Expression Question

2001-07-25 Thread Jeff Oien
Aren't the trims just for white space? Jeff Oien > since you know exactly which 4 characters you want to keep you can use a > simple string trimming routine. I forget the name of the function in php > but it's there and it'll be something like > > trimstring($

[PHP] Regular Expression Question

2001-07-25 Thread Jeff Oien
I want to replace a string like this 1B335-2G with this B335. So for all the strings I want to remove the first character and the last three characters. I'm not sure which replace function to use or how to go about it. Thanks. Jeff Oien -- PHP General Mailing List (http://www.php.net

RE: [PHP] Learning PHP

2001-07-25 Thread Jeff Oien
http://www.webdesigns1.com/php Jeff Oien > Can someone please make a list of the best places to learn PHP as I have 6 > weeks of school holidays and I want to put the m to good use (i have the > PHP reference guide from www.oreilly.com and i have the big ass document > files from

RE: [PHP] Control Structure Problem

2001-07-22 Thread Jeff Oien
I forgot to say I deleted tabs so that the width might fit in a typical mail reader. Jeff Oien > This code assigns rooms to kids signing up for Sunday school > at a very large church. Each subsequent registration is put into > the next room on the list. It looks up in the MySQL databa

[PHP] Control Structure Problem

2001-07-22 Thread Jeff Oien
x27;ve had a couple other problems and am wondering if there is a better way to do this or if I have any syntax problems. Thanks. Jeff Oien $x = 1; while ($x <= $Number_Children) { if (${"category".$x} == 'SS KidZone - Kindergarten') { if ((${"Grade"

RE: [PHP] Unexplained Timeout

2001-07-16 Thread Jeff Oien
thing. :) Jeff Oien > I get a 30 timeout on the line indicated when executing this code > and can't figure it out. Does anyone know why? Thanks. > Jeff Oien > > - > > if ($missing == "1") { > > echo " > > >

RE: [PHP] Unexplained Timeout

2001-07-16 Thread Jeff Oien
I don't know. :) I tried again without $Number_Children in quotes and still get the timeout but on a different line (3 lines down). It seems it isn't necessarily a specific line causing it. Jeff Oien > Why is "$Number_Children" in quotes? > > On Mon, 16 Jul 2001, J

RE: [PHP] Unexplained Timeout

2001-07-16 Thread Jeff Oien
I know $Number_Children is 2. I printed it. And $z starts out as 1. I don't think that's it. Jeff Oien > > while ($z <= "$Number_Children") { > > >>error>if (${"element2$z"} == "select") { > > Looks to me like

[PHP] Unexplained Timeout

2001-07-16 Thread Jeff Oien
I get a 30 timeout on the line indicated when executing this code and can't figure it out. Does anyone know why? Thanks. Jeff Oien - if ($missing == "1") { echo " Error Error Required inf

FW: [PHP] Variable Next To Variable?

2001-07-11 Thread Jeff Oien
What I'm doing is having a form page ask, "How many children do you want to sign up?" Then it spits out form fields for as many children as they asked for. So each field has name="C_Last_Name$x" and $x in incremented for each child. Should I make it name="C_Las

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread Jeff Oien
I like this idea but it's giving me a parse error on this code: if (!{$C_Last_Name}{$y}) I'm looking at the other ideas also. Jeff Oien > > if (!$C_Last_Name$y) { > > The form submitting information to this code has field name like > > C_Last_Name1 C_Last

[PHP] Variable Next To Variable?

2001-07-11 Thread Jeff Oien
Last_Name1 C_Last_Name2 depending on how many Children are signing up for something. So I need $y to represent the number. Hope that makes sense. Thanks for any help. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

RE: [PHP] PGP with MySQL

2001-05-18 Thread Jeff Oien
> this one and there are a few concerning issues. > > Regards, > > Joseph (I'm a different Jeff) I searched through the archives and couldn't find your message. I'm interested in this also. The PHP PGP tutorials all deal with sending e-mail using PGP. I would like to be ab

RE: [PHP] Shopping cart search

2001-05-10 Thread Jeff Oien
http://www.hotscripts.com/PHP/ Jeff Oien http://www.webdesigns1.com/php/ > Can someone pass on the URL for searching for PHP shopping cart programs > and shopping cart related questions. > > Many thanks... > > Todd > > -- > Todd Cary > Aris

RE: [PHP] wordwrap

2001-05-05 Thread Jeff Oien
n for lines to wrap in email. Jeff Oien http://www.webdesigns1.com/php/ -- 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] Do You Like This Book?

2001-04-28 Thread Jeff Oien
Has anyone read this new book yet? PHP and MySQL Web Development by Luke Welling, Laura Thomson http://www.amazon.com/exec/obidos/ASIN/0672317842/ref=ase_hotscrcomyourgui/1 07-0943347-2161363 Would be interested in hearing opinions. Jeff Oien -- PHP General Mailing List (http://www.php.net

RE: [PHP] Link Color Questions

2001-04-22 Thread Jeff Oien
You need to use style sheets: http://www.awlonline.com/cseng/titles/0-201-41998-X/liebos/ http://www.builder.com/Authoring/CSS/?tag=st.bl.7258.dir1.bl_CSS http://www.wdvl.com/Authoring/Style/Sheets/ Jeff Oien > Hi, > > I would like to know how to make different link in different

RE: [PHP] PHP Books

2001-04-20 Thread Jeff Oien
Here are some recommendations: http://www.webdesigns1.com/php/books.php Jeff Oien > Hello > Could I get a recommendation on some good starting PHP books? > Thanks > > -- > Later Days:) > Michael Clesceri > > ""Perfection (in design) is achieved not when

RE: [PHP] W2K Install Problem

2001-04-14 Thread Jeff Oien
I got it to work. I would still like to know how to open a command window in W2K though. I had a reference to d:/php4/ instead of d:/php/ which is where I have it. Jeff Oien > When I try to run a PHP script through a Web browser it just > displays the code. I did a clean install of W

[PHP] W2K Install Problem

2001-04-14 Thread Jeff Oien
When I try to run a PHP script through a Web browser it just displays the code. I did a clean install of W2K and installed Apache. I copied the php.ini to the WINNT and system folders. Not sure where to go from here. BTW how do you open a command window in W2K? Thanks. Jeff Oien -- PHP General

RE: [PHP] where might I find a good php page

2001-04-08 Thread Jeff Oien
> I'd really like to learn PHP but where ? > I know some basic perl but havent lookt that deep in PHP yet. any leads ?? > =) > > sincerly // Ken http://www.webdesigns1.com/php/ Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

[PHP] Cookie Expire Problem

2001-04-07 Thread Jeff Oien
"; setcookie($cookie_name, $cookie_value, $cookie_expire, "/" , $cookie_domain, 0); Thanks. Jeff Oien -- 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] Print or Echo.

2001-04-06 Thread Jeff Oien
> H- > > Just a quick question. > > Is there any difference between using print or echo? > > >From what I have read and seen there isn't any. > Than why the two different commands? > > Thanks. > -Sterling See this: http://www.php.net/manual/en/function.print.php "As for a print vs. echo

RE: [PHP] PHP/MySQL Code

2001-04-06 Thread Jeff Oien
> "Jeff Oien" <[EMAIL PROTECTED]> wrote: > > This code won't work. I'm trying to get an error if the username > > is entered incorrectly but it won't go through the if brackets. I even > > tried printing out $num and it's 0. I also tried &g

[PHP] PHP/MySQL Code

2001-04-06 Thread Jeff Oien
This code won't work. I'm trying to get an error if the username is entered incorrectly but it won't go through the if brackets. I even tried printing out $num and it's 0. I also tried if ($num = "0") { if ($num = '0') { error message etc. exi

[PHP] SSL Tutorial?

2001-04-02 Thread Jeff Oien
Could anyone point me to some good basic SSL tutorials? I would like to be able to have people submit credit card numbers for a site in the future that will be for a yearly conference registration. Very simple but I don't know the first thing about how SSL works. Thanks. Jeff Oien --

[PHP] Quick RegEx Question

2001-03-31 Thread Jeff Oien
I want to check if a variable contains a price, like $19.99 It definitely would be a dollar sign, two integers a dot and two integers. Here is what I tried which doesn't work. if (ereg("\$([0-9]{2}).([0-9]{2})", $Price)) or if (ereg("\$([0-9]{2})\.([0-9]{2})", $P

RE: [PHP] Maintaining state

2001-03-29 Thread Jeff Oien
Try this: http://hotwired.lycos.com/webmonkey/00/05/index2a.html Jeff Oien PHP >start here http://www.webdesigns1.com/php/ > What is the best method for tracking a user through a website ? > > I want to assign a username to a user which I can call up at anytime. > Should I use

RE: [PHP] just a newbie in php, don't get mad

2001-03-26 Thread Jeff Oien
y technical stuff > > ok thnx :p I hope this site will be helpful: http://www.webdesigns1.com/php/ Jeff Oien -- 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] Delaying Printed Output

2001-03-24 Thread Jeff Oien
I don't know if this will be helpful but you can look at this JavaScript code: http://www.webdesigns1.f2s.com/js_typing_text.php --- Jeff Oien PHP >start here http://www.webdesigns1.com/php/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTEC

[PHP] Printing MySQL into HTML Tables

2001-03-22 Thread Jeff Oien
products there are. I'm not sure how to set it up to print every other like that. Jeff Oien -- 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] addslashes Question

2001-03-21 Thread Jeff Oien
ays and it always returns: 3\ What am I doing wrong? Sorry this is probably the 1000th time this has been asked. Jeff Oien -- 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] New Site for PHP Beginners

2001-03-21 Thread Jeff Oien
PHP >start here Internet resources and book reviews for those just starting out with PHP and MySQL http://www.webdesigns1.com/php/ Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

[PHP] Please Critique My Tutorial

2001-03-20 Thread Jeff Oien
If you have time please take a look and let me know there are any corrections you would make in terminology and accuracy. I'm fairly new to PHP. I want everything to be correct. http://www.webdesigns1.com/php/tutorial_test.php Jeff Oien -- PHP General Mailing List (http://www.php.net

RE: [PHP] files with html extension

2001-03-20 Thread Jeff Oien
>From the doc: --- How can I remove the file extensions... ...from my URIs in a practical file-based web server? If you are using, for example, Apache, you can set it up to do content negotiation. -- How is this done? Jeff Oien > On 3/20/2001 at 6:49 PM Jeff Arm

Re: [PHP] PHP & MYSQL BOOKS

2001-03-19 Thread Jeff Oien
http://www.fatbrain.com/ http://www.booksamillion.com/ Jeff Oien PHP >start here - Web site coming soon >I actually think this is the book I have been waiting for. A bookstore in >New Zealand told me not until March 2001. It must be pretty good, all the >Sams books are. The only prob

RE: [PHP] PHP hosts?

2001-03-19 Thread Jeff Oien
les, but if there > was a preference, I would probably prefer a more stable place that's not > on/offline a lot. > > Any links/help is much appreciated. Not sure about stability but here is one in the UK: http://www.f2s.com/ Jeff Oien PHP >start here - Web site coming soon --

RE: [PHP] Print MySQL DB as Exel File?

2001-03-14 Thread Jeff Oien
pful for someone new like me. Jeff Oien > I know very little about php, but since you have already received a bunch of > useless answers, I thought I add my guesswork. > > In php 4 you can access MS documents through Microsofts OLE interface. That > means you can manipulate

[PHP] Print MySQL DB as Exel File?

2001-03-14 Thread Jeff Oien
Could anyone help me out with how to print the entire contents of a database as an Excel file? I'm familiar with the header: header("Content-Type: application/vnd.ms-excel"); just not sure how to go about it beyond that. I have this code and am not sure what do do after it. Th

RE: [PHP] image counter?

2001-03-14 Thread Jeff Oien
I'm curious as to why you need to combine them. Wouldn't it be easier just to display the images side by side? Jeff Oien > We always use 0-9 images to generate the image counter but this image > counter contains more than one image. Does any body know how to combine > these

RE: [PHP] sort in mysql

2001-03-14 Thread Jeff Oien
ORDER BY hits default is ascending (ASC). Otherwise ORDER BY hits DESC Jeff Oien > hi > > I have a database with some urls and numbers. There are currently 2 records > in the database. I wanna sort them by the numbers. How should i do it? > my table is like > > name

RE: [PHP] tutorials on good database design

2001-03-13 Thread Jeff Oien
then create a report for the hours that I haven't been paid for yet. How do I -best tell the database when I've been paid -there may be more than one entry for each day -create a report for the dates since I was last paid Jeff Oien -- PHP General Mailing List (http://www.php.ne

RE: [PHP] tutorials on good database design

2001-03-13 Thread Jeff Oien
MySQL by Paul DuBois is a very good one. Jeff Oien > hi, > > i'm looking for some good tutorials / articles / books on database > design, no, i'm not talking about the classic employee contact database > that nearly every site has lingering somewhere... i'm af

RE: [PHP] File Upload Size Limit Problem

2001-03-10 Thread Jeff Oien
> ""Jeff Oien"" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I've modified a script for uploading multiple files > > and am trying to get it to produce an error if the > > size of the fil

[PHP] File Upload Size Limit Problem

2001-03-10 Thread Jeff Oien
ror. Everything else works fine. Jeff Oien if(${"infile".$i}!="none") $noinput=false; if(${"infile".$i."_size"} > 200) { echo "Sorry, file size limit is 2MB. ${"infile".$i} is too large.";

RE: [PHP] Advanced PHP

2001-03-09 Thread Jeff Oien
LOL. The evolutionists will tell you they came from worms. So according to them the worm came first and it "evolved" into something else. Tough to know where the egg came into the picture according to that theory. Jeff Oien > Of course... where did you think they came fr

  1   2   >