eJpeg($aNewImage['new_image'],
$aNewImage['image_loc']);
ImageJpeg($aNewImage['original_image'],
$aNewImage['image_loc']);
} else {
// save original image
//ImageJpeg($aImage['tmp_name'], $aNewImage['
e correct location
move_uploaded_file($$_FILES["image"]["tmp_name"],
BASE_DIR."/_img/_products/".$iProductId."_".$fileName);
}
The above works fine, which I find very strange indeed!
Thanks,
Jon
jon be
27;s called:
$this->storeBigImage($productID, $aArgs['Image']);
All the image details are there because otherwise functions like
getimagesize would fail, it just won't save the resized or, if the
dimensions of the uploaded image aren't bigger than my max width and
height, or
Hi Al,
I'd add a scrolling tag to your iFrame, as you won't ever need it to
scroll.
hth
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbrid
at!
// doesn't work
$aNewImage['image_loc'] = $aNewImage['image_dir'] .
$aNewImage['new_name'];
// does work!!
$sImageLoc = '/Library/Webserver/Documents/wrox_site/_img/_products/' .
$aNewImage['new_name'];
Why oh why is that the case ??? Wou
well I'll be dammed, that was it! Geeze, you look at something for so
long sometimes you can't see the wood for the trees
I feel so stoopid now!
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
$aNewImage['new_name'], or is it stuck in an array or something ??
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD
t: +44 (0) 1
sorry, made a mistake when writing my email:
return = $aNewImage['new_name'];
should be:
return $aNewImage['new_name'];
Cheers,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n
Down't worry, it's sorted!
Cheers,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD
t: +44 (0) 1225 341039 w: http://www.jben.net
false!";
}
}
Is there not a better way of handling this function chain (for want of
a better word) ???
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd,
Hi,
Why should I not use drop downs ?? are they generally out of favour now
?? why ???
I ask because I was thinking of having each categories products listed
in a drop down !
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
hanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD
t: +44 (0) 1225 341039 w: http://www.jben.net/
On 4 Dec 2003, at 12:46, Richard Davey
ll be a problem, what I
see as a problem is how an admin will select 3 out of 200+ products.
Obviously a drop down is a bad idea, but so would a alphabetical list.
has anyone got any insight into the best way to solve this.
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media desig
luck with google ??
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD
t: +44 (0) 1225 341039 w: http://www.jben.net/
On 4 Dec 2003
ries and a dynamic
dropdown for the products in that category, that would be much easier
to repeat.
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wi
why not only reduce the stock once a sale has gone through ???
Cheers,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD
t: +44 (0) 1225
.$aDate[0]."/".$aDate[2]);
return $return;
}
But this always fails, any idea why ??
What I really need is to re-order the string that a user inputs, say,
21/04/2004, so that it becomes 04/21/2004 so I can use strtotime.
Cheers,
Jon
jon bennett | [EMAIL PROTECTED]
new media creat
ok,
got it:
// converts a UK date (DD-MM-YYY) to a US date (MM-DD-) and vice
versa
function convertDate ($sDate) {
$aDate = split ("/", $sDate);
$return = $aDate[1]."/".$aDate[0]."/".$aDate[2];
return $return;
}
Cheers,
Jon
jon bennett
table_item in one go ??? I
could just have an examples table with say 10 list_item columns and 10
x 2 table columns but that seems like a short cut really and leaves no
room for scaleability.
Any thoughts ??
Thanks,
Jon
jon bennett | [EMAIL PROTECTED
NOW()
)";
$i++
}
And then repeat the 2 while loop for the table_items table.
Is it ok to have INSERT statements enclosed in a while loop ???
Cheers,
Jon
jon bennett | [EMAIL PROTECTED]
new media creative
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Date = split ("/", $sDate);
$return = $aDate[1]."/".$aDate[0]."/".$aDate[2];
return $return;
}
hth,
Jon
jon bennett | [EMAIL PROTECTED]
new media creative
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd,
db, how can I access the $_POST
vars within a loop ??
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media creative
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD
t: +44 (0) 1225 341039 w: http://www.jben.
Hi,
Sorry for the double post, meant to say 'but nothing appears to be
added to the array' not the db!
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media creative
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbrid
elements whilst trying to fix it but hadn't gone back to the very
begining in my browser so my loop was looking for the wrong post names!
Doh!
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media creative
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n .
Hi Ben,
Sorry, it does work - so I can safely say you can concat the name of a
associ array :-)
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media creative
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wilts, BA14
nice one, solves my next problem as well if any elements are empty!
Cheers,
Jon
jon bennett | [EMAIL PROTECTED]
new media creative
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD
t: +44 (0) 1225 341039 w
tp://amfphp.org/
Good luck,
Jon
jon bennett | [EMAIL PROTECTED]
new media creative
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD
t: +44 (0) 1225 341039 w: http://www.jben.net/
On 21 Jan 2004, at 13:52, Don
you might want to check out http://www.flash-remoting.com/ as well.
There's also a book from oreilly.
Cheers,
Jon
jon bennett | [EMAIL PROTECTED]
new media creative
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge,
elds.
Any help greatly appreciated. I'm certain this is a cinch for people
who use regex often.
Thanks,
Jon
--
jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[name] => Havaianas Margaridas Yellow
[size] => 5 (37/38)
[quantity] => 1
)
[2552] => Array
(
[name] => Havaianas Flash White
[size] => 5 (37/38)
[quantity] => 1
)
)
I need to keep the indexes if poss.
Many th
http://uk.php.net/md5
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media creative
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD
t: +44 (0) 1225 341039 w: http://www.jben.net/
On 23 Jan 2004, at 09:55
clude: pdf, asp, jsp,
hdml, shtml, xml, cfm, doc, xls, ppt, rtf, wks, lwp, wri.
I notice php is not mentioned in this list, surely it can index php
generated pages ??
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media creative
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J
is that it tends to avoid or downgrade URI's with parameters tacked
onto
the end.
Does that go for internal links in your site then ???
news.php?start=10 etc ??? Could be tricky writing dyamic pages then.
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media cre
you can also do stuff like this...
if ($someVar == true) {
?>
someVar appears to be true
someVar appears to be false
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media creative
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester
34 matches
Mail list logo