MySQL Forums
Forum List  »  PHP

PHP web development design strategy
Posted by: Jack Hard
Date: February 17, 2013 10:24PM

I am good in web development but recently started using PHP and developed few websites. I learned it myself and developing the website as per the requirement and able to do it without any issue. But I am confused the way I am doing is correct as per industry standard or not. I have see some code using MVC. Which is best practice method we need to follow. How the big company follows? Please ignore the syntax errors, Example Model I am using

Inserting record:

$sql = "insert into ....";
myql_query ($sql) or die (mysql_error());

For Displaying

<table> <tr><th>Slno</th> <th> Customer name </th>.... </tr>
<?php
$rs = mysql_query ("select * from customers");
while ($row = mysql_fetch_array($rs))
{
?>
<tr>
<td> <?php echo $row["slno"];?> </td>
<td> <?php echo $row["customername"];?> </td>
</tr>

<? }?>
</table>

Options: ReplyQuote


Subject
Written By
Posted
PHP web development design strategy
February 17, 2013 10:24PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.