Jump to content

Search the Community

Showing results for tags 'loops'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Job Boards
    • Jobs
  • Community Lounge and FAQ
    • Forum News
    • Open Forum
    • New Members Forum - Start Here!
  • Entrepreneurship, Business and Marketing
    • Social Media Marketing & Web Marketing
    • Entrepreneurship
    • Career Questions - Asked and Answered
  • StudioWeb
    • StudioWeb
    • StudioWeb News
    • StudioWeb Projects
  • Programming
    • Python
    • Javascript
    • PHP
  • Web Design
    • Beginners Web Design
    • HTML/XHTML
    • Dreamweaver
    • CSS
    • Advanced Web Design
    • Business of Web Design
    • Web Design News
  • Miscellaneous
    • Cybersecurity
    • Miscellaneous Software
    • Blogs and CMS
    • Web Accessibility
    • Peer-to-Peer Reviews
    • Website Templates
    • Web Design Jobs
    • Test Forum
  • Archives
    • Beginners Web Design
    • Course: The Complete Entrepreneur
    • Web Accessibility
    • Photoshop
    • CSS
    • Forum Rules and Etiquette
    • Flash
    • ASP
    • General Programming
    • Expression Web
    • Beginners Ruby
    • Killersites University
    • Actionscript
  • Uncle Stef's Mentoring Club's *** Getting Started ***

Categories

There are no results to display.

There are no results to display.

Product Groups

  • Business & Entrepreneur Courses

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website


LinkedIn


Facebook


Twitter


AIM


Yahoo


Other


Location


Interests

Found 1 result

  1. Hi i have encountered one quirk in PHP, and I was wandering if anyone can explain it to me. So writing this code gives me infinite loop public static function find_this_query($sql){ global $Database; $result_set = $Database->queryFunction($sql); $theObjectArray = array(); $var = $result_set->fetch_assoc(); // I put the whole array in $var while($row = $var){ // and then I put that here // some code here } return $theObjectArray; } Buuuut this doesnt public static function find_this_query($sql){ global $Database; $result_set = $Database->queryFunction($sql); $theObjectArray = array(); while($row = $result_set->fetch_assoc()){ // here I just put method and everything works fine // some code here } return $theObjectArray; } So I just wanna know why. Thanks nerdzzzz!
×
×
  • Create New...