PHP and MySQL database

Discussion in 'PHP' started by madmn, Feb 1, 2006.

  1. #1
    Just got a new client:) . His webmaster/designer he had prior to me wanted to change his site to PHP and MySQL database type site verses a site with regular tables, etc. He said the reason was that the site was outdated. I have limited experience setting working with PHP or MySQL databases and was wondering if someone can learn it on there own good enough to do a site?

    Particularly how long would it take to learn and be proficient?

    Does anyone know of any good resources, books, websites , etc that might help?

    If I need to subcontract that part out what am I to expect in price?

    Does anyone with the skills necessary want to PM me for some possible work when we get to this stage? (I would want some free lessons so I can maintain the site and have the knowledge to do it myself next time a job demands it):eek:

    Thank You
     
    madmn, Feb 1, 2006 IP
  2. dave487

    dave487 Peon

    Messages:
    701
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Waht sort of site is your client looking for?
    Are they wanting shopping cart software or a site they can update by logging in and editing the text which is stored in the database?
     
    dave487, Feb 1, 2006 IP
  3. madmn

    madmn Well-Known Member

    Messages:
    431
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    108
    #3
    It is a real estate site, currently with 19 properties (each with its own page and 5-8 pictures).
     
    madmn, Feb 1, 2006 IP
  4. dave487

    dave487 Peon

    Messages:
    701
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #4
    First off you need to install http://www.phpmyadmin.net and decide what information you want to store for each property. Once you have done that you create the database using phpmyadmin and enter a couple or properties into it.

    Then you can write a quick script to query the database for the property for each page so domain.com/property.php?p=propertyname1 will bring up the details for propertyname1

    You should mod rewrite the pages to look like static pages.
     
    dave487, Feb 1, 2006 IP
  5. suzigeek

    suzigeek Peon

    Messages:
    142
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You could also go the open-source way and just utilize a CMS for content management and use a plugin for the real estate listings. Mambo has a real estate component...I can't remember if its free or not.

    I would definitely take a look at that route if you have no previous programing experience.
     
    suzigeek, Feb 1, 2006 IP
  6. wwm

    wwm Peon

    Messages:
    308
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #6
    if u have previous programming experience, a few weeks

    otherwise maybe a month

    dont worry php is easy (believe me i do C and Java regulary!)
     
    wwm, Feb 1, 2006 IP
  7. dfsweb

    dfsweb Active Member

    Messages:
    1,587
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    88
    #7
    I think learning PHP is quite easy especially if you have prior programming knowledge. These sites might help:

    http://www.w3schools.com/php/php_intro.asp (A very good starting point)
    http://www.php.net/quickref.php (PHP Manual - Contains all PHP commands)
    http://www.krasline.ru/Library/postgress/manual/sql-commands.htm (SQL)

    Working with MySQL databases shouldn't be a problem. Simply use the following code snippets and you'll be on your way:

    Open the database connection, replace username and password by your username and password:
    $conn=mysql_connect("localhost","username","password");

    Select the database. db_name should be the name of the database.
    mysql_select_db("db_name",$conn);

    Run Queries:
    $rs=mysql_query("SQL Query goes here");

    Close the connection:
    mysql_close($conn);

    Good luck! :)
     
    dfsweb, Feb 1, 2006 IP