Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 31-12-05
accelerator's Avatar
Online shopping rocks!
 
Join Date: Nov 2004
Location: England
Posts: 1,314
Thanks: 8
Thanked 29 Times in 26 Posts
accelerator is an unknown quantity at this point
  php scripts to display data from MySql

Dear All

I am presently working on php scripts to display data from a MySql database containing data from xml product feeds.

Are there any good ready made scripts out there? The kind of things I will be needing are:
- display by product name
- display by category
- sort by price
- sort by brand
- search database
etc etc

Just wondered if any one could point me in the direction of some ready to go scripts that I could use/adapt instead of creating my own from scratch.

Many thanks

Accelerator
__________________
WebRef.eu - Web Development Resources for the Online Entrepreneur
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 31-12-05
morleymouse's Avatar
Super Member
 
Join Date: Aug 2003
Location: Costa Del Sheffield
Posts: 2,752
Thanks: 3
Thanked 10 Times in 6 Posts
morleymouse is an unknown quantity at this point
its not that hard just depends what query you run and how you sort the data is up to you

if your using phpMyAdmin you can sort the data how you want in there and it will show you the php qry

so like:

$result = mysql_query("SELECT * FROM database_table_name WHERE category = 'Category_Name' ORDER BY price desc LIMIT 0, 30") or die("Database Error" . mysql_error());

would get the data for all products in the table called "database_table_name" if the category of the product is "Category_Name" and sort the data by the field called price descending (alternative is asc - ascending) and the limit will only get 30 results.

then do a while statement to loop through and echo out what you want

while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo "$row[product_name]<br>";
}

that would just print out 30 of the product names (presuming you have a field called product_name) from category Category_Name with the highest prices.

loads of different ways to display the data between the while statement and lots of different data you can return with the $result depending on what you want


and thats the last bit of help im giving this year
__________________
Dan Morley
Alpharooms.com
daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
My Blog | Cheap Holidays
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-01-06
accelerator's Avatar
Online shopping rocks!
 
Join Date: Nov 2004
Location: England
Posts: 1,314
Thanks: 8
Thanked 29 Times in 26 Posts
accelerator is an unknown quantity at this point
Thanks morleymouse, appreciated.

I'm still looking at this general area, and have been looking around for php scripts for searching MySql databases, tutorials, techniques etc etc.

Has anyone got any good urls they can point me at? I'm finding it difficult tracking down good examples.

Cheers

Accelerator
__________________
WebRef.eu - Web Development Resources for the Online Entrepreneur
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-01-06
Registered User
 
Join Date: Dec 2005
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
JimboJetSet is an unknown quantity at this point
  Lightbulb

Quote:
Originally Posted by accelerator
Thanks morleymouse, appreciated.

I'm still looking at this general area, and have been looking around for php scripts for searching MySql databases, tutorials, techniques etc etc.

Has anyone got any good urls they can point me at? I'm finding it difficult tracking down good examples.

Cheers

Accelerator
Well I got pissed off with phpmyadmin cos I had problems inserting new rows when some fields were of data-type TEXT.

So I downloaded a full-on mysql server management application http://enginsite.com/MySQL-client-ma...-for-MySQL.htm

Free for 30 days eval. Its rather slick, user-friendly and full-featured.

As for php resources try http://www.phpfreaks.com or http://www.phpbuilder.net and of course http://www.php.net/manual/en/

Regs

Jimbo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql / php / insert data into many tables morleymouse Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 9 05-01-05 04:46 PM
Inserting Data in MySQl DaveR Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 2 13-10-04 04:16 AM
Anyone anygood with xml, php, mysql and Affiliate Window AnnonnyMouse The Affiliate Marketing Lounge 1 23-09-04 11:00 AM
data feeds with php Peter Skellen Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 1 09-10-03 08:45 PM
PHP & MYSQL Affiliates4u Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 8 13-01-03 09:12 PM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7