Server Side processing
Server Side processing
Hello, if i have a table with lets say a colum that has a data "2" but "2" is a reference on another table like if 2 is Name.
How can i make it display the name an not the number 2..
Table 1 (this is how it displays it)
| Id | name | last_name | area |
| 1 | 23 | 53 | 51 |
table 2
| Id | name_id | name |
| 1 | 23 |Steve |
table 3
| Id | name_id | last_name |
| 1 | 53 | Butabi |
table 4
| Id | area_id | name |
| 1 | 51 |Home |
table 5 ( this is how i want it to be shown)
| Id | name | last_name | area |
| 1 | Steve | Butabi |Home|
thanks...
Answers
Sounds like you want to do this?
hello, Igni yes i would like to do something like that but on server side processing.
what changes would i have to make on the file server_processing.php?
Your columns array in server_processing.php should look like this:
Then in ssp.class.php you can add this inside the
simple
function, before$data
is set.Then in that same function where
$data
is set to the SQL query, changeFROM '$table'
toFROM ($subquery)
with no tilde or quotes.thnx Igni for the constant help you have given.. im still kinda confuse... so ill put exactly my tables and columns of my query and thanx again for the help.
this is what i see when i render the table
call_name makes reference to table site_clientes
date (actually i dont know how to transform to normal date
call_details (is ok)
call_staff and call user makes reference to table site_users
this is what should be the result
thanx again
btw i dont have ssp.class.php it makes everything on the server_processing.php file