[PHP] help with an array if its possible!

2011-06-22 Thread Adam Preece
. CAT NAME PAGE NAME ASSOCIATED TO THE CAT NAME and i cannot think of how i can structure an array to pass in to achieve this and/or is it even possible :-/. i hope this makes sense. i'm truly stuck! kind regards

Re: [PHP] advice on how to build this array from an array.

2011-06-07 Thread Adam Preece
hi, thanks for your reply. i have figured out, well kind of, and got the data i need but the problem is its nested within to many arrays! Array ( [threads & form types] => Array ( [0] => Array ( [name] => imperial thread form [id] => 28 [page_cat_id] => 9 [main_nav] =

[PHP] advice on how to build this array from an array.

2011-06-07 Thread Adam Preece
hi all, please forgive me if i do not make sense, ill try my best to explain. i have this array or arrays. Array ( [name] => super duplex stainless steels [id] => 30 [page_cat_id] => 10 [main_nav] => true [cat_name] => material range ) Array ( [name] => standard stainless steels [id] => 31 [p

Re: [PHP] building a key value pair dynamically

2011-06-01 Thread Adam Preece
=>category 1 [1] => 3=>category 2 [2] => 4=>category 3 [3] => 5=>category 4 [4] => 6=>category 5 [5] => 7=>category 6 [6] => 8=>category 7 [7] => 9=>category 8 [8] => 10=>category 9 [9] => 11=>category 10 hope this makes sense? kind rega

[PHP] building a key value pair dynamically

2011-06-01 Thread Adam Preece
hi all, is it possible to dynamically build a key value pair array in php from a database result? if so how? kind regards Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bold links

2011-05-07 Thread Adam Preece
Hi, > get_currentuserinfo(); > > echo 'Welcome  ' . "".$current_user->user_firstname . "."\n"; > echo '' ". $current_user->user_lastname . "".\n"; > ?> On 7 May 2011, at 18:42, Michael Simiyu wrote: > hey, > > some php 101 here guys :) > > i want to bold the first name and la

Re: [PHP] accessing data from an array within an array.

2011-05-07 Thread Adam Preece
rray['row'] > > Foreach($array['row'] as $key=>$values) > { > Echo $values.PHP_EOL; > } > > > > > Richard L. Buskirk > > -Original Message- > From: Adam Preece [mailto:a...@blueyonder.co.uk] &g

[PHP] accessing data from an array within an array.

2011-05-07 Thread Adam Preece
hello all. im trying to make a function that fetches all rows in the database and stores each row (Array) within an array. so the code is as follows: public function fetch_all($table_name,$order = "DESC"){ $array['row'] = array(); strtoupper($ord

Re: [PHP] what would be the best way to build a 'add page function' to my cms?

2011-05-04 Thread Adam Preece
gt; At 7:19 PM +0100 5/2/11, Adam Preece wrote: >> the reason, why i don't want to use word press and any other open source >> solution, is that i want to learn how it is all done. im sure i can figure >> it out myself but i would like to ask others and see how they would

Re: [PHP] what would be the best way to build a 'add page function' to my cms?

2011-05-02 Thread Adam Preece
ystem. if you have the time could you please tell me more how i could achieve a modular template system? cheers On 2 May 2011, at 18:52, Ashley Sheridan wrote: > On Mon, 2011-05-02 at 18:43 +0100, Adam Preece wrote: >> >> Hi, >> >> sure i will try to be more s

Re: [PHP] what would be the best way to build a 'add page function' to my cms?

2011-05-02 Thread Adam Preece
ope this is a better explanation for you guys. cheers On 2 May 2011, at 18:12, Ashley Sheridan wrote: > On Mon, 2011-05-02 at 17:59 +0100, Adam Preece wrote: >> >> Hi, >> >> im building a cms and im currently thinking of a way to build an add page >> function. >

[PHP] what would be the best way to build a 'add page function' to my cms?

2011-05-02 Thread Adam Preece
Hi, im building a cms and im currently thinking of a way to build an add page function. any one got some ideas on the best way to achieve this? cheers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] make links

2011-05-02 Thread Adam Preece
hi, then use this. > if (current_user_can('level_10')) : ?> > http://www.google.com\"; target=\"_self\">My Link"; > ?> > > > > > hope this helps Adam On 2 May 2011, at 17:49, Michael Simiyu wrote: > hello, > > i want to add links to the code below in wordpress ie where it says "control