Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. I'm not sure what your question is, but have you tried to look at the SOAP functions?
  2. Last time I checked Visual C++ did have a drag and drop UI designer.
  3. Isnt it a statement that includes and evaluates a specific file?? Indeed, a statement, not a function Exactly like if is not a function either.
  4. You can store far larger files on the filesystem than in a BLOB and it will just add unnecessary overhead to the MySQL server. It will also make managing the files more difficult for you.
  5. include() is not a function.
  6. Don't store the files in the database it self. Store the path to the file instead.
  7. You could throw an exception and catch it. http://php.net/exceptions
  8. Well, there is nothing wrong with the code you posted. You need to test that $session->logged_in is being defined properly.
  9. How does liking VB but disliking ASP because of proprietary software play along?
  10. Prepared statements. <?php try { $db = new PDO('mysql:dbname=database_name;host=localhost', 'username', 'password'); } catch(PDOException $e) { echo 'Connection failed: ' . $e->getMessage(); } $statement = $db->prepare('SELECT * FROM users WHERE username = ? LIMIT 1'); $statement->execute(array($_GET['username'])); $user_info = $statement->fetch(PDO::FETCH_ASSOC); print_r($user_info); ?>
  11. You missed the port.
  12. It can, but only if the variable contains the name of a valid function. E.g. $func = 'print'; $arg = 'test'; $func($arg); will output test.
  13. Unless you want to create a one-time link like those email confirmation links what you are trying to do is not possible.
  14. Happy new year from Denmark as well
  15. <?php $parts = array('This','is','a','part','This','is','a','diff','part'); $slices = array(); $lines = ceil(count($parts)/4); for($i = 0; $i < $lines; $i++) { $slices[] = array_slice($parts, $i*4, 4); } ?> Will split it into slices of up to four. Just join them like above again.
  16. Daniel0

    Simple Table

    Like this? <style type="text/css"> #the_table, #the_table th, #the_table tr, #the_table td { border: 1px solid #8abc01; border-collapse: collapse; } #the_table { width: 193px; height: 54px; } </style> <table id="the_table"> <tr height="21px"> <th width="31px"></th> <th></th> </tr> <tr> <td></td> <td></td> </tr> </table>
  17. Check that you haven't output anything - it may even be a single space before the opening tag. Is the file being included? If so then the problem may be in the other files.
  18. $array = array('a', 'b', 'c', 'd'); $var = join('', $array); // $var contains: abcd
  19. £ is pounds...
  20. IMO if you have to do that (echo it out a lot of times) then you haven't designed the code properly. Otherwise your editor will still have a search-replace function.
  21. Uh... yes you can. Edit: Oh, and asmith, take a look at http://php.net/types.array#language.types.array.foo-bar Edit 2: I don't see any point in reassigning the variables if you do nothing to them, I hate when people do like this: <?php $param1 = $_GET['param1']; $param2 = $_GET['param2']; // ... $param15 = $_GET['param15']; $param16 = $_GET['param16']; // do stuff... ?>
  22. I'd say that scripting languages such as PHP, Perl and Python do this as much as compiled languages like C does.
  23. Rule #1: No sound whatsoever which automatically starts. That is the main reason why my computer is always muted if there aren't any headphones plugged into it. I'd like to control myself when sound suddenly starts bursting out of my speakers.
  24. copy()
  25. What's the error? Try $ sudo aptitude install php5-mysql
×
×
  • 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.