Customizing SMF > SMF Coding Discussion
createPost - Call-time pass-by-reference has been deprecate error
live627:
ok then... is the above code within a function?
mpglivecarlo:
nope, just in a plain php file that is called using the form using the link
--- Code: ---<form action="scripts/inter.php?ac=post" method="post" enctype="multipart/form-data">
<input type="hidden" name="brd" value="<?php echo $id_board ?>" />
<input type="hidden" name="tpc" value="<?php echo $id_topic ?>" />
<input type="hidden" name="id" value="<?php echo $id_msg ?>" />
<table>
<tr>
<td><b>comment:</b></td>
<td><textarea type="text" name="msg" cols="65" rows="3" /></textarea></td>
<td><input type="submit" name="submit" value="Send" class="publicar-empresa" /></td>
</tr>
</table>
</form>
--- End code ---
Arantor:
And what's that PHP? We don't really care too much about the form, but we do care about the code that you've written which calls createPost... ;)
mpglivecarlo:
OK, as I said code is inside a simple php file that calls the ssi.php, and the subs-post.php to make the post.
the lines on top of the code i posted are just
--- Code: ---require_once('../../forum/SSI.php');
mysql_select_db('my_database');
--- End code ---
and thats it, it is weird that its not working now because on another website i used the same procedure and works fine. maybe php version (its PHP Version 5.3.8 )?
Arantor:
Seriously, please just post the entire damn file. The problem is related to how you're setting up and calling createPost. But since you're unable or unwilling to post the actual code itself that's broken, I'm unable or unwilling to help you!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version