Jump to content

bouba

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

bouba's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. A database is just a data storage. Ideally you should design your application to work irrespective of the database in the back-end. You can achieve that by using PDO or if you wish app frameworks such as Zend or CodeIgniter or Yii.
  2. The text is printed properly; it's just that browsers don't render the newline character (unless when inside <textarea>). To render it you need to use the php function nl2br which transforms newlines to <br> tags.
  3. If your project requires the user to have an admin back-end to edit content you are better off using a CMS. Otherwise you will have to write your own content administration system with whatever framework you use. A good lightweight framework is ExpressionEngine but it's not free; a not so lightweight one would be Joomla. Framework wise I think Yii and CodeIgniter are the best both in terms of weight and performance (which are somewhat related).
  4. My favorite is Yii mainly because it's truly completely OO. Its architecture and design makes far more sense than CIs especially its database access and AR implementation. It is not as full featured as Zend but it integrates very nicely with it. I would usually install both and import the Zend components that I nee such as the web services.
  5. Hi. I need some help about mysql_fethc_assoc() I am writing a mysql database abstraction set of functions, and I keep getting an error with the abstraction function for mysql_fetch_assoc: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource Here is a piece of my code. $dbConn=mysql_connect($dbHost, $dbUser, $dbPass) or die ('Mysql conect failed.'.mysql_error()); mysql_select_db($dbName,$dbConn) or die ('Cannot select database.'.mysql_error()); function dbQuery($sql){ return mysql_query($sql) or die ('Query failed.'.mysql_error()); } function dbAffectedRows(){ global $dbConn; return mysql_affected_rows($sql); } function dbFetchArray($result, $resultType= MYSQL_NUM){ return mysql_fetch_array($result, $resultType); } function dbFetchAssoc($result){ return mysql_fetch_assoc($result); } function dbFetchRow($result){ return mysql_fetch_row($result); } function dbFreeResult($result){ return mysql_free_result($result); } function dbNumRows($result){ return mysql_num_rows($result); } The only function issuing errors is mysql_fetch_assoc(). Thanks.
  6. I am trying to make a web site to sell jewelry online. I don't have much experience in it. I would like some help on how to design the website. Like how many pages should I have and what they should be about. Thanks.
  7. Hi. I am pretty new to this forum. I just wanna ask if anyone have or knows where I can find projects in php that I can join and contribute to. I am a first year student and knowledgeable of php, html, css, mysql, javascript; I am looking for a way to sharpen my skills and gain experience. Thanks.
×
×
  • 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.