Can u tell me the plan to learn php?

|
DeepakThakurJsr 2021-03-27 18:22:02
luv_php-30314.jpg

DeepakThakurJsr 2021-03-27 18:22:03
luv_php-30318.jpg

DeepakThakurJsr 2021-03-27 18:22:03
luv_php-30317.jpg

DeepakThakurJsr 2021-03-27 18:22:03
luv_php-30316.jpg

DeepakThakurJsr 2021-03-27 18:22:04
Please code it
2021-03-27 19:51:23
laravel_hindi
2021-03-27 19:53:42
How to use eval() safe
How can it be dangerous
unknown_pilot_ktm 2021-03-27 19:56:12
PHP developer DM me for paid small work
Marwa Ahmed 2021-03-27 20:10:09
Can u tell me the plan to learn php?
Tushar Waghmare 2021-03-27 20:10:49
Php project hai kya kisi ke pass
Acird Burn 2021-03-28 00:06:42
We are looking out for an experienced Front-end developer that has worked with reactjs to help towards a development of a couple of backend dashboards built up in html bootstrap and reactjs your task is mainly to handle all the api development and making all designs ready for Front-end well documented up for backend development designer must be a full time freelancer and must be very fast at getting work done with Front-end
Kritesh Tiwari 2021-03-28 06:07:33
Guys I have query
I have three records in table
Every records have multiple data into another table but my issue is I want show the data serial wise like example
A, B, C
This is three record
A1, A2
B1, B2
C1, C2
This record link to A, B, C
Suresh 2021-03-28 06:24:06
Hi friends login biometric attendance system in php Do I need any one help
abhisekkarmakar 2021-03-28 10:13:00
Please help the code does not work…
abhisekkarmakar 2021-03-28 10:13:17
<?php
if (isset($_POST[‘upload’])){
$book= $_POST[‘book’];
$author=$_POST[‘author’];
$about=$_POST[‘about’];
$story=$_POST[‘story’];
$file=$_FILES[‘file’];
$filename=$_file[‘name’];
$fileerror=$files[‘error’];
$filetmp=$file[‘tmp_name’];
$fileext=explode(‘.’,$filename);
$filecheck=strtolower(end($fileout));
$fileextstored= array(‘png’,’jpg’,’jpeg’);
if(in_array($filecheck,$fileextstored)){
$destinationfile=”images/”.$filename;
move_uploaded_file($filetmp,$destinationfile);
$q=”INSERT INTO books(image, heading, author, about, story) VALUES (‘$destinationfile’,’$book’,’$author’,’$about’,’$story’)”;
$query= mysqli_query($conn,$q);

if (move_uploaded_file($_FILES[‘image’][‘tmp_name’], $target)) {
$msg = “Image uploaded successfully”;
}else{
$msg = “Failed to upload image”;
}
}
}

?>

raj_eswar 2021-03-28 10:13:41
abhisekkarmakar 2021-03-28 10:13:17
<?php
if (isset($_POST[‘upload’])){
$book= $_POST[‘book’];
$author=$_POST[‘author’];
$about=$_POST[‘about’];
$story=$_POST[‘story’];
$file=$_FILES[‘file’];
$filename=$_file[‘name’];
$fileerror=$files[‘error’];
$filetmp=$file[‘tmp_name’];
$fileext=explode(‘.’,$filename);
$filecheck=strtolower(end($fileout));
$fileextstored= array(‘png’,’jpg’,’jpeg’);
if(in_array($filecheck,$fileextstored)){
$destinationfile=”images/”.$filename;
move_uploaded_file($filetmp,$destinationfile);
$q=”INSERT INTO books(image, heading, author, about, story) VALUES (‘$destinationfile’,’$book’,’$author’,’$about’,’$story’)”;
$query= mysqli_query($conn,$q);

if (move_uploaded_file($_FILES[‘image’][‘tmp_name’], $target)) {
$msg = “Image uploaded successfully”;
}else{
$msg = “Failed to upload image”;
}
}
}

?>

What’s the issue

abhisekkarmakar 2021-03-28 10:14:07
<?php include “config.php”;
abhisekkarmakar 2021-03-28 10:14:27
raj_eswar 2021-03-28 10:13:41
What’s the issue

image uploading

abhisekkarmakar 2021-03-28 10:15:24
the code does not work
abhisekkarmakar 2021-03-28 10:16:16
<?php include “config.php”; if (isset($_POST[‘upload’])){
$book= $_POST[‘book’];
$author=$_POST[‘author’];
$about=$_POST[‘about’];
$story=$_POST[‘story’];
$file=$_FILES[‘file’];
$filename=$_file[‘name’];
$fileerror=$files[‘error’];
$filetmp=$file[‘tmp_name’];
$fileext=explode(‘.’,$filename);
$filecheck=strtolower(end($fileout));
$fileextstored= array(‘png’,’jpg’,’jpeg’);
if(in_array($filecheck,$fileextstored)){
$destinationfile=”images/”.$filename;
move_uploaded_file($filetmp,$destinationfile);
$q=”INSERT INTO books(image, heading, author, about, story) VALUES (‘$destinationfile’,’$book’,’$author’,’$about’,’$story’)”;
$query= mysqli_query($conn,$q);

if (move_uploaded_file($_FILES[‘image’][‘tmp_name’], $target)) {
$msg = “Image uploaded successfully”;
}else{
$msg = “Failed to upload image”;
}
}
}

?>

abhisekkarmakar 2021-03-28 10:16:43
<form method=”POST” action=”post.php” enctype=”multipart/form-data”>

<input type=”hidden” name=”size” value=”1000000″>

<label for=”formFileSm” class=”form-label”> Upload book cover</label>

<input class=”form-control form-control-sm” id=”formFileSm” type=”file” name=”image”><br>

<textarea class=”form-control” placeholder=”Book Name” id=”floatingTextarea” name=”book”></textarea><br>

<textarea class=”form-control” placeholder=”Author name” id=”floatingTextarea” name=”author”></textarea><br>

<textarea class=”form-control” placeholder=”About the book” id=”floatingTextarea” name=”about”></textarea><br>

<textarea id=”editor” name=”story” > Write your book.. </textarea> <br><br>

<button class=”submitbutton” type=”submit” name=”upload”>Submit</button>
</form>

raj_eswar 2021-03-28 10:57:13
abhisekkarmakar 2021-03-28 10:15:24
the code does not work

What is expected output

What it actually output

abhisekkarmakar 2021-03-28 11:47:57
image and text save to database
rohit267 2021-03-28 11:49:27
abhisekkarmakar 2021-03-28 11:47:57
image and text save to database

what is the error dude, cant you tell in one

abhisekkarmakar 2021-03-28 11:50:30
Undefined index
rohit267 2021-03-28 11:50:48
abhisekkarmakar 2021-03-28 11:50:30
Undefined index

line??

abhisekkarmakar 2021-03-28 11:50:55
luv_php-30351.jpg

rohit267 2021-03-28 11:51:28
abhisekkarmakar 2021-03-28 11:50:55

send line 93

abhisekkarmakar 2021-03-28 11:52:33
$file=$_FILES[‘file’];
rohit267 2021-03-28 11:53:33
abhisekkarmakar 2021-03-28 11:52:33
$file=$_FILES[‘file’];

use image inside $_FILE

rohit267 2021-03-28 11:53:55
you provided name as image and using file as name
rohit267 2021-03-28 11:55:40
abhisekkarmakar 2021-03-28 10:16:16
<?php include “config.php”; if (isset($_POST[‘upload’])){
$book= $_POST[‘book’];
$author=$_POST[‘author’];
$about=$_POST[‘about’];
$story=$_POST[‘story’];
$file=$_FILES[‘file’];
$filename=$_file[‘name’];
$fileerror=$files[‘error’];
$filetmp=$file[‘tmp_name’];
$fileext=explode(‘.’,$filename);
$filecheck=strtolower(end($fileout));
$fileextstored= array(‘png’,’jpg’,’jpeg’);
if(in_array($filecheck,$fileextstored)){
$destinationfile=”images/”.$filename;
move_uploaded_file($filetmp,$destinationfile);
$q=”INSERT INTO books(image, heading, author, about, story) VALUES (‘$destinationfile’,’$book’,’$author’,’$about’,’$story’)”;
$query= mysqli_query($conn,$q);

if (move_uploaded_file($_FILES[‘image’][‘tmp_name’], $target)) {
$msg = “Image uploaded successfully”;
}else{
$msg = “Failed to upload image”;
}
}
}

?>

and write code with proper syntax, somewhere using file and somewhere FILE, both are different, learn php then do things

Ajithkumar G 2021-03-29 12:10:56
How to learning php
Marwa Ahmed 2021-03-29 12:58:49
Ajithkumar G 2021-03-29 12:10:56
How to learning php

+1

rohit267 2021-03-29 14:37:57
Ajithkumar G 2021-03-29 12:10:56
How to learning php

learn English first

|