Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Are you accessing the file via http://localhost ?
  2. This topic has been moved to Other Programming Languages. http://www.phpfreaks.com/forums/index.php?topic=310589.0
  3. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=310577.0
  4. If you want code written for you we have a freelance board. This board is for help with code you have written and are having issues with.
  5. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=310484.0
  6. SQLite's data types are very different to that of other databases. You in fact don't even need to declare data types for anything other than auto incrementing fields (which must be declared as INTEGER). I suspect this could be the cause of your problems, unfortunately, I don't offer any solution however. You should read the Sqlite docs for further info, its been a long while since of read them.
  7. In order for your users to be able to include a remote file they would need to have allow_url_include enabled within there php.ini. This is disabled by default. A better option would be for them to call.... <?php echo file_get_contents('http://myscript.com/whatever.php'); ?> as allow_url_fopen is enabled by default or for them to use curl, either way, what your providing should be sufficient. You will however likely require your users to pass an id via the querystring so that your script can identify them and get the correct data. eg; <?php echo file_get_contents('http://myscript.com/whatever.php?id=someuniquecode'); ?>
  8. I don't see how using a forum vs a vcs makes any sense. Two completely different tools & not at all related IMO.
  9. What version of php are you using? GOTO requires 5.3*
  10. You should remove it altogether. if ($result = mysql_query("SELECT * FROM staff WHERE date >= '".date('Y-m-d').' 00:00:00'."' AND date < '".date('Y-m-d').' 23:59:59'."' ") { if (mysql_num_rows($result)) { echo "<table border='1'> <tr> <th>ID</th> <th>Name</th> <th>Job Number</th> <th>Date</th> </tr>"; while ($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row["ID"] . "</td>"; echo "<td>" . $row["Name"] . "</td>"; echo "<td>" . $row["jobNO"] . "</td>"; echo "<td>" . $row["Date"] . "</td>"; echo "</tr>"; } echo "</table>"; } }
  11. Why do you have two while() statements? The first time you call mysql_fetch_array() (in your first while()) you never use the data it returns (this holds your first record).
  12. Most web applications use one authenticated user only to connect to there databases.
  13. What results are you getting?
  14. $DB is obviously not what your expecting it to be.
  15. I'm not sure what you are trying to do but all you are doing is writing the header() call to the file you are creating. Your code makes no attempt to actually redirect.
  16. Think about what you are doing. Your query uses a WHERE clause that means it will only ever return a result if the username and email match, why are you checking again to see if they match? If your query fails to return a result, your 'while' loop will never execute because there is no result returned from your query.
  17. Have you checked out some of the editors mentioned in this thread?
  18. This board is here for questions directly relating to already existing Third Party code. It is NOT a code repository or the place to post requests looking for specific scripts. If you can't find the script you are looking for on Google, you either don't know how to use Google or the specific script does not exist. DO NOT request help with searching.
  19. I'm not sure how that would be achieved through php. The rule is that you use a before words that start with a consonant sound and an before words that start with a vowel sound.
  20. You'll need to be more descriptive. Your example makes little sense to me.
  21. Netbeans 6.8 does seem even better than 6.7. Many improvement + it does seem more responsive.
  22. Iv'e not noticed any performance lag with Netbeans excepting maybe when it initially scanning my projects. Even then, I think its only because the drives my projects are hosted on are remote (LAN).
  23. Iv'e been using vim for years though have been loving Netbeans since I programming work full time.
  24. Doesn't really make sense. They both serve a completely different purpose.
  25. This board is here for questions directly relating to already existing php applications. It is NOT a code repository or the place to post requests looking for specific applications. If you can't find the application you are looking for on google, you either don't know how to use google or the specific application does not exist. DO NOT request help with searching.
×
×
  • 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.