943,975 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 778
  • PHP RSS
Jul 24th, 2007
0

I know nothing and need help please

Expand Post »
My web designer disapeared and left me with my site done in PHP and MySQL.

It was all ok until the other day when something suddenly stopped working.

I don't know anything about MySQL or PHP.

On my site when you click 'recently added' it used to display products in date order and there is a php file called recent.php.

This stopped working the other day and put all the files in title order.
I looked inside the control panel and managed to change it to date order, but this is now all the files, not just the 'recent' ones.

The recent.php seems to have stopped working.

Can anyone help me please?

Here is the code that stopped working.

PHP Syntax (Toggle Plain Text)
  1. <?php
  2.  
  3.  
  4. $result = mysql_query("SELECT * FROM products WHERE owner LIKE '%Lady Lita%' AND released NOT LIKE '' ORDER BY 'released' DESC")
  5. or die(mysql_error());
  6.  
  7. //Add the rows to an array called result
  8. $row = mysql_fetch_array( $result );
  9.  
  10. $i=0; //A counter
  11.  
  12. //For each entry found, grabs its variables and stick em in a table
  13. while ($i < 5) {
  14.  
  15. include ("variables.php"); //Take the database variables and make them useable in php
  16.  
  17. if ($type != "Spell"){include ("product_table.php");}
  18. if ($type == "Spell"){include ("spellsandhexes_table.php");}
  19.  
  20. $i++; //Repeat until all 5 entries have been populated
  21. }
  22. //Disconnect from database on each page refresh (keeps things secure)
  23. ?>
Reputation Points: 10
Solved Threads: 0
Newbie Poster
purplephp is offline Offline
2 posts
since Jul 2007
Jul 24th, 2007
0

Re: I know nothing and need help please

ORDER BY 'released'

So is released a date then?
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jul 24th, 2007
0

Re: I know nothing and need help please

Click to Expand / Collapse  Quote originally posted by iamthwee ...
ORDER BY 'released'

So is released a date then?
Yes, the date the file is released.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
purplephp is offline Offline
2 posts
since Jul 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: IIS Integrated Auth. & Redirect upon login
Next Thread in PHP Forum Timeline: Previewing PHP frameset files in browser





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC