Hi Everyone,
Im trying to convert one of my sites from ASP to PHP and need a little help updating a record 🙂
In ASP I do this:-
<%
rsDev.Fields.Item("Hits").Value = _
rsDev.Fields.Item("Hits").Value + 1
rsDev.Update
%>
And this updates the numeric value of this record by 1 in the column 'Hits' in my DB.
I think Im getting close with this in PHP but am stuck! Heres what I have so far:-
<?php
$rsDev->Fields("Hits");
$rsDev->Fields("Hits")+1;
$rsDev->Update;
?>
Im sure I'm getting close, but the value is not updating - can anyone tell me what I'm doing wrong?
Many Thanks,
Jut.