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.
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
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'
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
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]>
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
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
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
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
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
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
_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
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
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
&
$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
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 = "
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
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
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
19 matches
Mail list logo