Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=339939.0
  2. Links actually execute a HTTP GET request.
  3. You cannot simply define variables where ever you like within a class. I suggest you create a private property to store your model in and then assigned it within your __construct.
  4. I didn't look at the tutorial but you would simply make sure that the Model class is available (included) and then instantiate it as per usual. You might even make a helper method within your base controller that handles this for you.
  5. These two lines.... $thisWipit = $_POST['thisWipit']; $sessWipit = base64_decode($_SESSION['wipit']); Need to go within a conditional that checks these indexes actually exist first.
  6. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=339928.0
  7. Have you tried checking $this->DB->error() ?
  8. This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=339861.0
  9. You would echo the JavaScript out just as you would normally echo out html.
  10. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=339884.0
  11. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=339780.0
  12. JavaScript is server side so why not take a look?
  13. If you want them in an array just put them in an array in the first place.
  14. json_encode is a php function. Most Javascript libraries (if your using one) come with some json manipulation functions. Otherwise, json is just simple JavaScript objects within a string.
  15. I still don't think it's necessary to have the entire Javascript stored in a database. You could just as easily store just the data.
  16. return exits the function where it is. You'll need to build a string (saving it into a variable) then return that once your have all the data. Looking at your code, I have to ask.... why the hell are you storing JavaScript in your database?
  17. Instead of printing the string within your function just return it.
×
×
  • 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.