[PHP] It Worked! Re: agh - what am I doing wrong - regular expressions

2002-01-21 Thread sgibbs
Dear Martin, it worked!! Thank you SO much! - Shawna -Original Message- From: Martin Towell To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Sent: 1/20/02 10:25 PM Subject: RE: [PHP] agh - what am I doing wrong - regular expressions try this... I changed 1. the double quotes in "$pattern =

[PHP] agh - what am I doing wrong - regular expressions

2002-01-20 Thread sgibbs
Good morning everyone, I'm trying to adapt existing php code that uses a while loop to scan content for a url pattern, take the matches and add link tags () around them so the url with be made into "hot links. Simple enough right? Nevertheless, I seem to be having trouble with urls that have ques

[PHP] QUESTION: how to validate credit card number before sent to Versign?

2001-12-19 Thread sgibbs
We collect credit card info. on our site and send it to Verisign for processing. We collect the credit card info. on the last page of our registration form. We have about 50% of the credit card numbers declined because people use dashes in their cc number (even though our directions ask them not

[PHP] MySQL date and NULL problems

2001-12-14 Thread sgibbs
Hi again, A few days ago, I sent in an inquiry (see below) about how to make the date field in mysql read NULL when the corresponding form field was empty. I tried the suggestions I received and the following if statements all seem to still result in a default -00-00 instead of NULL. / thi

[PHP] http referer problems

2001-12-13 Thread sgibbs
For some reason, the following if statement isn't working. Maybe I haven't had enough coffee to drink or maybe I've had too much - what am I missing? if ($efa != "nm" || $HTTP_REFERER != "http://www.globalhealth.org/news/article.php3?id=1526";){ do this); } Thank you, Shawna -- PHP General M

[PHP] forms & PHP

2001-12-06 Thread sgibbs
I think I'm making this harder or more confusing than it really needs to be. I have a form that is spread out over four pages. I want to be able to give the user the opportunity to return to page 1 from page 3, for example, by providing a regular link on page 3 to return to page1. When they cli

[PHP] Simple Question: PHP, MySQL, HTML Form and NULL

2001-12-04 Thread sgibbs
I have added a new column in an existing MYSQL table called "event_date" - type: DATE, NULL default. This database field will be filled if and when the field in the HTML form is complete. When I added the new field to MySQL, it automatically assigned NULL to all the existing records - which is

[PHP] How to work with MySQL tables WITHOUT telnet, SSH or PhpMyAdmin

2001-11-30 Thread sgibbs
Our organization has a website that uses PHP and MySQL. In fact, at least 75% of our webpages are generated dynamically. I want to run reports on the current MySQL database, create new databases and create, copy and alter existing tables. Our web host does not support telnet or SSH for its c

RE: [PHP] problem pattern matching a url with question mark

2001-10-24 Thread sgibbs
ah, sorry about the confusion. The url I provided is just an example of a url containing a question mark for which I'm trying to find a pattern match in my content text. -Original Message- From: Neil Freeman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 4:16 AM Cc: [EMAI

[PHP] problem pattern matching a url with question mark

2001-10-23 Thread sgibbs
I found the following code currently used on our website to match a url expression. Unfortunately, when I added a question mark, the webpage that contained the url with the question mark just "hung" and would not load into my browser at all. Currently, the url links only up to the question mark.

[PHP] Upgrade problems php3 - php4

2001-10-20 Thread sgibbs
Our ISP is trying to upgrade php and mysql versions on our website. The current site works fine using MySQL 3.22.20a and PHP3. We are able to upload, modify and create new database records with no problem using webforms to enter test and html. Now that we are trying to upgrade to MySQL 3.23.36

[PHP] html files with ext .php3 and upgrade to php4

2001-10-19 Thread sgibbs
We just upgraded to php4 but many of our html files end with the extension .php3 - will this be a problem? -- 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: [E

[PHP] query string - count for records with keywords

2001-09-08 Thread sgibbs
I'm trying to get a count of the number of records in a database that have the keyword "cat", for example. Below is the original code; I added the query with count at the bottom of this code but it doesn't seem to be working. I just get a return of "4" which doesn't correspond correctly with the

[PHP] change info in database not successful

2001-08-29 Thread sgibbs
Good day everyone, I'm writing because the username/password database table we had written for us does not seem to be accepting changes to a password. When I make a change, not only does the new password not take effect but it disables the entire account making it useless) Below is the code fr

[PHP] show number of search results

2001-08-26 Thread sgibbs
Good day, I'm trying to figure out how I can show the following on my search results page: SEARCH RESULTS 1 - 10 of 14 total results for books Currently, I have a limit of 10 results printing on a page using "offset". I figured out how to program the pages to know what page of the results its

RE: [PHP] while loop with if statement - here's the code

2001-08-20 Thread sgibbs
Thanks Steve! :) Here's the code: $title$description\n \n "; }; if($results <= 0) { print " NO RESULTS\n \n "; } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EM

RE: [PHP] while loop with if statement - here's the attachment

2001-08-20 Thread sgibbs
Here's the attachment - I hate it when I do that! :) -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 8/20/01 10:25 AM Subject: [PHP] while loop with if statement I can't figure out why the if statement isn't working. The page displays the same with or without t

[PHP] while loop with if statement

2001-08-20 Thread sgibbs
I can't figure out why the if statement isn't working. The page displays the same with or without the if statement. Any idea what I'm doing wrong? I attached the code in a word document. Thank you, Shawna -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTEC

[PHP] function that will print the url for embedded links

2001-08-01 Thread sgibbs
I'm looking for a way to have a url for a link "explode" into the actual url address. So for example, on a dynamically created webpage, I have a link called: Contact. When someone chooses to view the "printer friendly" version of this page, I want the link on the the printer-friendly page to c

[PHP] how to strip just the tag from html file?

2001-07-16 Thread sgibbs
I've created a "printer-friendly" version of a page (PHP/MySQL) and want to have just the tags automatically removed. I thought about using strip_tags() but I'm not able to predict what html tags to include as the exceptions so that they would not be removed too. How can I do this? Thank you!