Jump to content

Clarkeez

Members
  • Posts

    70
  • Joined

  • Last visited

    Never

About Clarkeez

  • Birthday 07/19/1993

Profile Information

  • Gender
    Male
  • Location
    England

Clarkeez's Achievements

Member

Member (2/5)

0

Reputation

  1. $desc = "this is a \"test\" this is a test"; or $desc = 'this is a "test" this is a test';
  2. I'm thinking maybe you could check the filesize before processing the success/error messages. if(!$convert || $outputfileSize == 0kb): echo "error"; else: echo "success"; endif;
  3. Dear mjdamato You are a star Thanks for you help buddy, you really made it clear for me + I didn't even know array_intersect() exists
  4. Ok I think I may know why it's returning false.. Now my needle is array(399, 402, 406, 5350); But, I basically want in_array to return TRUE is it find ANY of these in the needle array.. So I am thinking does in_array try and match ALL in the array to the haystack?
  5. Ok.. Thanks for your reply, It makes much more sense not to need a loop as yes, it is just single dimensional. Now, I thought dude, you've got it thanks, then in tried it and it still not finding it... My code is now exactly as you have it (which it correct.) Needle variable is a simple array $conf['guild']['reqAchievements'] = array(399, 402, 406, 5350); Print_r of $charAchievements Array ( [0] => 6 [1] => 7 [2] => 8 [3] => 9 [4] => 10 [5] => 11 [6] => 12 [7] => 13 [8] => 42 [9] => 43 [10] => 44 [11] => 45 [12] => 46 [13] => 73 [14] => 116 [15] => 154 [16] => 162 [17] => 166 [18] => 168 [19] => 199 [20] => 201 [21] => 208 [22] => 212 [23] => 213 [24] => 214 [25] => 216 [26] => 218 [27] => 223 [28] => 227 [29] => 229 [30] => 231 [31] => 238 [32] => 245 [33] => 247 [34] => 263 [35] => 397 [36] => 398 [37] => 399 [38] => 477 [39] => 478 [40] => 479 [41] => 480 [42] => 481 [43] => 482 [44] => 483 [45] => 484 [46] => 486 [47] => 488 [48] => 500 [49] => 503 [50] => 504 [51] => 505 [52] => 506 [53] => 509 [54] => 512 [55] => 513 [56] => 515 [57] => 516 [58] => 522 [59] => 545 [60] => 556 [61] => 557 [62] => 558 [63] => 584 [64] => 587 [65] => 621 [66] => 627 [67] => 628 [68] => 629 [69] => 631 [70] => 632 [71] => 633 [72] => 634 [73] => 635 [74] => 637 [75] => 639 [76] => 642 [77] => 647 [78] => 648 [79] => 649 [80] => 650 [81] => 653 [82] => 657 [83] => 659 [84] => 666 [85] => 686 [86] => 696 [87] => 697 [88] => 699 [89] => 700 [90] => 706 [91] => 727 [92] => 728 [93] => 731 [94] => 732 [95] => 733 [96] => 734 [97] => 735 [98] => 736 [99] => 750 )
  6. Heyy ! I'm running into a problem while trying to use in_array($needle, $haystack[$i]) inside a for loop. I get the following error message.. Warning: in_array() expects parameter 2 to be array, integer given in C:\WebSrv\htdocs\inc\form.class.php on line 40 Now here is the code <?php for($i=0; $i <= $charAchievementsCount; $i++): if(!in_array($conf['guild']['reqAchievements'], $charAchievements[$i])): $charMeetsAchievement = false; else: $charMeetsAchievement = true; endif; endfor; ?> Some reason, it kicks that error.. Can't in_array be used within a for loop? Any suggestions ? Thanks
  7. Hey.. I am more of a developer than a designer but I have a website that works fine in chrome/FF but it ruined in IE.. Now, do I finish the site in chrome/FF then make it work with IE with seperate or is best practice to make it work with all browsers as I go along... ? Thanks
  8. I think I saw captcha on registration and on first post, thats it :S
  9. I literally have no idea what you are trying to achieve.
  10. Ok, take away mysql_real_escape_string() and try again.
  11. $phpgetbrowser is your problem, it's not a valid array. Try break down your functions you've used on the variable.
  12. jesus christ im just guna rewrite this project from scratch. it's always the STUPID things that get in my way QQ
  13. Are you using Xampp by any chance?
×
×
  • 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.