Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Can you echo $sql so we can see the actual query?
  2. You're doing the same thing right above where PFM pointed out after if ($submit). There is a SELECT but no actual execution to provide mysql_num_rows() with a resource id: // Check for an existing asset $runThis = "SELECT * FROM assets WHERE asset_id = '$asset_id'"; //find the amount that match $count = mysql_num_rows($runThis);
  3. Check out - http://us2.php.net/manual/en/language.oop5.visibility.php
  4. That means pageID doesn't exist. Show us the URL you're using.
  5. Post your new query. You did this right? $query = mysql_query("UPDATE page SET title='$title', keywords='$keywords', description='$description', menu='$menu', content='$content' WHERE pageID= $id"); If that didn't work add or die(mysql_error()); to the end of the mysql_query call to figure out the exact errors.
  6. Remove the single quotes from your table names.
  7. Query is probably failing returning false. Use mysql_error() to see what the error is.
  8. Hi Nick, welcome to PHPF.
  9. What makes you think it's wrong? What does it do? What do you want it to do? Does your page break? Blank page? Error? No results? Unexpected results? What?!
  10. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=343343.0
  11. Loop through the size of the array and for each through it?
  12. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=342917.0
  13. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=342913.0
  14. 'references' is a MySQL reserved word. You need to either put backtics around it `references` or change the table name.
  15. Interesting, glad you got it working.
  16. 1) In the future, please place OR tags around your code. 2) That's a lot of code... - What did you to try and isolate the problem? To be honest, not many people are going to go through all the code. Show us the add() function for the testimonials class. It looks like that's where the actual writing to the XML file starts.
  17. Do you know if your query is returning data? If it is, then look in the manual Example #1 (specifically the while loop): http://us.php.net/mysql_fetch_assoc
  18. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=342695.0
  19. Comma separated values should be avoided, it's poor design and causes a lot of headache. If you have to check these then you can use IN() http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#function_in
  20. Are you using HTML entities?
  21. Must be some sort of joke...
  22. ^ there was a bright green/black diagonal gradient for the background.
  23. It really depends on what you or your friend want. To get ideas/help try something like: http://colorschemedesigner.com/
  24. I closed the site as soon as I opened it, surprised I can still see.
×
×
  • 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.