Jump to content

More Efficient Coding


ChadNomad

Recommended Posts

Hi. I want my code to be more efficient and logical and was wondering if anyone could point me in a good direction? For example i concatenate a lot of stuffs as well as escaping a lot. Example;

$content = "<p>something</p>".$content;
mysql_query("UPDATE the_table SET content='".$content."' WHERE id='".$r['id']."'") or die (mysql_error());

 

I cant think of any others right now but i'm sure i have lots of bad practices.

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/207712-more-efficient-coding/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.