Search found 19 matches

by cgchris99
Thu Jan 20, 2011 10:54 am
Forum: PHP coding => General
Topic: Need help with CURL/XML/POST variables
Replies: 0
Views: 295

Need help with CURL/XML/POST variables

I need to do some testing using CURL to send some XML data. I'm not sure the data is getting passed to the server so I created my own test file on my server. The test file is called xmlposttest.php and contains <pre> <?php print_r($_POST);?> </pre> So I do a CURL call to xmlposttest.php passing the ...
by cgchris99
Sat Jun 19, 2004 8:11 am
Forum: PHP General
Topic: searches on fields with apostrophes?
Replies: 1
Views: 625

searches on fields with apostrophes?

I have a mysql db that I need users to be able to search on. Right now I parse out any apostrophes (single quotes and double quotes) However, grammatically the descriptions are now incorrect. For example if they search for the club name and it is John's Fishing Club It gets entered as Johns Fishing ...
by cgchris99
Fri Jun 11, 2004 1:40 pm
Forum: PHP General
Topic: Need basic shopping cart w/paypal & shipping
Replies: 1
Views: 679

Need basic shopping cart w/paypal & shipping

I have a very simple page that has 4 items for sale. They want to use paypal as the processor. I have this working just fine but here is the problem. They want actual UPS shipping calulated. Since their is no actual cart on my side (all passed to paypal) I don't know the total weight or how to calcu...
by cgchris99
Thu Mar 11, 2004 2:49 pm
Forum: PHP General
Topic: how does this code work if ($ref) {}
Replies: 1
Views: 562

how does this code work if ($ref) {}

My question is how it works if ($ref) { $advertiser = $HTTP_GET_VARS["ref"]; if ($advertiser){ tep_session_register('advertiser'); } } This code is for oscommerce if that matters at all. How does the $ref not be empty the first time this code runs? Does PHP somehow know it is part of the URL ?ref=re...
by cgchris99
Sat Mar 06, 2004 12:57 pm
Forum: PHP coding => General
Topic: How to build searchable/dynamic FAQ database in PHP?
Replies: 6
Views: 1180

Would I be better off just loading one of the free php Forums to use instead?

Thanks for any info
by cgchris99
Sat Mar 06, 2004 12:05 pm
Forum: PHP coding => General
Topic: How to build searchable/dynamic FAQ database in PHP?
Replies: 6
Views: 1180

I'm not a total beginner. I do currently have a web app that does searches on a database and allows user inserting of data.

So I guess I can use the same concept.

Any other tips or information?

Thanks
by cgchris99
Sat Mar 06, 2004 10:30 am
Forum: PHP coding => General
Topic: How to build searchable/dynamic FAQ database in PHP?
Replies: 6
Views: 1180

How to build searchable/dynamic FAQ database in PHP?

I need to build an FAQ type of database for my website using php & mysql. I want it to be dynamic so I don't have create individual pages and make changes and additions easier. There of course will be a title and a body of text. I think it should store basic html code for display purposes. Can a...
by cgchris99
Wed Dec 31, 2003 3:20 pm
Forum: mySQL & php coding
Topic: how to handle a select with a field that has apostraphes 's
Replies: 1
Views: 520

how to handle a select with a field that has apostraphes 's

I have a select based on club name.

It works for the first 10 records but when I select the next 10 it has a \'s in it.

Select * from mytable where clubname like 'xyz sportsmen's club'

What is the right way to do this?

The website is PHP driven
by cgchris99
Wed Nov 05, 2003 2:14 pm
Forum: PHP General
Topic: How to handle Gift Certifcates for Brick and Mortar store?
Replies: 5
Views: 1208

I was told that it is a bad idea to store credit card on your server. If you get hacked then all the information would be stolen and you would be liable?
by cgchris99
Wed Nov 05, 2003 8:11 am
Forum: PHP General
Topic: How to handle Gift Certifcates for Brick and Mortar store?
Replies: 5
Views: 1208

How to handle Gift Certifcates for Brick and Mortar store?

My customer wants to sell Gift Certificates on their website but they do not want online credit card processing. They have a brick and mortar store and will process the credit cards there. The Gift Certificate is to bring into the store when you go, not for online shopping. I know how to capture all...
by cgchris99
Sat Aug 09, 2003 1:28 pm
Forum: PHP coding => General
Topic: Newbie, Does stringA contain StringB? How to??
Replies: 5
Views: 1108

Newbie, Does stringA contain StringB? How to??

I am trying to do some simple comparison and can't figure out what I am doing wrong. Here's the first thing I tried. $found = eregi("United Parcel Service",$title); if ( $found === true ) { $special_shipping="true"; } $title contains "United Parcel Service (1 x 1.5lbs) (Ground):" Why isn't $found tr...
by cgchris99
Thu Aug 07, 2003 7:57 am
Forum: PHP coding => General
Topic: PHP dynamic page, how to use session instead of passd parms?
Replies: 1
Views: 511

PHP dynamic page, how to use session instead of passd parms?

I have a website that uses DW,PHP, & Mysql to display some dynamic information. Currently the search page has two fields on it. One is State and the other is Month. This information is then passed via URL parameters to the results page. How can I use sessions to pass these parameters instead? I ...
by cgchris99
Sun Jul 13, 2003 8:31 am
Forum: PHP Scripts
Topic: Can anyone recommend an Ad Script
Replies: 2
Views: 1534

Can anyone recommend an Ad Script

I am looking for an ad script for banners.
It was recommended to use phpAdsNew but it's pretty complicated.

I just need a Banner rotator that tracks impressions, clicks and can be set to expire on date or impressions.

thanks for any info
by cgchris99
Sat Jul 12, 2003 1:10 pm
Forum: mySQL & php coding
Topic: counting total recs for each state?
Replies: 1
Views: 668

counting total recs for each state?

I have a bunch of event records for various event dates.

I want to write an select state that shows the following

State Count
AZ 50
AR 2
AK 450
CO 75
CT 92

etc.

sorted by state of course.

How do I do this.

thanks for any help
by cgchris99
Mon Jun 30, 2003 4:29 pm
Forum: PHP General
Topic: embedded php in html, how to tell calling html file inside ?
Replies: 2
Views: 928

Yes, http_referrer worked perfectly.

Thanks
by cgchris99
Mon Jun 30, 2003 1:30 pm
Forum: PHP General
Topic: embedded php in html, how to tell calling html file inside ?
Replies: 2
Views: 928

embedded php in html, how to tell calling html file inside ?

I have this piece of code inside a couple of my html pages <script language="Javascript" type="text/javascript" src="http://www.yourdomainhere.com/getrows.php"></script> Is it possible inside the getrows.php to sell what the calling html page was. if I use $SERVER_NAME.$PHP_SELF it returns the name ...
by cgchris99
Sat Jun 28, 2003 11:40 am
Forum: PHP coding => General
Topic: PHP Forms/Mysql questions
Replies: 1
Views: 756

PHP Forms/Mysql questions

I am trying to learn PHP. I am starting with basic Form stuff and saving to a mysql database. I have been using Dreamweaver Ultradev but want to code by hand now. dreamweaver utradev/phakt generates this line if (isset($MM_insert)) { blah blah store data in table... } Now what I can't find is where ...
by cgchris99
Mon Apr 14, 2003 4:21 pm
Forum: mySQL & php coding
Topic: help with mySQL select where dates >= todays date?
Replies: 3
Views: 1075

Thanks for the reply. I have one small problem

In the Select statemen the part where month>$month

month = 'April' and $month=04

How do I fix this?

Thanks so much for you help
by cgchris99
Sun Apr 13, 2003 7:26 pm
Forum: mySQL & php coding
Topic: help with mySQL select where dates >= todays date?
Replies: 3
Views: 1075

help with mySQL select where dates >= todays date?

I have a DB that has the date entered in three fields.
Month (long form like february)
Day
Year

With these three fields how can I do a select where the some function to combine these three fields is >= todays date?

thanks for any help