hi guys,
I've recently begun working with OOP concepts, and I grasp the class/method setup well enough, however, my code hasn't followed my brain, and tends to be still very static and inflexible.
for example (not a real example):
using the example, could you point me in the right direction?
I've recently begun working with OOP concepts, and I grasp the class/method setup well enough, however, my code hasn't followed my brain, and tends to be still very static and inflexible.
for example (not a real example):
Code:
class sqlstuff{
function insert($vals){
$sql="insert $vals[1],$vals[2],$vals[3] into tblname col1,col2,col3";
$action=sql_query($sql);
}
Comment