Комментарии:
Simple and effective , thank you bro !!!!
ОтветитьThank you Bro
ОтветитьLegend bro!
Ответитьyou saved my life bro
ОтветитьAMEN thanks
ОтветитьThis video shows you how to use an if statement. Not a function. Not usable with OOP PHP.
ОтветитьHi can you tell our how make button for delete row in mysql please
Ответитьjust a tip its not a description, a comments tatw93 and your videos are good and keep going forward .....
Ответитьthis is my code. It doesn't work . same like your . my database table wp_books
<?php
/*
Template Name: Book Registration Form
*/
get_header();
?>
<div class="container page-section">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main"
<?php
if (isset($_POST['submitbtn']))
{
echo "<script>alert('entered function');</script>";
global $wpdb;
$wpdb->insert($wpdb->prefix.books,
[
'title' => 'This is first insert'
]
);
if ($result==1){
echo "<script>alert('Book Saved');</script>";
}else{
echo "<script>alert('Unable to Save');</script>";
}
echo $wpdb->show_errors();
}
?>
<form method="post">
<div class="form-group">
<input id="title" name"title" type="text" placeholder="Book Title" class="form-control">
</div>
<div class="row justify-content-center">
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="submit" value="Submit" name="submitbtn">
</div>
</div>
</form>
</main>
</div>
</div>
Are you using a Wordpress engine? Where is the Wordpress panel and where does that code fit?
Ответитьhey! if just call a function?
like u video do?
here's my problem:
<?php
if(isset($_POST['ab1']))
{
echo "<script type='text/javascript'>";
echo "console.log('yes');";
echo "</script>";
sendready("0",$myid);
}
?>
<form method="post">
<input type="submit" class="mainbut" name="ab1" id="ab1" value="learn"></input>
</form>
i want to click this and show me the console and something else,but nothing happen
not console or error
how fix it? or i wrong to use?
How Can I call that with parameters? Thanks
Ответить"im sick of this hello world" lmaoooo.. great video btw!!
Ответить