Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. echo it. var = '<?php echo $signature; ?>';
  2. That is pretty much the gist of it yeah.
  3. You are seriously lacking enough information to make your post remotely useful.
  4. This is where your misunderstanding lies. You grant your "application" access to your database. It then controls all data entered into and pulled out of the database. For instance, this forum, it uses a single database server account to access the database on behalf of all of the forums users. The programming logic within the forums application itself polices who can write, edit / access what. You can (and often will) create multiple account for the application to use (some being more restrictive than others) however, there is rarely any need to grant a user themselves there own account on the database server.
  5. Really? Missed this did you? http://www.phpfreaks.com/page/rules-and-terms-of-service#toc_forum_rules
  6. How are you planning on letting your "members" access data? You don't normally create accounts on the database server itself and hand them out. You write an application which makes use of a single (or sometimes 2-3) database server accounts then have the application take care of who has what permission. If you really do want people to access mysql directly your in for a hell of a time. Especially if your here asking how to add simple permissions.
  7. This has always been the case, nothing new in php5.4. Whatever you where running before must have simply been hiding errors. That sounds like a bug that has been fixed.
  8. Web servers are designed to handle multiple request at a time. They are not processed one at a time, but concurrently. The data is stored in memory until the script no longer needs it.
  9. It is a design pattern. Not sure where your going with this blueprint idea.
  10. Really? What is it then?
  11. Just execute two different queries.
  12. Nothing in that code is different between php4 and php5, I would like to see where this function is actually called.
  13. denno20, the ops INSERT statement us perfectly valid syntax. To the op, you cannot (with the mysql extension) execute multiple queries in one call.
  14. The problem with "youtube tutorials" is that there is not one single respected php developer making them. They are made by hacks that have learnt some basics by watching "youtube tutorials". Learning to program (like most things in life) is not really something that can be done by trying to take shortcuts. If by nature you need things spoon fed to you, it is highly likely that you don't have the aptitude to be a software developer and if you ever do get there, the real world is going to be a really tough place.
  15. You can't put an expression in an array. Your if statement needs to go where you actually use this array, not where you create it.
  16. I'm not signing up to some random site. If you want help you need to provide the means.
  17. Let me get my crystal ball out and take a look.....
  18. Did you click on the copy link ?
  19. One advantage is that returning raw data as json allows your data to be consumed by other types of clients. This is how API's work. Another, is that your not mixing your client side concerns with your server side concerns. Why should your server side code need to create table rows and divs?
  20. PHP comes with a server built in (since 5.4). There is no need to install a server for development these days. Having said that however, what your wanting to do is nothing new. All your doing is setting up a server, that you can upload php files to and have them processed. Where exactly are you stuck?
  21. trq

    json api

    file_get_contents json_decode.
  22. Sorry, I'm seriously not trying to be sarcastic.
  23. trq

    method help

    Probably easiest to display the data via JavaScript. Just load the data you want in a hidden div, and display it when the correct option is selected.
  24. Your not sure what a url is? http://en.wikipedia.org/wiki/Url So, passing [nobbc]http://foo.com/script.php[/nobcc] should work from any location. If your url doesn't work, there is some other issue.
×
×
  • 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.