Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. 1) No, you do not have to store the value in a variable before retuning it. 2) Yes, just be aware that return exits the function
  2. This topic has been moved to Application Frameworks. http://www.phpfreaks.com/forums/index.php?topic=360598.0
  3. jQuery is a very small (but powerful) library. You use it like any other JavaScript file. <script type="text/javascript" src="url/to/jquey.js"></script>
  4. There is no concept of Modules in PHP. Are you talking about some specific application?
  5. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=360536.0
  6. Why not post your code that isn't working then?
  7. You could start by reading this link provided in this very thread. http://www.phpfreaks.com/forums/index.php?topic=360130.msg1703083#msg1703083
  8. This topic has been moved to Apache HTTP Server. http://www.phpfreaks.com/forums/index.php?topic=360525.0
  9. It makes little sense. I suggest you ask your teacher considering this is for a uni project.
  10. Cool, so you have multiple accounts too? Just awesome! tombob10 has now been banned.
  11. I DO NOT UNDERSTAND YOUR ISSUE.
  12. Instead of displaying some custom error message when there is an error, why not have a look and see what that real error was? if (!$query) { trigger_error(mysql_error()); }
  13. Still, I have no idea what your talking about.
  14. Sorry, what exactly is the problem?
  15. All you would need to do is loop through your data and store the results. while ($row = mysqli_fetch_assoc($result)) { $output[] = $row['firstname']; } Then, use that to do your replace. $out = str_replace('[+name+]', implode(' ', $output) , $tlp); Of course, this will mean that all names within be within the single set of <p></p> tags though.
  16. If your looking for a programmer, your post belongs in the freelance board.
  17. Try searching http://google.com
  18. Is there a particular reason you think this is a better idea than using php itself? eg; <p><?php echo $name; ?></p>
  19. How should we know? That tiny little snippet could be from any number of php libraries.
  20. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=360445.0
  21. well you can't create files using is. some server side language would be best.
  22. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=360383.0
  23. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=360418.0
×
×
  • 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.