how to hide the delete button in a particular row?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
josecnp1
User
Posts: 73

how to hide the delete button in a particular row?

Post by josecnp1 »

if I have as reference id_propiedades = 1
I've tried with this code

function ListOptions_Rendered() {
$clvr = ew_ExecuteScalar("SELECT id_propiedades FROM propiedades WHERE id_propiedades LIKE '%' ORDER BY id_propiedades ASC LIMIT 1");
if(@$clvr == 1){
$this->ListOptions->Items["delete"]->Body = "";
}
}

but it hides all row.


scs
User
Posts: 694

Post by scs »

josecnp1 wrote:
$clvr = ew_ExecuteScalar("SELECT id_propiedades FROM propiedades WHERE id_propiedades
LIKE '%' ORDER BY id_propiedades ASC LIMIT 1");

Have you try the above syntax in command line and see what is the return value?

WHERE id_propiedades LIKE '%' <== not understand what condition you require here

And I check variable using $var, but you prefer is @$var. Not sure what is the different here too.


Post Reply