[PHP] PHP - MySQL Query...

2003-08-14 Thread Steven Kallstrom
Hello all... I'm embarrassed by this one... I think it should work but it isn't... $dbh = mysql_connect(localhost, login, password) or die('cannot connect to the database because: ' . mysql_error()); mysql_select_db(database); $query = 'SELECT * FROM cities'; $result =

[PHP] Curl alternative?

2003-07-29 Thread Steven Kallstrom
that is possible.? Or should I just stick with perl or java. any suggestions. thanks, I appreciate any help in advance. Steven Kallstrom

[PHP] Detecting Bots...

2003-06-09 Thread Steven Kallstrom
Dear List, So $_SERVER['HTTP_REFERER'] gives us the User Agent... is there anyway to determine if in general the User-Agent is a bot, or do I have to check for a specific bot... I want to strip out all GET information from the URL so that bots can crawl my site session free... Thanks, SJK

RE: [PHP] sessions and domains

2003-05-29 Thread Steven Kallstrom
Bk, You would have to somehow pass all session variables onto the new host since session variables are stored server-side. You would have to have a function that took all session variables and passed them to the new domain including session id... then you would need a function that

[PHP] Session IDs and links...

2003-05-27 Thread Steven Kallstrom
Hello, I have finally figured out sessions a little bit better... but I have a question... is there a way to pass the Session ID on to the next page via a simple link without placing the session ID in the URL... if there were a form the session ID is automatically placed as a hidden

RE: [PHP] greater than question

2003-05-27 Thread Steven Kallstrom
Steve, Your best bet is to probably stick those values into an array... then you can sort it and operate on the largest values... SJK I have 4 variables that each have a number in them. I need to find which one has the highest number. I then just need to do something with that number.

Re: [PHP] PHP and Visual Studio.Net

2003-03-30 Thread Steven Kallstrom
Ulrik, For PHP editing in Visual Studio .NET... http://www.quake-au.net/php/php_and_vsdotnet.htm SJK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Dynamic Dropdowns

2003-02-21 Thread Steven Kallstrom
Hey PHP lovers, I am creating dynamic drop down lists... I would like to have an option appear in the drop down list, but have it greyed-out and not be selectable... I know you can disable selects, but I don't think you can disable individual options in selects... anyone have any ideas?

[PHP] PHP and Serach Engines...

2003-02-09 Thread Steven Kallstrom
Hello, How do search engines react to PHP pages? If every page of a site has a .php extension will search engines not react well to that? If it does, is there a possible way to handle tracking sessions with php, without being punished by the search engines? Steve -- PHP General

[PHP] SSL...

2003-01-22 Thread Steven Kallstrom
Hey, I'm a newbie looking to secure my site with SSL using PHP. Currently I am taking orders via e-mail online. The users fill out a form and that form is sent to me via e-mail. The email resides on the same server though. Would I need to implement SSL for this. Also, I could use some

[PHP] Defaults in drop down list...

2003-01-06 Thread Steven Kallstrom
state picked out of this drop down list.??? Thanks, Steven Kallstrom

[PHP] Strings and default values...

2002-12-20 Thread Steven Kallstrom
you enter an apostrophe, and then repost the page with the stored values, the apostrophe appears escaped in the edit form. how can I solve this? 2) is it possible to put additional ('nested') php inside a heredoc, or will that text simply print out? Thank you, Steven Kallstrom