I have a few PHP queries:
How did you learn PHP, any good tutorials?
Say i use a select statement:
$haha = "SELECT test.ID, test.Name, auth.Name, auth. ID FROM test, auth WHERE test.ID=auth.id";
A very bad example, but anyway. My question is, when creating array and defining variable. How would i define the different test.Name and auth.Name.
EG.
while ($result = mysql_fetch_array($haha)) {
$authorname = $haha["Name"];
$personname = $haha["Name"];
echo("$authorname, $personname");
}
As you can see, i am defining one field for two variables and MySQL wouldn't know which field so how do i say that one is auth.ID and one is test.ID?
- I am using the tag [PAGEBREAK] to split an article over many pages, how would i do something like this:
[PAGEBREAK title="Title here"] or
[PAGEBREAK]Title here[/PAGEBREAK]
I want to put a title between or in that tag and be able to pull the title from the tag and display it on the page. How could i do this?
Thanks in advance!