[PHP-WIN] Code sample - Small Help

2007-08-01 Thread Mark Abrams
if (var) {$path='/image/a.jpg';}else{$path='/image/b.jpg';} ?> > ""Stephen"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm kind of trying to do this quickly. Can anyone give me some PHP code > that will let me link to a different image if $veriable = blah blah blah.

[PHP-WIN] Solved - Re: [PHP-WIN] ORDER BY is not sorting

2007-08-01 Thread Mark Abrams
ons of MySQL. Have you tried doing another sql-select statement on another table? Best regards /Gustav Wiberg -Original Message- From: Mark Abrams [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 01, 2007 12:50 AM To: php-windows@lists.php.net Subject: Re: [PHP-WIN] ORDER BY i

Re: [PHP-WIN] ORDER BY is not sorting

2007-07-31 Thread Mark Abrams
Is mysql_fetch_array the proper function to access sorted data?The problem is consistent on my test server and my ISPs mySQL DB. rowID is the primary key. Do I need to have an index attribute on a field I want to sort? <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I can'

[PHP-WIN] ORDER BY is not sorting

2007-07-31 Thread Mark Abrams
Sorry, this seams very trivial but I can not sort the result set for any field. What am I doing wrong? php & mySQL 5 ' } ?> 1 2 3 4 TIA Mark -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: How to configure PHP support for MySQL on Windows?

2007-07-29 Thread Mark Abrams
http://apache2triad.net/ There is a windows version - its a simple install - just provide a password and the package installs and configs - I'm running it on Server 2003 and Win XP - no problems. I did have a problem with a Vista install. Unsuccessful. ""Sean B. Durkin"" <[EMAIL PROTECTED]>

[PHP-WIN] photo gallery plugin

2007-07-26 Thread Mark Abrams
Does anyone have a recommendation on a photo gallery plug in that works with php and mySQL. I have a car club and want to allow members to load their cars pics and specs to the site. TAI Mark -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

[PHP-WIN] Dynamic image resizing on upload

2007-06-12 Thread Mark Abrams
Is there a PHP function to resize a user's JPG or GIF image during an upload? I was advised to use Image Magick http://www.imagemagick.org However, the Windows install doc has not been written. I have unsuccessfully struggled with the install for days ... All I want to do is to resize a

Re: [PHP-WIN] PECL extension Install Questions . - Re: [PHP-WIN] Fatle Error: FILTER_VALIDATE_EMAIL

2007-06-11 Thread Mark Abrams
Thank you Neil, MSVCR80.DLL is on my PC in C:\windows\system32 my path points to the file Also. I also read the doc on PECL and am lost as to how I would install this under the ApacheTraid system that I use for development. "Niel Archer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[PHP-WIN] PECL extension Install Questions . - Re: [PHP-WIN] Fatle Error: FILTER_VALIDATE_EMAIL

2007-06-11 Thread Mark Abrams
Thank you Neil, I am running PHP5 under ApacheTriad. The Windows PHP install does not work on my XP Pro PC - Recieved errors "The procedure entry point_encode_pointer could not locate the dynamic link library MSVCR80.DLL. (I checked the file and path settings - these are correct) So I downloa

[PHP-WIN] Fatle Error: FILTER_VALIDATE_EMAIL

2007-06-08 Thread Mark Abrams
OS: XP Pro PHP Version 5.1.2 I trying to use PHP filters (http://www.w3schools.com/php/php_filter.asp) which are supposted to come installed as part of the PHP core. On three servers running v5.1.2 I recieve: Fatal error: Call to undefined function: filter_var() in ... Is there something in t

[PHP-WIN] RESOLVED - Thank you Stut - Re: [PHP-WIN] WHERE fieldname1='fieldvalue1' AND fieldname2='fieldvalue2'

2007-05-22 Thread Mark Abrams
Thank you Stut. I feel like a fool. Little gremlins removed the SELECT column. Everyone - I appreciate your support. Its easy to get a blind spot and I have had one all morning. Regards, Mark "Stut" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Mark Ab

[PHP-WIN] query strings & printouts Re: [PHP-WIN] Query Syntax - WHERE fieldname1='fieldvalue1' AND fieldname2='fieldvalue2'

2007-05-22 Thread Mark Abrams
_type = 'For Sale') AND (category = 'Books') Warning: mysql_query() [http://www.mysql.com/doc]: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM classifieds WHERE (trans_typ

[PHP-WIN] This did not work. Re: [PHP-WIN] Query Syntax - WHERE fieldname1='fieldvalue1' AND fieldname2='fieldvalue2'

2007-05-22 Thread Mark Abrams
OM classifieds > WHERE $field_name1 = '".$field_value1."' > AND $field_name2 = '".$field_value2."'"; > > Also, check the data types - if $field_name1/2 is an int then you don't > need > the single quotes. &g

[PHP-WIN] Failed Re: [PHP-WIN] Query Syntax - WHERE fieldname1='fieldvalue1' AND fieldname2='fieldvalue2'

2007-05-22 Thread Mark Abrams
s > WHERE $field_name1 = '".$field_value1."' > AND $field_name2 = '".$field_value2."'"; > > Also, check the data types - if $field_name1/2 is an int then you don't > need > the single quotes. > > Arno &

Re: [PHP-WIN] Query Syntax - WHERE fieldname1='fieldvalue1'ANDfieldname2='fieldvalue2'

2007-05-22 Thread Mark Abrams
$query = "SELECT $field_name FROM classifieds WHERE ($field_name1 = '$field_value1') AND ($field_name2 ='$field_value2') "; This will stop you from eventually ANDing the wrong pair... -Original Message- From: Mark Abrams [mailto:[EMAIL PROTECTED] Sent: ter

[PHP-WIN] Query Syntax - WHERE fieldname1='fieldvalue1' AND fieldname2='fieldvalue2'

2007-05-22 Thread Mark Abrams
Query Syntax - I have a syntax error when I am using an AND in the WHERE clause for a double field=value restriction #1 RUNS OK $query = "SELECT $field_name FROM classifieds WHERE $field_name = '$field_value'"; $result = mysql_query($query) or die(mysql_error()); #2 FAILS $query = "

Re: [PHP-WIN] Bug??? "Duplicate entry '255' for key 1 " on auto increment

2007-05-22 Thread Mark Abrams
Problem solved! Thank you. ""Dale Attree"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Set the length of rowID to 11, leave type as INT. > > -Original Message- > From: Mark Abrams [mailto:[EMAIL PROTECTED] > Sent: 22 May 2007

[PHP-WIN] Bug??? "Duplicate entry '255' for key 1 " on auto increment

2007-05-21 Thread Mark Abrams
Hi All, I have a table problem with "Duplicate entry '255' for key 1 " when any of my auto increment rowID fields reaches 255 I have installed PHP Version 5.1.2 and mySQL 5.0.11-beta on Win XP Pro. Each table in my DB that uses an auto increment for rowID fails at the 255th record insert. I ha

[PHP-WIN] Installation Issue - PHP 5.2.2.2 problem and bug in script - XP pro / IIS6 (Win 32)

2007-05-11 Thread Mark Abrams
I have a problem with PHP 5.2.2.2 I am on XP Pro with IIS6 I just downloaded and ranphp-5.2.2-win32-installer.msi The installer for IIS (ISAPI) has a bug: The directory and path are C:\Program Files\PHP In IIS, ISAPI Filter - I found C:\Program Files\PHP\\php5isapi.dll //Note t