php - My FOR loop wont bring the data from the table -
I am building a room booking system and this piece of code is to fetch data from my table < For the former> You have a <<> > ($ period = 1; $ period & lt; 6: $ period ++) {resonant "<"> $ Period "& Lt; / td>"; $ Rooms = 0; $ Room & lt; Size ($ rooms_are); $ Rooms ++) {$ sql = "select-from where room id =" ". $ Rooms_array [$ room]". '' And period = '' $. Period. '' And date = '"$ sent."' '; // execute SQL query $ result = sqlite_query ($ con, $ sql); if ($ result = 0) {Resonates & lt; Td> & Lt; / Td> ";} {Echo" & lt; Td> Boxcade & lt; post-text "itemprop =" text ">
Comments
Post a Comment