You cannot learn
Php from someone else!
Learn the fundimentals from W3schools,
Learn to mix & match functions\switch\loops & statements untill yer eyes hurt & yer on to a winner!
Find a good text editor like 'jedit or intype' !
As for dreamweaver i learnt to use dreamweavers inbuilt functionality first & it was the worts mistake of my life, now i just code everythink in text editors using the
FTP plugins for the editors!
Also your mysql is just as important as
php as is the structure of the database that that you are coding with you no when your goos with mysql when you start using relevance & match against querys!
Pleanty of functions to save creating spaggboll code is my method here is a basic example learner code i have just made :
- PHP: Select all
<?php
// Connect to server & select database!
function db_connect()
{
if (!$connection = mysql_pconnect('localhost','andrew','lloyd'))
{
return false;
}
if (!mysql_select_db('db_example'))
{
return false;
}
}
// Create function to data from rows!
function select_example()
{
db_connect();
$select = "SELECT
example.id,
example.title,
example.description,
example.company,
example.location,
example.url ";
$from = "FROM
example ";
$where = "WHERE
example.id > 0 ";
$query = $select.$from.$where;
$result = mysql_query($query);
while ($row = mysql_fetch_array($result))
{
print_r($row);
}
}
select_example();
Function bla bla bla am border now()
{
}
?>
Good look all! if i can learn anyone can ha ha
