我无法正常使用此代码。 这是我的manageclients.php 如何将点击的用户ID传递给URL,以便我可以执行删除查询? 当我执行此操作时,没有任何反应,如果我在表查询下移动if语句,它可以工作,但它会删除我的所有表行。
with open(filename, 'r') as myfile:
with open("copy", 'w') as newfile:
for line in myfile:
newline = "appended_text" + "," + line
newfile.write(newline)
os.rename("copy", filename)
从这个atm开始头疼。
答案 0 :(得分:0)
试试这个
var ypos = 20 // initial y position for first UI Controller
ypos = ypos + uiheight // Dynamic incrementing of y position of other UIView with respect to the height of the previous UIView.
let DynamicView=UIView(frame: CGRectMake(100, ypos, 100, uiheight))
DynamicViews.backgroundColor=UIColor.greenColor()
DynamicViews.layer.cornerRadius=25
DynamicViews.layer.borderWidth=2
self.view.addSubview(DynamicView)
let DynamicViews=UIView(frame: CGRectMake(100, ypos, 100, uiheight))
DynamicView.backgroundColor=UIColor.greenColor()
DynamicView.layer.cornerRadius=25
DynamicView.layer.borderWidth=2
self.view.addSubview(DynamicViews)
let DynamicView2=UIView(frame: CGRectMake(100, ypos, 100, uiheight))
DynamicView2.backgroundColor=UIColor.greenColor()
DynamicView2.layer.cornerRadius=25
DynamicView2.layer.borderWidth=2
self.view.addSubview(DynamicView2)
答案 1 :(得分:-1)
您必须设置变量$ ID
$ ID = $ _GET ['DeleteID'];