[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

[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

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 the

[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

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

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

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=httpbool=ANDsubmit=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 if

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 encoded? Anyway, some

[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.

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 not supposed to see. Any way I

[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:

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 numberic

[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 few

[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

[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=JimLast=Smith;; urlencode($URL); header(Location: $URL\n); How do I gather up all

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

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 field=data 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 wrong before. Notice his URL

[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

[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] 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: ?php $date = '9/8/2001'; list($mm, $dd, $yy) = explode('/', $date); print(sprintf('%4d%02d

[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 (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Switching First Last Names in List

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

Re: [PHP] refresh page

2004-03-16 Thread Jeff Oien
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] HTML Utilities

2004-03-13 Thread Jeff Oien
there I'll try 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 in a password protected area where only two people are allowed

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 = a href=\http://$HTTP_HOST$SCRIPT_NAME\;http://$HTTP_HOST$SCRIPT_NAME

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: eval(\$body = \$body\;); I've tried variations and can't get

[PHP] Variable Inside Variable

2002-04-18 Thread Jeff Oien
, 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 -- PHP General Mailing List (http

RE: [PHP] PHP - Tutorial

2002-03-02 Thread Jeff Oien
I have a site here that may be helpful: http://ebdesigns1com/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 General Mailing List (http://wwwphpnet

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

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 each form within it's own set of form.../form

[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

[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 General Mailing List (http

[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 General Mailing List

RE: [PHP] Previous / Next Buttons

2001-09-06 Thread Jeff Oien
($photo_pos $count) { $next_pos = $photo_pos; $next = $array[$next_pos]; echo | a href=\display.php?photo_id=$next\Next gt;gt;/a; } Comments from more experienced programmers welcome. I don't want to lead astray. Jeff Oien -- PHP

[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 but one person are able to upload. Jeff Oien

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: @copy($img1, /blah

[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 Mailing List (http://www.php.net

[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://www.php.net

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); JO it sets it to nobody instead of my username

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 be done

[PHP] Simulate Cron/PHP in Win2k?

2001-08-15 Thread Jeff Oien
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]

[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] 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', 'an', 'a'); # should all be in lowercase $String

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 entered into a database

[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

[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. Jeff Oien -- PHP General

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 everything that was needed, so I

[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 - ? session_start(); session_register($refresh); session_register

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 www.php.net

[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] 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($string,1,5); or something like

[PHP] Control Structure Problem

2001-07-22 Thread Jeff Oien
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.$x}) == 'K' (${selection.$x}) == '2nd Hour') { $sql = SELECT * 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 database the room

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) { errorif (${element2$z} == select) { Looks to me like $z is never reaching $Number_Children. Jason -- PHP General Mailing List (http

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, Jeff Oien wrote: I know

RE: [PHP] Unexplained Timeout

2001-07-16 Thread Jeff Oien
. :) 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 html head titleError/title /head body bgcolor=\#FF\ text

[PHP] Variable Next To Variable?

2001-07-11 Thread Jeff Oien
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-mail: [EMAIL PROTECTED

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_Name2 depending on how many Children

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 Ariste Software [EMAIL PROTECTED] -- PHP General

RE: [PHP] wordwrap

2001-05-05 Thread Jeff Oien
Is there a tag in php that acts like wordwrap=virtual does in html? I have a script that is sending out variables in a email from a contact form, but for a comments section it will not wordwrap in the email. Thanks Shawn You need to use line breaks \n for lines to wrap in email. Jeff

[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] 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 there is nothing more to add, but r

[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 PROTECTED] For additional

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

[PHP] PHP/MySQL Code

2001-04-06 Thread Jeff Oien
"select * from table where username='$username'",$connection) or die ("Can't do it"); $num = mysql_numrows($result); if ($num = 0) { print "htmlerror message etc. exit; } Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

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 if ($num = "0") { if ($num = '0') {

RE: [PHP] Print or Echo.

2001-04-06 Thread Jeff Oien
echo gives you more options, such as being able to continue output on multiple lines like an EOT in perl. Look at the above notes. With print you would not be able to accomplish this." Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[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})", $Price)

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 htaccess files

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

2001-03-26 Thread Jeff Oien
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 PROTECTED

[PHP] Printing MySQL into HTML Tables

2001-03-22 Thread Jeff Oien
to automatically do this no matter how many 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

[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 contact

[PHP] addslashes Question

2001-03-21 Thread Jeff Oien
1"; ?" I've tried using addslashes to the variable in various ways 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

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 Armstrong

[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] PHP hosts?

2001-03-19 Thread Jeff Oien
, 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 -- PHP General Mailing List (http://www.php.net

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 problem is in NZ

[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. Thanks.

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

2001-03-14 Thread Jeff Oien
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 an .xls file as you would be able to in VisualBasic

RE: [PHP] tutorials on good database design

2001-03-13 Thread Jeff Oien
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.net/) To unsubscribe, e-mail: [EMAIL

[PHP] File Upload Size Limit Problem

2001-03-10 Thread Jeff Oien
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."; exit;

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 from.

RE: [PHP] Date Question

2001-03-08 Thread Jeff Oien
If you put the date in MMDD format you can compare the numbers. http://www.php.net/manual/en/function.date.php Jeff Oien Hi, Since there is no Date type in php, is there a way to compare dates? Something like: if ((3/8/2001) (3/9/2001)){ // Date is newer } Thanks, Chris

RE: [PHP] HTML book recommendation

2001-03-08 Thread Jeff Oien
This is something I happened to come across. I have no idea how it compares to others, just giving you the link. http://wdvl.internet.com/Authoring/Style/Sheets/Book.html Jeff Oien This is a bit off-topic, but I'm curious what you PHP'ers would recommend as a good HTML book. I think I need

[PHP] Regular Expression Help

2001-03-05 Thread Jeff Oien
I want to delete everything after a tab (or space) on each line of a text file and can't figure it out. An example line is ARIA5.19-0.0625 -1.19 5.254.5 48.5100300 I want to the output to be ARIA Thanks. Jeff Oien -- PHP General Mailing List (http://www.php.net

RE: [PHP] get current events from mysql query by date?

2001-03-05 Thread Jeff Oien
This is just a guess but wanted to take a shot at it. Something like SELECT EventID, EventName, EventDescription, EventStartDate, EventEndDate WHERE EventStartDate CURRENT_DATE ORDER BY EventStartDate ASC LIMIT 5; How did I do? Jeff Oien I have a mysql database of events. It contains

[PHP] Quick Regex Question

2001-03-05 Thread Jeff Oien
if (preg_match("/[a-Z],[a-Z]/",$text)) { Can you tell me where I'm failing here. I want to do something if the string has commas in between words with no spaces. Like: blah,blah,blah Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] MySQL Create Table Problem

2001-03-02 Thread Jeff Oien
and I'm afraid it's going to be something stupid staring me in the face. Jeff Oien Quick example... CREATE TABLE user ( userid int(10) unsigned DEFAULT '0' NOT NULL auto_increment, usergroupid smallint(5) unsigned DEFAULT '0' NOT NULL, username varchar(50) NOT NULL, p

RE: [PHP] Tutorial?

2001-03-02 Thread Jeff Oien
I started with this: http://www.php.net/tut.php went from there. Also http://www.thickbook.com/ has some good stuff. Jeff Oien Hi there, Iam new to the world of PHP, and after my boss told me to learn PHP and MySQL, I found my way here. I am gettign to frips with MySQL, and Basic PHP seems

[PHP] MySQL Create Table Problem

2001-03-02 Thread Jeff Oien
This is driving me nuts. I really tried to figure it out myself. I have a form for creating a table. The form fields have field_name field_type field_length, and checkboxes for not_null, auto_increment and primary. When I check the primary key checkbox it always makes the first field the primary

RE: [PHP] FreeHostage:PHPMySQL

2001-02-26 Thread Jeff Oien
http://www.f2s.com/ is another option. Jeff Oien Hi everyone, Can anyone tell me where can i find a place where to put my PHP/MySQL applications for free? Many thanks Bye Bruno -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Simple String Replace Question

2001-02-25 Thread Jeff Oien
have: $string_new = str_replace("\n", "", $string); How can I augment this to not replace: \n \n 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 li

RE: [PHP] Simple String Replace Question

2001-02-25 Thread Jeff Oien
On 25 Feb 2001 10:34:27 -0800, Jeff Oien [EMAIL PROTECTED] wrote: I would like to get rid of \n characters unless there are two or more in a row. So for example if there The Perl-compatible regular expressions support lookahead and look behind: $str = 'abcdefabcaadd'; echo "$

RE: [PHP] Simple String Replace Question

2001-02-25 Thread Jeff Oien
That almost works. The two \n in a row are on new lines. So it's \n \n intead of \n\n. If that makes any sense. Jeff Oien Or you could just do this: ?php $str = "abc\ndefg\n\nxyzpqr\njklmno"; $str = ereg_replace("([^\n])\n([^\n])", "\\1 \\

RE: [PHP] Simple String Replace Question

2001-02-25 Thread Jeff Oien
No, that doesn't make any sense whatsoever :) A \n *is* a new line. I can only guess you're getting confused because there's \r's as well as \n's in the string. Try this: ?php $str = "abc\r\ndefg\r\n\r\nxyzpqr\r\njklmno"; $str = ereg_replace("([^\r\n])\r\n([^\r\n])", "\\1 \\2",

  1   2   >