我觉得我错过了一些简单的东西。如何使用rowFormatter的奶酪示例正是我想要实现的东西,除了我想添加各种附加列之外…… 我注意到了it is important to include only one column in yourcolumn definition array to ensure the table renders correctly的警告,但这正是我想要做的。因此,我尝试向表构造函数添加另一个列</em
我有一个名为'buddies‘的表,它有三列: user1、user2、pending。User1将是两个伙伴中的一个,user2将是另一个伙伴。如何选择唯一不是其自己用户的列( user1或user2)。我当前的代码是
$sql="SELECT * FROM buddies WHERE user1='$username' OR user2='$username' AND pending='1'";