Hi there,
I am having difficulty with the following and would appreciate any help you can give me.
CREATE TABLE ptpfullpageapproved (
domain varchar(250) NOT NULL
) TYPE=MyISAM;
CREATE TABLE ptpfullpagehistory (
username varchar(50) NOT NULL default '',
referringip varchar(15) NOT NULL default '',
referringsite varchar(250) NOT NULL default '',
referringdate date NOT NULL default '0000-00-00',
valid char(3) NOT NULL default ''
) TYPE=MyISAM;
I would like the query to loop through ptpfullpageapproved and for each value loop through ptpfullpagehistory and count the number of occurences the string $domain is found within $referringsite.
I will also need the query to include these additional where statements:
username='$id'
valid='Yes'
Can you please help me with the code to output this on a php file.
Many thanks in advance for your help.