Could I get more light on that?

|
Harikrishnan5494 2020-07-14 06:07:11
Give me an idea please
phinx_de 2020-07-14 06:53:45
Hello guys.. In this code, how can I skip or exclude the first row in importing csv file to mysql using php… any help will be appreciated..
phinx_de 2020-07-14 06:53:53
<?php
$connect = mysqli_connect(“localhost”, “root”, “”, “tracking”);

if(isset($_POST[“submit”]))
{
if($_FILES[‘file’][‘name’])
{
$filename = explode(“.”, $_FILES[‘file’][‘name’]);
if($filename[1] == ‘csv’)
{
$handle = fopen($_FILES[‘file’][‘tmp_name’], “r”);
while($data = fgetcsv($handle))
{
$item1 = mysqli_real_escape_string($connect, $data[0]);
$item2 = mysqli_real_escape_string($connect, $data[1]);
$item3 = mysqli_real_escape_string($connect, $data[2]);
$item4 = mysqli_real_escape_string($connect, $data[3]);
$item5 = mysqli_real_escape_string($connect, $data[4]);
$item6 = mysqli_real_escape_string($connect, $data[5]);
$query = “INSERT into messages(id, tracking_id, cfirstname, clastname, email, message) values(‘$item1′,’$item2′,’$item3′,’$item4′,’$item5′,’$item6’)”;
mysqli_query($connect, $query);
}
fclose($handle);
echo “<script>alert(‘Import done’);</script>”;
}
}
}

?>

2020-07-14 09:09:04
Thank you so much
I’m welcoming πŸ™
dev 2020-07-14 09:12:33
Hello guys is there anyone here doing yii2.. If so how can i generate a qrcode that captures all the users data.. Thank you
2020-07-14 13:44:44
Hiring Developer who can develop an extension of Chrome, a page of bot Filling , DM me
button_idli 2020-07-14 14:27:08
Use a for loop instead of multiple lines and start your loop from i=1 you will skip first row.
button_idli 2020-07-14 14:28:28
button_idli 2020-07-14 14:27:08
Use a for loop instead of multiple lines and start your loop from i=1 you will skip first row.

Better to save your excel file in .CSV format that will handle your task and you will drop few lines.

dev 2020-07-14 14:41:53
button_idli 2020-07-14 14:27:08
Use a for loop instead of multiple lines and start your loop from i=1 you will skip first row.

you can also do this

dev 2020-07-14 14:41:57
$flag = true;
while (($emapData = fgetcsv($file, 10000, “,”)) !== FALSE) {
if($flag) { $flag = false; continue; }
// rest of your code
}
button_idli 2020-07-14 14:43:53
dev 2020-07-14 14:41:57
$flag = true;
while (($emapData = fgetcsv($file, 10000, “,”)) !== FALSE) {
if($flag) { $flag = false; continue; }
// rest of your code
}

I don’t think that will skip one line.

dev 2020-07-14 14:44:45
Just try it out i once did something like that and it worked
dr_hjc 2020-07-14 14:45:41
Guys if anyone need hosting..pm
dev 2020-07-14 14:46:20
Who is conversant with yii framework
2020-07-14 14:50:28
dr_hjc 2020-07-14 14:45:41
Guys if anyone need hosting..pm

rates

chef de file 2020-07-14 14:55:05
Hello Developers,

Greetings

We are looking for a PHP developer for Cochin Location.
Should have minimum 4 Years of experience.
Interested candidate please drop your CV at career@novelworx.io
Employment type – Contract for 3 months
Skill requirement-PHP5,Cloud/server development

SakthiMj 2020-07-14 14:58:58
<?php
$date = ‘2017-07-00’;
$date = date(‘FY ‘, strtotime($date));
echo “\uploads\{$date}”;
$dir = $date;
if (!is_dir(“\uploads\{$date}”)) {
mkdir(“\uploads\{$date}”, 0777, true);
}
SakthiMj 2020-07-14 14:59:22
the above code error like “uploadsJune2017
Warning: mkdir(): Permission denied in C:xampphtdocsfilereporttest.php on line 7”
SakthiMj 2020-07-14 14:59:30
Kindly Help me any one
rohit267 2020-07-14 15:01:07
SakthiMj 2020-07-14 14:59:30
Kindly Help me any one

try launching xampp as admin

rohit267 2020-07-14 15:01:22
if note change folder permission
rohit267 2020-07-14 15:01:26
not*
Nripendra Singh 2020-07-14 15:01:48
How to create a automatic generate a unique registration number
Nripendra Singh 2020-07-14 15:02:21
Please provide the idea for any one
kabhishek18 2020-07-14 15:02:37
Nripendra Singh 2020-07-14 15:02:21
Please provide the idea for any one

Use uuid

SakthiMj 2020-07-14 15:02:38
It’s workes will on I removed the $veriable
kabhishek18 2020-07-14 15:02:48
Function
Nripendra Singh 2020-07-14 15:04:57
Dear Abhishek ji I have a fresher so you have provide a code
rohit267 2020-07-14 15:06:38
Nripendra Singh 2020-07-14 15:04:57
Dear Abhishek ji I have a fresher so you have provide a code

its a simple php function

rohit267 2020-07-14 15:06:48
read the documentat7
rohit267 2020-07-14 15:07:11
documentation*
Vicky_rah 2020-07-14 16:23:23
Competative programming(arround 1000 members) is a group where users can dicuss competitive programming related problems.if you want to join click hereπŸ‘‡
@competative_programming
Ajeet_kp 2020-07-14 17:11:26
Prayagraj
About The Job

The primary role would be is to analysing clients requirements and deliver scalable and flexible solutions. Design , Build and Web Based applications using Microsoft platform. Technologies C# , NET ASP.NET MVC JQuery SQL Server OOPS Javascript HTML , CSS , Bootstrap (Knowledgeable) Proactively benchmark application code to mitigate performance and scalability issues. Identify the strategies to increase the performance and scalability of the application. Ensure and deliver a high – level and detailed Design documentation of developed solutions. Candidates should be able to work as an independent team member , capable of applying judgment to plan and execute your tasks. Ensure timely delivery with minimal defects and rework. Should communicate with the senior Technical Team. Take up assignments in coding , testing and any other proof of concept / R D that is required for the organization Industry:IT – Software / Software Services

A P 2020-07-14 19:03:19
public function ViewLikeSave(Request $request)
{
$view_data = AppViewLike::where(‘video_id’,$request->video_id)->where(‘phone_id’,$request->phone_id)->where(‘type’,$request->type)->first();
if($request->type == “view”)
{
if(count($view_data) == 0)
{
$flag = true;
}else{
$flag = false;
}
}else{
if($request->value == 0){
$view_data = AppViewLike::where(‘video_id’,$request->video_id)->where(‘phone_id’,$request->phone_id)->where(‘type’,$request->type)->delete();
$flag = false;
}else{
if(count($view_data) == 0)
{
$flag = true;
}else{
$flag = false;
}
}
}

if($flag == true)
{
$save_data = array(
‘video_id’ => $request->video_id,
‘phone_id’ => $request->phone_id,
‘type’ => $request->type,
);
// dd($save_data);
AppViewLike::create($save_data);
if($request->type == “view”)
{
$video_data = AppVideo::where(‘id’,$request->video_id)->first();
$total_view = $video_data->view + 1;
AppVideo::where(‘id’,$request->video_id)->update(array(‘view’=>$total_view));
}
return Response::json([
‘status’ => true,
‘message’ => “Success”,
]);
}else{
return Response::json([
‘status’ => false,
‘message’ => “Success”,
]);
}
}

How to add ->doesntExist(); in video_id with where clause ? I want that if video_id already present then don’t insert the data. How to do this ?

Anshuit 2020-07-14 19:05:05
how to insert multiple product image in database
taylor007 2020-07-14 19:21:08
Help needed here please.

How to track users post in facebook, probably monitor it for some days if it really exits

vaisakhkm344 2020-07-14 19:29:27
i am the freelancer so if you want any work with low budget . yoh can ping me
tinkerbell1708 2020-07-14 20:30:42
phinx_de 2020-07-14 06:53:53
<?php
$connect = mysqli_connect(“localhost”, “root”, “”, “tracking”);

if(isset($_POST[“submit”]))
{
if($_FILES[‘file’][‘name’])
{
$filename = explode(“.”, $_FILES[‘file’][‘name’]);
if($filename[1] == ‘csv’)
{
$handle = fopen($_FILES[‘file’][‘tmp_name’], “r”);
while($data = fgetcsv($handle))
{
$item1 = mysqli_real_escape_string($connect, $data[0]);
$item2 = mysqli_real_escape_string($connect, $data[1]);
$item3 = mysqli_real_escape_string($connect, $data[2]);
$item4 = mysqli_real_escape_string($connect, $data[3]);
$item5 = mysqli_real_escape_string($connect, $data[4]);
$item6 = mysqli_real_escape_string($connect, $data[5]);
$query = “INSERT into messages(id, tracking_id, cfirstname, clastname, email, message) values(‘$item1′,’$item2′,’$item3′,’$item4′,’$item5′,’$item6’)”;
mysqli_query($connect, $query);
}
fclose($handle);
echo “<script>alert(‘Import done’);</script>”;
}
}
}

?>

Yes we can
And I already did that

tinkerbell1708 2020-07-14 20:31:07
button_idli 2020-07-14 14:27:08
Use a for loop instead of multiple lines and start your loop from i=1 you will skip first row.

Correct

tinkerbell1708 2020-07-14 20:32:54
Anshuit 2020-07-14 19:05:05
how to insert multiple product image in database

Use multiple attribute

button_idli 2020-07-14 20:38:47
taylor007 2020-07-14 19:21:08
Help needed here please.

How to track users post in facebook, probably monitor it for some days if it really exits

For some days….. You can track but it’s not legal

taylor007 2020-07-14 20:58:53
button_idli 2020-07-14 20:38:47
For some days….. You can track but it’s not legal

Could I get more light on that?. How

button_idli 2020-07-14 21:16:14
taylor007 2020-07-14 20:58:53
Could I get more light on that?. How

Nope because it’s illegal you may get blocked and banned.

rohit267 2020-07-14 22:12:33
A P 2020-07-14 19:03:19
public function ViewLikeSave(Request $request)
{
$view_data = AppViewLike::where(‘video_id’,$request->video_id)->where(‘phone_id’,$request->phone_id)->where(‘type’,$request->type)->first();
if($request->type == “view”)
{
if(count($view_data) == 0)
{
$flag = true;
}else{
$flag = false;
}
}else{
if($request->value == 0){
$view_data = AppViewLike::where(‘video_id’,$request->video_id)->where(‘phone_id’,$request->phone_id)->where(‘type’,$request->type)->delete();
$flag = false;
}else{
if(count($view_data) == 0)
{
$flag = true;
}else{
$flag = false;
}
}
}

if($flag == true)
{
$save_data = array(
‘video_id’ => $request->video_id,
‘phone_id’ => $request->phone_id,
‘type’ => $request->type,
);
// dd($save_data);
AppViewLike::create($save_data);
if($request->type == “view”)
{
$video_data = AppVideo::where(‘id’,$request->video_id)->first();
$total_view = $video_data->view + 1;
AppVideo::where(‘id’,$request->video_id)->update(array(‘view’=>$total_view));
}
return Response::json([
‘status’ => true,
‘message’ => “Success”,
]);
}else{
return Response::json([
‘status’ => false,
‘message’ => “Success”,
]);
}
}

How to add ->doesntExist(); in video_id with where clause ? I want that if video_id already present then don’t insert the data. How to do this ?

select the row and check if length of video_id is greater than 0

taylor007 2020-07-14 22:40:07
I have a platform where users make post on their Facebook page then submit links to the post.

I want to be able to check if those submitted post links are actually made by the user and also if it’s been on his timeline for desired number of days.

Mohit_117 2020-07-15 06:17:20
Hello,
Good Morning Friends

I Have Web And App Development Team And Accept A Project To Do Work.

And We Are Also Accept IOS App And Native App Project

dr_hjc 2020-07-15 06:43:43
https://spacehosting.in/cart.php?gid=5
dr_hjc 2020-07-15 06:43:48
Check these plans
dr_hjc 2020-07-15 06:43:55
Are these better?
dr_hjc 2020-07-15 06:44:12
Or may I choose different
|