May you help to correct this?

|
emiljoshy 2021-01-01 23:40:37
luv_php-27362.jpg
Not working, I think relative is taking viewport from div…that from that purple line
A 2021-01-02 03:37:04
I need help in putting ads code please
waitingisbig 2021-01-02 05:54:30
Does anyone know how to connect private ETH network to Iquidus explorer
waitingisbig 2021-01-02 05:54:40
Please help me
emiljoshy 2021-01-02 07:11:09
But in display flex can I set hieght to flex boxx
DrChintanvora 2021-01-02 08:26:29
We are looking for PHP developer in Mumbai (On project based work and WFH profile) with a knowledge of plug-ins.

Kindly ping me personally.

balu904 2021-01-02 13:25:30
Where can open list of PHP notes
rohit267 2021-01-02 14:39:09
balu904 2021-01-02 13:25:30
Where can open list of PHP notes

/get php_docs

Acird Burn 2021-01-02 16:08:04
We are looking out for a freelance reactjs developer whose able to work on low budgets to handle all of our Front-end development we have 10+ projects for the person to work on must be fast at getting work done and able to deliver quality quickly
abhisekkarmakar 2021-01-02 20:26:52
<?php
include(“config.php”);
?>
<form action=”” method=”POST”>
<div class=”mb-2″>

<input name=”heading” class=”form-control form-control-lg” type=”text” placeholder=”Your story heading is…” aria-label=”default input example”>

</div>
<div class=”mb-2″>

<input name=”author” class=”form-control form-control-sm” type=”text” placeholder=” Author Name is..” aria-label=”.form-control-sm example”>
</div>
<div id=”emailHelp” class=”form-text”>Post a shorts story to attract reader.</div>
<div class=”mb-2″>
<input name=”sstories” class=”form-control form-control-lg” type=”text” placeholder=”Short Part of story ” aria-label=”.form-control-lg example”>
</div>
<div class=”mb-2″>
<label for=”formFileSm” class=”form-label”>Front story image</label>
<input name=”image1″ class=”form-control form-control-sm” id=”formFileSm” type=”file”>
</div>
<div class=”mb-2″>
<label for=”formFileSm” class=”form-label”>Other story image</label>
<input name=”image2″ class=”form-control form-control-sm” id=”formFileSm” type=”file”>
</div>
<div class=”mb-3″>
<label for=”exampleFormControlTextarea1″ class=”form-label”>Full story</label>
<textarea class=”form-control” name=”story” id=”exampleFormControlTextarea1″ rows=”3″></textarea>
</div>

<select name=”category” class=”form-select form-select-sm” aria-label=”.form-select-sm example”>
<option selected >Select story Category</option>
<option value=”Technology”>Technology</option>
<option value=”Sports”>Sports</option>
<option value=”Foods”>Foods</option>
</select>
<button type=”submit” name=”submit”class=”btn btn-primary”>Post</button>
</form>
</div>
<?php
if(isset($_POST[‘submit’]))
$heading=$_POST[‘heading’];
$sstories=$_POST[‘sstories’];
$author=$_POST[‘author’];
$story=$_POST[‘story’];
$image1=$_POST[‘image1’];
$image2=$_POST[‘image2’];
$category=$_POST[‘category’];
$query=”INSERT INTO ‘news’ (category, image1, image2, heading, author, sstories, story, tags,) VALUES(‘$heading’,’$sstories’,’$author’,’$story’,’$image1′,’$image2′,’$category’)”;
$data=mysqli_query($conn,$query);
if($data)
{
echo “Data inserted into Database”;
}else{
echo “Data not inserted”;
}
?>
the code is not work properly. may you help to correct this ?

2021-01-02 23:17:27
can anyone help me MlM project
rohit267 2021-01-03 06:47:42
abhisekkarmakar 2021-01-02 20:26:52
<?php
include(“config.php”);
?>
<form action=”” method=”POST”>
<div class=”mb-2″>

<input name=”heading” class=”form-control form-control-lg” type=”text” placeholder=”Your story heading is…” aria-label=”default input example”>

</div>
<div class=”mb-2″>

<input name=”author” class=”form-control form-control-sm” type=”text” placeholder=” Author Name is..” aria-label=”.form-control-sm example”>
</div>
<div id=”emailHelp” class=”form-text”>Post a shorts story to attract reader.</div>
<div class=”mb-2″>
<input name=”sstories” class=”form-control form-control-lg” type=”text” placeholder=”Short Part of story ” aria-label=”.form-control-lg example”>
</div>
<div class=”mb-2″>
<label for=”formFileSm” class=”form-label”>Front story image</label>
<input name=”image1″ class=”form-control form-control-sm” id=”formFileSm” type=”file”>
</div>
<div class=”mb-2″>
<label for=”formFileSm” class=”form-label”>Other story image</label>
<input name=”image2″ class=”form-control form-control-sm” id=”formFileSm” type=”file”>
</div>
<div class=”mb-3″>
<label for=”exampleFormControlTextarea1″ class=”form-label”>Full story</label>
<textarea class=”form-control” name=”story” id=”exampleFormControlTextarea1″ rows=”3″></textarea>
</div>

<select name=”category” class=”form-select form-select-sm” aria-label=”.form-select-sm example”>
<option selected >Select story Category</option>
<option value=”Technology”>Technology</option>
<option value=”Sports”>Sports</option>
<option value=”Foods”>Foods</option>
</select>
<button type=”submit” name=”submit”class=”btn btn-primary”>Post</button>
</form>
</div>
<?php
if(isset($_POST[‘submit’]))
$heading=$_POST[‘heading’];
$sstories=$_POST[‘sstories’];
$author=$_POST[‘author’];
$story=$_POST[‘story’];
$image1=$_POST[‘image1’];
$image2=$_POST[‘image2’];
$category=$_POST[‘category’];
$query=”INSERT INTO ‘news’ (category, image1, image2, heading, author, sstories, story, tags,) VALUES(‘$heading’,’$sstories’,’$author’,’$story’,’$image1′,’$image2′,’$category’)”;
$data=mysqli_query($conn,$query);
if($data)
{
echo “Data inserted into Database”;
}else{
echo “Data not inserted”;
}
?>
the code is not work properly. may you help to correct this ?

tell the error

abhisekkarmakar 2021-01-03 09:35:34
rohit267 2021-01-03 06:47:42
tell the error

Notice: Undefined index: sstories in C:xampphtdocsblogpostform.php on line 7

Notice: Undefined index: author in C:xampphtdocsblogpostform.php on line 8

Notice: Undefined index: story in C:xampphtdocsblogpostform.php on line 9

Notice: Undefined index: image1 in C:xampphtdocsblogpostform.php on line 10

Notice: Undefined index: image2 in C:xampphtdocsblogpostform.php on line 11

Notice: Undefined index: category in C:xampphtdocsblogpostform.php on line 12

Notice: Undefined variable: heading in C:xampphtdocsblogpostform.php on line 13

abhisekkarmakar 2021-01-03 09:38:04
rohit267 2021-01-03 06:47:42
tell the error

and data does not insert in database

kameshindore 2021-01-03 09:39:27
abhisekkarmakar 2021-01-03 09:38:04
and data does not insert in database

Show the code

abhisekkarmakar 2021-01-03 09:40:18
kameshindore 2021-01-03 09:39:27
Show the code

<?php
include(“config.php”);
?>
<form action=”” method=”POST”>
<div class=”mb-2″>

<input name=”heading” class=”form-control form-control-lg” type=”text” placeholder=”Your story heading is…” aria-label=”default input example”>

</div>
<div class=”mb-2″>

<input name=”author” class=”form-control form-control-sm” type=”text” placeholder=” Author Name is..” aria-label=”.form-control-sm example”>
</div>
<div id=”emailHelp” class=”form-text”>Post a shorts story to attract reader.</div>
<div class=”mb-2″>
<input name=”sstories” class=”form-control form-control-lg” type=”text” placeholder=”Short Part of story ” aria-label=”.form-control-lg example”>
</div>
<div class=”mb-2″>
<label for=”formFileSm” class=”form-label”>Front story image</label>
<input name=”image1″ class=”form-control form-control-sm” id=”formFileSm” type=”file”>
</div>
<div class=”mb-2″>
<label for=”formFileSm” class=”form-label”>Other story image</label>
<input name=”image2″ class=”form-control form-control-sm” id=”formFileSm” type=”file”>
</div>
<div class=”mb-3″>
<label for=”exampleFormControlTextarea1″ class=”form-label”>Full story</label>
<textarea class=”form-control” name=”story” id=”exampleFormControlTextarea1″ rows=”3″></textarea>
</div>

<select name=”category” class=”form-select form-select-sm” aria-label=”.form-select-sm example”>
<option selected >Select story Category</option>
<option value=”Technology”>Technology</option>
<option value=”Sports”>Sports</option>
<option value=”Foods”>Foods</option>
</select>
<button type=”submit” name=”submit”class=”btn btn-primary”>Post</button>
</form>
</div>
<?php
if(isset($_POST[‘submit’]))
$heading=$_POST[‘heading’];
$sstories=$_POST[‘sstories’];
$author=$_POST[‘author’];
$story=$_POST[‘story’];
$image1=$_POST[‘image1’];
$image2=$_POST[‘image2’];
$category=$_POST[‘category’];
$query=”INSERT INTO ‘news’ (category, image1, image2, heading, author, sstories, story, tags,) VALUES(‘$heading’,’$sstories’,’$author’,’$story’,’$image1′,’$image2′,’$category’)”;
$data=mysqli_query($conn,$query);
if($data)
{
echo “Data inserted into Database”;
}else{
echo “Data not inserted”;
}
?>

kameshindore 2021-01-03 09:45:18
Share connection file also
kameshindore 2021-01-03 09:46:04
Also for ur info files can’t be stored like that. U have to use multipart
abhisekkarmakar 2021-01-03 09:47:02
kameshindore 2021-01-03 09:45:18
Share connection file also

<?php
/*
This file contains database configuration assuming you are running mysql using user “root” and password “”
*/

define(‘DB_SERVER’, ‘localhost’);
define(‘DB_USERNAME’, ‘root’);
define(‘DB_PASSWORD’, ”);
define(‘DB_NAME’, ‘db_blog’);

// Try connecting to the Database
$conn = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);

//Check the connection
if($conn == false){
dir(‘Error: Cannot connect’);
}

?>

kameshindore 2021-01-03 09:48:33
<?php
/*
This file contains database configuration assuming you are running mysql using user “root” and password “”
*/

define(‘DB_SERVER’, ‘localhost’);
define(‘DB_USERNAME’, ‘root’);
define(‘DB_PASSWORD’, ”);
define(‘DB_NAME’, ‘db_blog’);

// Try connecting to the Database
$conn = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);

//Check the connection
if(!$conn){
die(‘Error: Cannot connect’);
}

?>

kameshindore 2021-01-03 09:48:48
Use this file and tell me if any db error found
abhisekkarmakar 2021-01-03 09:50:01
kameshindore 2021-01-03 09:48:33
<?php
/*
This file contains database configuration assuming you are running mysql using user “root” and password “”
*/

define(‘DB_SERVER’, ‘localhost’);
define(‘DB_USERNAME’, ‘root’);
define(‘DB_PASSWORD’, ”);
define(‘DB_NAME’, ‘db_blog’);

// Try connecting to the Database
$conn = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);

//Check the connection
if(!$conn){
die(‘Error: Cannot connect’);
}

?>

ok thank you very much

kameshindore 2021-01-03 09:57:44
abhisekkarmakar 2021-01-03 09:50:01
ok thank you very much

You there?

kameshindore 2021-01-03 09:58:51
abhisekkarmakar 2021-01-03 09:40:18
<?php
include(“config.php”);
?>
<form action=”” method=”POST”>
<div class=”mb-2″>

<input name=”heading” class=”form-control form-control-lg” type=”text” placeholder=”Your story heading is…” aria-label=”default input example”>

</div>
<div class=”mb-2″>

<input name=”author” class=”form-control form-control-sm” type=”text” placeholder=” Author Name is..” aria-label=”.form-control-sm example”>
</div>
<div id=”emailHelp” class=”form-text”>Post a shorts story to attract reader.</div>
<div class=”mb-2″>
<input name=”sstories” class=”form-control form-control-lg” type=”text” placeholder=”Short Part of story ” aria-label=”.form-control-lg example”>
</div>
<div class=”mb-2″>
<label for=”formFileSm” class=”form-label”>Front story image</label>
<input name=”image1″ class=”form-control form-control-sm” id=”formFileSm” type=”file”>
</div>
<div class=”mb-2″>
<label for=”formFileSm” class=”form-label”>Other story image</label>
<input name=”image2″ class=”form-control form-control-sm” id=”formFileSm” type=”file”>
</div>
<div class=”mb-3″>
<label for=”exampleFormControlTextarea1″ class=”form-label”>Full story</label>
<textarea class=”form-control” name=”story” id=”exampleFormControlTextarea1″ rows=”3″></textarea>
</div>

<select name=”category” class=”form-select form-select-sm” aria-label=”.form-select-sm example”>
<option selected >Select story Category</option>
<option value=”Technology”>Technology</option>
<option value=”Sports”>Sports</option>
<option value=”Foods”>Foods</option>
</select>
<button type=”submit” name=”submit”class=”btn btn-primary”>Post</button>
</form>
</div>
<?php
if(isset($_POST[‘submit’]))
$heading=$_POST[‘heading’];
$sstories=$_POST[‘sstories’];
$author=$_POST[‘author’];
$story=$_POST[‘story’];
$image1=$_POST[‘image1’];
$image2=$_POST[‘image2’];
$category=$_POST[‘category’];
$query=”INSERT INTO ‘news’ (category, image1, image2, heading, author, sstories, story, tags,) VALUES(‘$heading’,’$sstories’,’$author’,’$story’,’$image1′,’$image2′,’$category’)”;
$data=mysqli_query($conn,$query);
if($data)
{
echo “Data inserted into Database”;
}else{
echo “Data not inserted”;
}
?>

You messed up with the query. I won’t work at all

kameshindore 2021-01-03 09:58:59
dm me if any help is requried.
Harikrishnan5494 2021-01-03 10:00:04
kameshindore 2021-01-03 09:48:33
<?php
/*
This file contains database configuration assuming you are running mysql using user “root” and password “”
*/

define(‘DB_SERVER’, ‘localhost’);
define(‘DB_USERNAME’, ‘root’);
define(‘DB_PASSWORD’, ”);
define(‘DB_NAME’, ‘db_blog’);

// Try connecting to the Database
$conn = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);

//Check the connection
if(!$conn){
die(‘Error: Cannot connect’);
}

?>

Hey just put { } brackets on if

Harikrishnan5494 2021-01-03 10:00:21
It will work
kameshindore 2021-01-03 10:02:20
abhisekkarmakar 2021-01-03 09:50:01
ok thank you very much

This is working connection file, so no changes required in connection. You need to refractor your sql queries.

kameshindore 2021-01-03 10:03:26
kameshindore 2021-01-03 09:58:51
You messed up with the query. I won’t work at all

It*

abhisekkarmakar 2021-01-03 10:04:06
kameshindore 2021-01-03 10:02:20
This is working connection file, so no changes required in connection. You need to refractor your sql queries.

Yaah! I am going to recode the queries

kameshindore 2021-01-03 10:05:14
abhisekkarmakar 2021-01-03 10:04:06
Yaah! I am going to recode the queries

Fine. I think ur learning php, so start with small things, as of now remove file upload thing and do the simple db entries.

Harikrishnan5494 2021-01-03 10:05:47
abhisekkarmakar 2021-01-03 09:35:34
Notice: Undefined index: sstories in C:xampphtdocsblogpostform.php on line 7

Notice: Undefined index: author in C:xampphtdocsblogpostform.php on line 8

Notice: Undefined index: story in C:xampphtdocsblogpostform.php on line 9

Notice: Undefined index: image1 in C:xampphtdocsblogpostform.php on line 10

Notice: Undefined index: image2 in C:xampphtdocsblogpostform.php on line 11

Notice: Undefined index: category in C:xampphtdocsblogpostform.php on line 12

Notice: Undefined variable: heading in C:xampphtdocsblogpostform.php on line 13

luv_php-27444.jpg
Like this

abhisekkarmakar 2021-01-03 10:07:03
Harikrishnan5494 2021-01-03 10:05:47
Like this

ok

abhisekkarmakar 2021-01-03 10:08:02
kameshindore 2021-01-03 10:05:14
Fine. I think ur learning php, so start with small things, as of now remove file upload thing and do the simple db entries.

Ok..

emiljoshy 2021-01-03 21:47:33
luv_php-27452.jpg

|