egturnkey Posted February 20, 2010 Share Posted February 20, 2010 Hello friends, i just trying to me a simple cms where index.php ( output ) add.php ( input ) page title/page content ( only one form ) when i do add page title/page content it gives error atal error: Call to undefined function executeupdate() on line 6 here is the code ( it shows error here ) <? $pagetitle=$_POST['pagetitle']; $pagehtml=$_POST['pagehtml']; $sql= "insert into pages set pagetitle='$pagetitle', pagehtml='$pagehtml'"; executeupdate($sql); $msg= "New Page Added"; session_register('msg'); header("Location: addpage_frm.php "); exit; ?> and html code ( where config.inc.php ) connect the dp <? include "../config.inc.php"; ?> <table> <form action="addpage.php" method="post"> <tr> <td width="41%" height="36" align="right">Page Title</td> <td width="59%"><input name="pagetitle" type="text" id="pagetitle"></td> </tr> <tr> <td><div align="right">HTML Content</div></td> <td><textarea name="pagehtml" rows="10" cols="30"></textarea></td> </tr> <tr> <td width="41%"></td> <td width="59%"><font color="#FFFFFF"> <input type="submit" name="Submit" value="Add Now"> </font></strong></font></td> </tr> </form> </table> Link to comment https://forums.phpfreaks.com/topic/192733-simple-input-form-giving-error-on-insert/ Share on other sites More sharing options...
patheticsam Posted February 20, 2010 Share Posted February 20, 2010 do you want to update an existing entry or simply add a new one? Link to comment https://forums.phpfreaks.com/topic/192733-simple-input-form-giving-error-on-insert/#findComment-1015278 Share on other sites More sharing options...
egturnkey Posted February 20, 2010 Author Share Posted February 20, 2010 do you want to update an existing entry or simply add a new one? thanks for reply, i just want add a new one Link to comment https://forums.phpfreaks.com/topic/192733-simple-input-form-giving-error-on-insert/#findComment-1015280 Share on other sites More sharing options...
sader Posted February 20, 2010 Share Posted February 20, 2010 U forget include file where function executeupdate() is defined or u misspelled function name maybe it's called execute_update() or ExecuteUpdate() Link to comment https://forums.phpfreaks.com/topic/192733-simple-input-form-giving-error-on-insert/#findComment-1015283 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.