Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. You cannot call header after output has been sent to the browser. It really is that simple. You will need to reorganize your code appropriately.
  2. From who? You are going to need to provide allot more detail I'm afraid.
  3. You can't check without executing the query. The problem is likely that your not checking the results. $query = "SELECT column1 FROM table WHERE column2='$kk'"; $which = $link1; if ($result = mysql_query($query)) { if (mysql_num_rows($result)) { // it is safe to use $result as it contains data } else { // no result where found } } else { // query failed. } This is the basic syntax for ALL select queries.
  4. As you have discovered, you are executing a new query for each file. The best thing to do would be to execute one query, save the results, then loop through those results and cross reference your files.
  5. You would be better of actually passing an array to searchcolumns() and calling it using $getusers->searchcolumns(array('username','account','email')) or using [man]func_get_args[/m] to turn your arguments into an array of args.
  6. You would be much better of executing your query and from that making a list of valid files and going from there. Does this really need to be executed via a web page as well? Surely this is something that can be done in a background process executed via cron or something?
  7. That exact command? Did you give it the proper path to your document root?
  8. I don't see a better solution if that is working for you. I generally would do these things from a prompt but I understand why some people prefer to execute script via a http request.
  9. Did you follow these instructions and execute pear config-set data_dir /path/to/public_html/pear? http://manual.phpdoc.org/HTMLSmartyConverter/HandS/ric_INSTALL.html Ive never installed phpDocumentor through PEAR, a manual install is pretty straight forward.
  10. Firstly, do you really need to use bold chars in your post? I don't see anyone complaining that any other thread is too small. Secondly, you need to outline an actual problem. Just saying you need help doesn't help.
  11. Then you'll want to ask your question in one of the programming boards.
  12. The reason you had to move your code to after the div is because your div didn't exist when the code was initially run. Most jQuery will need to be loaded after the DOM is finished loading (this will fix your issue). this means you need to place all jQuery code within: $(document).ready(function() { // code goes here }); JavaScript should also be placed at the bottom, just prior to the closing </body> tag. This helps with page load times.
  13. You haven't actually described any issue to us.
  14. You would need to write a script for this, MySql won't do it alone.
  15. PHP executes on the server and doesn't care what browser your using. it's likely your markup that is the issue, not php.
  16. You can't skip the opening <?php tag. PHP needs it to execute. The closing tag can and should be left out of a library/framework to help prevent white space being included.
  17. I would suggest this is a Netbeans bug.
  18. mysqldump has an --all-databases option or a --databases option that takes a space seperated list of database names. Does no one look at the manual's these days?
  19. onload is not part of the jQuery framework. Can we see your code.
  20. You failed to check if your query was successful before using its result.
  21. Seriously, hosting is pretty cheap these days, free hosting is no good. You get what you pay for.
×
×
  • 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.