Category : function

I am working on this system where people can upload posts but for some reason whenever I try using my delete function it doesn’t work can anyone help me out? This is my button <?php while($row = mysqli_fetch_assoc($res)){ $location = $row[‘video_location’];?> <a href="delete.php?id=<?=$row[‘id’];?>">Delete</a> <?php }?> Ignore the fact that some of the code is unrelated. ..

Read more

My one file called function file has below code <?php ini_set(‘display_errors’, 1); error_reporting(E_ALL); function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } function head_link() { include ‘db.php’; $get_link = $con->prepare("select * from contact"); $get_link->setFetchMode(PDO::FETCH_ASSOC); $get_link->execute(); $row = $get_link->fetch(); } And my header.php has <?php include ‘function.php’; //function for registration ..

Read more

I am wondering how to add a code to automatically send a copy as conformation to the sender. I need this code to send a exact copy to sender’s email. I would appratite very much if someone can help. $nome = $_POST[‘nome’]; $emaill = $_POST[’email’]; $to = "[email protected]"; $boundary = "XYZ-".md5(date("dmYis"))."-ZYX"; $headers = "MIME-Version: 1.0" ..

Read more

I am trying to make a field that AutomateWoo creates on the Register box (located on My Account page when not logged in) to be required. I don’t want people to be able to register without ticking this box. The box is an optin and displays as follows: <p class="automatewoo-optin form-row"> <label class="woocommerce-form__label woocommerce-form__label-for-checkbox checkbox"> ..

Read more

I have the following codes that needs to be re used a few places. echo ‘<div class="card"> <div class="card-body">’; $tagQueryMloBoard = "SELECT * FROM mlotable t JOIN plannertags n on t.plannerTagsId = n.srNumber WHERE t.currentSection = ’13’ AND t.completedSection = ‘1’ ORDER BY n.deliveryDate ASC"; $tagQueryMloBoardExecute = mysqli_query($conn, $tagQueryMloBoard); $openItems = mysqli_num_rows($tagQueryMloBoardExecute); echo ‘<h5 class="card-title">Board ..

Read more

Tried the below code. All I can ever get is "not working". bp_is_my_profile(); //this is a Boolean. echo bp_is_my_profile(); // this echo’s out either one or nothing depending on true or false. if ($bp_is_my_profile === "true") { // I’ve tried putting in numbers one and zero. echo "Have a good morning!"; } elseif ($bp_is_my_profile === ..

Read more