Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Not unless you tell us what 'not working' means.
  2. $bears is an object, not a class. There is a difference. No it is not valid. Variables cannot begin with a number. See $4bears
  3. The name of your class doesn't seem to match your methods. What exactly is this thing meant to be?
  4. Re-loading a class will result in an error because you can only define a class once. You need to be a little more descriptive of exactly what it is your trying to do.
  5. This is the basics of dynamic content. Generally, you pass data through the url, this data is used within the page then to identify some content (generally stored in a database) and display it. A simple example. <?php if (isset($_GET['id'])) { $id = $_GET['id']; } else { $id = 1; } echo "This is page number $id<br />"; echo "Click <a href='?id=" . $id+1 . ">here</a> to see page number " . $id+1;
  6. Set the users sticky bit on the games directory.
  7. There is nothing strange about the warning. You are checking to see if a variable which may or may not be defined is empty. You should simply check for the variables existence. This..... if($_POST["eliminar"]==""){ should be.... if (!isset($_POST["eliminar"])) {
  8. There are web frameworks around for Python, and there is also mod_python. I would say however that it is more of a general purpose language when compared to something like PHP.
  9. I don't see anywhere where you actually execute the query. What does confirm_query() do?
  10. Python is an awesome programming language which has been well thought out, designed and is allot more versatile than PHP simply because there are allot more system programming libraries around. Really though, PHP remains a pretty big contender on the web. Ruby might also be something you might want to look into. It's also a very well designed language, is well web enabled via Rails and is also quite versatile. It's still quite young compared to Python though so there's not quite the amount of libs around but it is quickly catching up. There is always Perl too, though I wouldn't use it for the web. It really depends on what you want to program exactly. Are you a windows user? You might be better off taking a look at C# & .Net.
  11. That is how Javascript works (and is not jQuery specific). It doesn't actually manipulate the html, but the DOM stored within the browser itself. Get yourself Firebug and you will be able to see what the code would look like after the DOM has been manipulated.
  12. This is really a html issue, not php. Have a look at your actual outputted html source and make sure it validates and is what you expect.
  13. Looks to me like short tags aren't enabled or something. You should be using the complete <?php ?> tags anyway.
  14. There is your problem then. can we see your dbConnect() function?
  15. Obviously $conn is not an object. What does..... var_dump($conn); produce?
  16. Sure, where are you stuck?
  17. Adobe reader plugs itself into browsers as a plugin.
  18. Assuming that you want a mysql solution (this is after all the mysql help forum), why not simply execute your query within mysql's cli?
  19. Obviously you still need to make sure your html is valid.
  20. All you need to do is make sure that, instead of loading an already existing and complete <head> tag full of data, you dynamically add your <meta> tags along with the rest of your data.
×
×
  • 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.