Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Its pretty hard to tell exactly what is going on but one gleamingly obvious issue is that fact that you seem to be using different repositories for different versions. Your project should all be in one repository, and it should have branches that represent the different development branches of the project. Another issue, once a branch is tagged, you can not (or should not) ever change the contents of that tag. You need to make another tag incrementing the version. If you are using tags and branches properly it should be reasonably easy to backport code from one version to another.
  2. The error is pretty self explanatory. You have passed a string ($query) to mysql_fetch_assoc, it expects a result resource ($result1). Besides that, you should be doing a while loop, not ado while. Your current approach makes little sense.
  3. You're using the wrong protocol for this sort of thing. http wasn't made to do what you're asking of it.
  4. So you need to make a common interface, and then likely some form of bridge between that common interface and the MCS in question. Start with one, and go from there.
  5. It is an example of the logic involved, its not meant to be working code. If you want someone to write code for you hire a programmer.
  6. trq

    Include

    Your already within php tags, you don't need more. Also, includes don't need to be echoed. echo $result["Name"] . $result["Gender"] . 'TEXT TEXT TEXT'; include 'inc_header.php'; echo 'Text Text Text';
  7. Your not very good at this asking for help thing are you? Try posting some relvant code.
  8. All sorts of way of doing that. Generally though, you are just looking to replace some content with some other content as you get it from the database. The basic concept is simple: $original = "This is some test about {{foo}}, and how good it is"; $text = preg_replace_callback( '/\{(.*?)\}/', function() { // some logic to return "foo" from the database } , $original ); echo $text;
  9. Oh, that looks terribly inefficient (and autoloading is a notorious bottleneck if not done well). Just use absolute paths to your libs.
  10. For starters, this: if (file_exists($includePath . DIRECTORY_SEPARATOR . $filePath)) { require_once $filePath; return; } would need to be: if (file_exists($includePath . DIRECTORY_SEPARATOR . $filePath)) { require_once $includePath . DIRECTORY_SEPARATOR . $filePath; return; } But yeah, some debugging would help.
  11. No kidding. Think about what you are actually doing. Code is not meant to be stored in a database. Your doing it wrong.
  12. data : { action : 'customer_details', more_customer_details: more_customer_details( 'complaint' ) }
  13. You seem to already have your logic sorted (kinda), we cant really help without seeing some code.
  14. You should check to see that $query is indeed what you expect it to be before you go ahead and use it like its an object. $query seems a silly thing to name it too, its not a query.
  15. Your post makes little sense is all I'm saying.
  16. No its not. Many languages do.
  17. Because, IMO, its a well designed framework. It leverages a lot of the hard work done by the Symfony project under the hood, while building a well rounded API over the top. In short, it has a great deal of power, functionality and flexibility when you need it, but gets out of your way when and where you need it to.
×
×
  • 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.