Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. In your first code excerpt, "This code is for viewing the table contents:" you have a syntax error: if($dbc = mysql_connect('localhost','root')); In case you can't see it, there is a semi-colon after your IF statement.
  2. How does that justify not validating your page and why would Google need to validate?
  3. He told you, put it around the string then call the mysql_query() function. If you read the documentation you will see that mysql_real_escape_string takes a string and returns a string. It wouldn't make any sense to put it around the mysql_query when that returns a resource.
  4. Assuming 'date' is the date when you inserted the record, you can use that to order. ORDER BY `date` DESC LIMIT 2
  5. You're assigning '$val' to '$expHd[6]' and as you can see the index of 6 is undefined (doesn't exist). And I have no clue what your code is supposed to do so I can't really help you.
  6. You can use a regular expression to filter that out - REGEX.
  7. Are you sure that '$dd[4]' explodes into 7 values? After the explode put: print_r($expHd);
  8. Have you looked in the manual - OOP?
  9. That was pretty quick... In about 9 minutes you read through some tutorials and tried multiple techniques? Can we see the closest one?
  10. It does work... Why do you think it doesn't? Only 1 found prints out because you have an elseif...
  11. I think Ken misinterpreted what you mean, Daniel. He's saying that he will personally prioritize it, not make it 'sticky' like.
  12. Firstly, this is a JS question, not PHP. Secondly, you can Google the "location" object to find your answer.
  13. FF3.0.10 Ubuntu 8.10
  14. Good tables? That's a bit ambiguous. Your tables should be normalized to reduce space, eliminate redundant data, and for basic DB organization. Please read through this article - Database Normalization - and tell me what normal form you think your table is in and how you think you can improve. What made you question your tables in the first place?
  15. AFAIK, you cannot achieve this with PHP, it lives on the server. Moving to JS section.
  16. Of course there are decent free ones, but it's your choice if you want to write one or not. It's not our time or effort. Also, if you do, you may want to integrate AJAX into your chat. It may be worth doing a little research and trying different chat scripts out to see what works best and what you like. If you can't find anything you like for free, I'm sure you can find a good one for a small price. I've seen this question come up before, both asking for 3rd party chat scripts and creating your own. Good luck.
  17. Maq

    tables

    Creating a text field called desc. Personally I would avoid any field names which are SQL used words, and in that case I would try surrounding desc with back ticks (`desc`). All the best Keith Right, for some reason I thought he was trying to do something else... "desc" is a reserved word so that is probably your problem, it would be nice if you posted the error.
  18. - "Username" & "Password" text fields bleed into the main container. (FF3 Ubuntu) - The top right nav has a line break that goes into the main container again, looks awkward. - Contact form is also bleeding (see attachment) [attachment deleted by admin]
  19. Maq

    tables

    Do you receive and errors? Take this out, I'm not even sure what it is: desc text,
  20. Welcome to the forums, although formatting and indentation really don't have anything to do with the forum. You should definitely try to use tags, for syntax highlighting, it also usually results in faster/more replies. There is also a "Topic Solved" button right above the "Quick Reply" tab in the bottom left.
  21. Stop feeding the trolls.
  22. You should really consider properly formatting and indenting your code, makes debugging much easier.
  23. My guess would be a missing ';' or bracket before line 398.
  24. I'll mark this as solved for you but in the future there is a "Topic Solved" button in the bottom left right above "Quick Reply".
  25. What format is '$arrival_date' and $departure_date' in? You can do something like: SELECT * FROM table WHERE date_field BETWEEN '$arrival_date' AND '$departure_date';
×
×
  • 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.