Please help, been at this for a month now.
A few lines before i selected a table and view the scores, It should then update the table, it then worked fine and updated the scores fine. If i copy the sql it updates tables fine in sql admin area so the sql is fine. Its the php is not working.
Ive checked the password, it connects and list scores using sql and php but will not update the table, but a few lines after it update the scores in a different table.
Here is my problem code:
[php]
$fixtures_sql33="";
$fixtures_sql33=$fixtures_sql33.“update teamplus set TPB=’”.$str_numbers_only."’ WHERE Ltrim(Rtrim(team)) like ‘%".trim($res_tabxxnam[1])."%’ and league=’".$lg."’ and Season=’".$season."’ limit 1; “;
echo $fixtures_sql33.”
";
$fixtures_res33 = mysqli_query($cxn,$fixtures_sql33) or die(mysqli_error($cxn));
[/php]
Details on the screen.
update teamplus set TPB=‘5’ WHERE Ltrim(RTrim(team)) like ‘%Hertford%’ and league=‘Nat League 3 London South East’ and Season=‘2016-2017’ limit 1;
update teamplus set TPB=‘6’ WHERE Ltrim(RTrim(team)) like ‘%Wimbledon%’ and league=‘Nat League 3 London South East’ and Season=‘2016-2017’ limit 1;
update teamplus set TPB=‘4’ WHERE Ltrim(RTrim(team)) like ‘%Tonbridge Juddian%’ and league=‘Nat League 3 London South East’ and Season=‘2016-2017’ limit 1;
update teamplus set TPB=‘3’ WHERE Ltrim(RTrim(team)) like ‘%Westcombe Park%’ and league=‘Nat League 3 London South East’ and Season=‘2016-2017’ limit 1;
update teamplus set TPB=‘4’ WHERE Ltrim(RTrim(team)) like ‘%Guernsey%’ and league=‘Nat League 3 London South East’ and Season=‘2016-2017’ limit 1;
At the moment i copy the sql to admin and update the table manually.
Please help its driving me nuts.