Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 16th December 2019, 20:19
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 172
Default Delete News
Hello all,


how can I change this code to work, cant delete news. Thanks for help


Code:
            stderr("Error...", "You are about to delete staff news " . $ar["title"] . ", if you're sure <a href=\"" . $_SERVER["PHP_SELF"] . "?do=delete&amp;id=$id&amp;sure=yes\">click here</a>");

Click the image to open in full size.
Reply With Quote
  #2  
Old 16th December 2019, 21:06
Napon Napon is offline
Banned
 
Join Date: Feb 2016
P2P
Posts: 522
Default
change the link <a href=\ too <a href="" so on its the a link needs doing

Code:
<a href=?action=delete&newsid=$newsid&returnto=$returnto&sure=1>here</a>
what code are u using shell we say Platform

Last edited by Napon; 16th December 2019 at 21:20.
Reply With Quote
  #3  
Old 16th December 2019, 21:29
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 172
Default
must be like this


PHP Code:
        if ($sure == "no")            stderr("Paznja...""You are about to delete staff news " $ar["title"] . ", if you're sure <a href="" . $_SERVER["PHP_SELF"] . "?do=delete&amp;id=$id&amp;sure=yes">click here</a>",false); 
Reply With Quote
  #4  
Old 16th December 2019, 21:45
Napon Napon is offline
Banned
 
Join Date: Feb 2016
P2P
Posts: 522
Default
what code are u using shell we say Platform#


also u using old code
Reply With Quote
  #5  
Old 16th December 2019, 22:05
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 172
Default
used a TS 2.5 by xam
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 10:49. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.