SpellcasterDX
Only this time, I need a couple of pieces of code fixed, and I also need to know where they would go.
I need that code fixed, cause it appears to be mis-coded.
^I also need that piece re-coded, cause it seems mis-coded as well.
The last part I need help on is adding those 2 pieces of code above into this file:
Could someone please help?
| Code: |
| if($quote == "t" && $postid){
$sql = "SELECT * FROM ".TABLE_POSTS." WHERE ID = '$postid'"; $exe = runQuery($sql); $row = fetchResultArray($exe); //then you'd just grab the body from the selected field $body = $row[body] //You don't have to make a body variable, but who cares, right? i made it required in the next step, so leave it i guess } |
I need that code fixed, cause it appears to be mis-coded.
| Code: |
| if($body){
//means there is quoted text, so display the quoted text in the textarea inputtextarea(w/e, w/e) }else{ //blank text area, so it's without quoted text, regular reply inputtextarea(w/e, w/e) } |
^I also need that piece re-coded, cause it seems mis-coded as well.
The last part I need help on is adding those 2 pieces of code above into this file:
| Code: |
| <?
$postform = " <SPAN CLASS='InputSection'>Subject</SPAN><BR> ".inputText("subject", $subject, 60)." <P> <SPAN CLASS='InputSection'>Body</SPAN><BR> <HR> ".inputTextArea("body", $body, 75, 15, "", "", "", "linewrapfix")."<BR> <SPAN STYLE='font-size: 8pt;'>Special <A HREF='help.php?action=faq#htmlcodes' TARGET='_blank'>mark-up codes</A> are allowed to be used on this board</SPAN> <P> <SPAN STYLE='font-size: 8pt;'><font color=darkred>Please read the <A HREF='tos.php'>Terms Of Service</A> before posting. By pressing the POST button below, you are agreeing to the</font color> <A HREF='tos.php'>TOS</A>.</SPAN> <P> "; ?> |
Could someone please help?
