Skip to content

Tag: mysql

Show a text depending on the value of a column MySQL

I would like to know, how can I build a query that shows me an extra column where instead of showing the true value of the original column it shows me the text that i want? For example, The Column, in this case “inputOutput”, save values ​​0 or 1, and I would like to show in a query that if

Reverse Table rows in While Loop

I am appending rows to a table that has pagination. My db query sorts by ASC which is what I need but the order of records should be reversed on each page. So the first page should be the newest …

FPDF: Add Comment at the last page

Currently, I created a system that can generate data from MySQL to pdf. The arrangement of data that display to the pdf is: 1) The first page will display only 1 data rows 2) 2nd Page onwards will …