the contents of left, right and main individually so
I can place them in separate form fields.
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
/38)
[quantity] = 1
)
[2552] = Array
(
[name] = Havaianas Flash White
[size] = 5 (37/38)
[quantity] = 1
)
)
I need to keep the indexes if poss.
Many thanks,
jon
--
jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net
you can also do stuff like this...
?php
if ($someVar == true) {
?
html
titlesomeVar appears to be true/title
?php } else { ?
html
titlesomeVar appears to be false/title
?php } ?
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media creative
: 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 b e
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 creative
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
/
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, Donald Tyler wrote
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, Wilts
);
$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, Trowbridge, Wilts, BA14 0AD
t: +44 (0) 1225 341039 w: http
];
array_push($aListItems, $tempItem);
++$i;
}
print_r ($aListItems);
but nothing appears to be added to the db, how can I access the $_POST
vars within a loop ??
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media creative
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b
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, Trowbridge, Wilts
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 . n e t
91
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
??? 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]
new media creative
.
Is it ok to have INSERT statements enclosed in a while loop ???
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: http
??
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 creative
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91
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 | [EMAIL PROTECTED]
new media creative
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
,
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 wrote
, 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 designer / developer
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, at 14:57
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, Wilts, BA14
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
) ???
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 1 Dec 2003, at 16:05, Jon Bennett wrote
have ftp'd into my local server and the folder in question is set at
777, and like I said it works fine if I don't use this class
Any ideas ??
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n
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 bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J
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, original image, and I really have no idea why!!
Thanks,
Jon
jon bennett | [EMAIL
Hi Al,
I'd add a scrolling tag to your iFrame, as you won't ever need it to
scroll.
iframe width=550 height=25 scrolling=false marginwidth=0
marginheight=0 frameborder=0 scrolling =no src=cache.php/iframe
hth
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
$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 ??? Would love to know.
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media
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
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b
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) 1225 341039 w: http://www.jben.net/
On 1 Dec 2003, at 15:26, Jon
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 . n e t
91
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/
On 1 Dec
34 matches
Mail list logo