Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addNewsItem($newsTitle, $newsSlug, $newsIntro, $newsStorry){
- $tools = new toolbox();
- $sendNewsItemToDB = "INSERT INTO tblNews (newsTitle,newsSlug,newsIntro,newsStorry) VALUES ('".$newsTitle."','".$newsSlug."','".$newsIntro."','".$newsStorry."')";
- echo $sendNewsItemToDB;
- $result = $tools->executeSqlQuery($sendNewsItemToDB);
- if ($sendNewsItemToDB($sql) === TRUE) {
- echo "New record created successfully";
- } else {
- echo "Error: " . $sql . "<br>" . $conn->error;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement