Results 1 to 8 of 8

Thread: MySQL framework for PHP

  1. #1

    Thread Starter
    Hyperactive Member xxarmoxx's Avatar
    Join Date
    Mar 2007
    Posts
    378

    MySQL framework for PHP

    Does anyone know of a framework for php where I can easily access a MySQL database?

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: MySQL framework for PHP

    generally speaking, it's built in:
    http://us2.php.net/manual/en/book.mysql.php

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: MySQL framework for PHP

    Yes, PHP has built in MySQL Functions. You can use the regular MySQL Functions, MySQL Improved, or PDO.
    My usual boring signature: Something

  4. #4
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: MySQL framework for PHP

    This is what you wanted right?
    No offence, but your question sounds so noob, for all I know you meant an interface to your mysql databases. That would be phpMyAdmin
    If for coding, go with mysqli (mysql improved) ... faster, and a pain to first start with mysql functions and then lter try get used to mysqli
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  5. #5

    Thread Starter
    Hyperactive Member xxarmoxx's Avatar
    Join Date
    Mar 2007
    Posts
    378

    Re: MySQL framework for PHP

    I meant to ask if there is a framework with built in security, like hybernate for java. Im a noob to PHP but not a noob to programming. Doot.

  6. #6
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: MySQL framework for PHP

    Quote Originally Posted by xxarmoxx
    I meant to ask if there is a framework with built in security, like hybernate for java. Im a noob to PHP but not a noob to programming. Doot.
    You can use MySQLi which is a class for use with MySQL, this has some built in security features to help you prevent SQL injection.

    With PHP, it is up to the programmer to keep things secure mostly, have a look at visualAds post on PHP security (link in your other thread). If you use some common sense, and tips found in PHP security articles online, you'll be fine.
    Chris

  7. #7
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: MySQL framework for PHP

    Hibernate is an object–relational mapping and data persistence layer for Java and .NET. I don't like it, I don't like O–R mappers in general, and I suggest that you stay well clear of them and instead implement your own (sensible) data access layer. Having said that, O–R mappers for PHP do exist; Wikipedia has a list of them.

  8. #8
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: MySQL framework for PHP

    The OR layer (if any) that is used is usually quite specific given the requirements of a project and may include concepts from one or more design patterns. I am yet to find a single pattern that would meet the needs of every project, so careful consideration is required at the planning stage and a pre built mapper should only be considered if it meets these requirements and does not affect the scalability of the solution.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width