| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 4291|Reply: 1
Collapse the left

Edit post bug

[Copy link]

 Taiwan

Post time: 2012-03-28 10:04
| Show all posts |Read mode
Rev. 381

Can't edit any posts.
show mysql error!

File: source/include/post/post_editpost.php  Line:16-20

  1. $orig = DB::fetch_first("SELECT m.adminid, p.first, p.authorid, p.author, p.dateline, p.anonymous, p.invisible, p.htmlon FROM ".DB::table($posttable)." p
  2. LEFT JOIN ".DB::table('common_member')." m ON m.uid=p.authorid
  3. WHERE pid='$pid' AND tid='$_G[tid]' AND fid='$_G[fid]'");
Copy the Code
Lost this line $posttable = getposttablebytid($_G['tid']);
Should be.

  1. $posttable = getposttablebytid($_G['tid']);
  2. $orig = DB::fetch_first("SELECT m.adminid, p.first, p.authorid, p.author, p.dateline, p.anonymous, p.invisible, p.htmlon FROM ".DB::table($posttable)." p
  3. LEFT JOIN ".DB::table('common_member')." m ON m.uid=p.authorid
  4. WHERE pid='$pid' AND tid='$_G[tid]' AND fid='$_G[fid]'");
Copy the Code

 Russia

Post time: 2012-03-28 11:00
| Show all posts
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-23 16:30 GMT+3 , Processed in 0.031568 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list