When I click on that value, I want to change the cell value of the table. The default value for that cell is '0' when I click on it so I should change it from '1' and '1' to '0'. I'm new to web development.
If anyone can help, then it will be highly appreciated.
# MySQL connection mysql_connect ("localhost", "root", "") or die (mysql_error ()); Mysql_select_db ("safe") or die (mysql_error ()); # SELECT Query $ selectSQL = 'SELECT * FROM * image_upload` Prepare at INNER image_upload.user_id = user_table.user_id timestamp DESC by ORDER'; Perform the # SELECT query if (! ($ Selectionresay = mysql_query ($ selectSQL))) {Recovery of data from resonance database - # ' Mysql_errno (). ':' .mysql_error (); } And {? & Gt; & Lt; Table range = "2" & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th & gt; Username & lt; / Th & gt; & Lt; Th & gt; Category & lt; / Th & gt; & Lt; Th & gt; Details & lt; / Th & gt; & Lt; Th & gt; Image & lt; / Th & gt; & Lt; Th & gt; Location & lt; / Th & gt; & Lt; Th & gt; Status & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt ;? Php if (mysql_num_rows ($ selectRes) == 0) {echo '& lt; Tr & gt; & Lt; Td colspan = "4" & gt; No rows returned & lt; / Td> & Lt; / Tr & gt; '; } And {while $ line = mysql_fetch_assoc ($ selectRes)) {resonant "<"> <$ td> {$ row ['user_name']} & lt; / td & gt; & lt; TD & gt; {$ row ['category' & lt; / td> & lt; td & gt; {$ row ['description']} & lt; / td & gt; & lt; td & gt; & Lt; img src = 'uploads /".$ line [' picture '].' '{$ Row [' flag ']} & lt; / Td> & Lt; & Lt; / Td> & Lt; TD & gt; {$ Row ['location']} & lt; / Td> & Lt; Td> / TR & gt; \ N ";}}?
& lt; td onclick = "this.innerHTML = Math.abs (ParseInt (this.inner HTML) - 1); "& Gt; 0
Comments
Post a Comment