Jump to content

willpower

Members
  • Posts

    296
  • Joined

  • Last visited

About willpower

  • Birthday 09/05/1972

Profile Information

  • Gender
    Male
  • Location
    Warrington, Cheshire, UK

willpower's Achievements

Member

Member (2/5)

0

Reputation

  1. Found this...which works... <?php function in_object($val, $obj){ if($val == ""){ trigger_error("in_object expects parameter 1 must not empty", E_USER_WARNING); return false; } if(!is_object($obj)){ $obj = (object)$obj; } foreach($obj as $key => $value){ if(!is_object($value) && !is_array($value)){ if($value == $val){ return true; } }else{ return in_object($val, $value); } } return false; } ?> Usage : <?php $array = array("a", "b", "c"=>array("x", "y"=>array("p", "q"=>"r"))); if(in_object("r", $arrX)){ echo "r is there "; }else{ echo "Its not there "; } ?>
  2. Hi and welcome. You havent had any responses as your question is a little vague. Perhaps if you explain what you have accomplished, what you have tried and what is failing...maybe by posting some of your code, any errors you get, etc you may get more help. Will
  3. Whats the most efficient way of searching within a multi dimensional array? My Array = Array ( [0] => Array ( [0] => Item 1 [title] => Item 1 [1] => 2012-03-21 [eventDate] => 2012-03-21 [2] => 21 [eventDay] => 21 ) [1] => Array ( [0] => Item 2 [title] => Item 2 [1] => 2012-03-21 [eventDate] => 2012-03-21 [2] => 21 [eventDay] => 21 ) ) String to find = '21' If (MY ARRAY contains STRING TO FIND) {} Clearly in this case there are several '21' (s) so if I only wanted to search the [eventDay] keys...would there be a fast effective and efficient manner? Thoughts and help gratefully received. Will
  4. Thanks so far... I need to write a php script to parse the file without ANY manual input. Ie this sheet will be ftp'd upstream and a cron job will then run the php script...so ALL csv or other processing will take place internally removing the ability to export each sheet separately...unless ofcourse we can establish how to do this in PHP alone.
  5. Has anyone any experience of parsing worksheet information into separate tables in a DB. to give an illustration. I have a single workbook, in which there is a worksheet containing data relevant to some staff members...so worksheet 1 - staff member 1 , worksheet 2 - staff member 2 etc. I need to separate this info into separate DB tables. Any advice gratefully received. Thanks Will
  6. yuck yuck yuck Im sure the service is great, but the website lacks any typography design. Would you be happy if a graphic designer handed you this after charging you mony and said...here is your latest ad campaign? The flow is ok but the typography needs sharpening up
  7. page loads arte slow...and i got bored as there was too much text. layout is good but i felt i was being told to read read read...instead of being aboe to identify key content from you. layout good , but i still dont know what the site is about as i kinda refused to read read read. Hope that helps Will
  8. im with the last comment....you cant say that you design great webiste and put that out there with confidence. Im not gonna hammer you , but it shows a lack of web understanding and as a result is more likey to deter business than promote it. Think about this...have you ever seen a print advert look like that...if not...why not? Will
  9. Yesssss.finallly somone has actually thought about their site before posting it...a nice clean and clear site. congrats. couple of points...text is a lil small. but i guess thats user pref site doesnt validate, but i think most of your issues come from the google map link (& not &) part from that ...good use of simple colour and layout...nice header n footer and normally im brutal! Will
  10. The 'garbage' contains the key!!!! Take time to look thru the garbage as in there there could well be the error message.
  11. id suggest posting more complete code so as we can gain a greater understandiong
  12. Yes it would. Youd need to understand the math behind the creation and look at GD's pixel mapping...ie imagesetpixel function. I dont know how to do it but it would mean getting the colour value of each pixel in the image and mathematically outputing it again in the desired shape.
  13. Firstly you while statement is not within your form therefore you value will neve be passed. Secondly you need to you a radioGroup. That way when you neame the group the value can be passed. Will
  14. That code i believe is proprietany to Dream weaver and its included within the <?php ?> tags. There is no way PHP can parse that. You need to close yopur tags before and reopen after that line
  15. you need to look at the round fucnction http://uk2.php.net/round
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.