Himanshu_wkd

Himanshu_wkd

Member Since 2 Months Ago

Experience Points 620
Experience Level 1

4,380 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 0
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

21 May
4 weeks ago
20 May
4 weeks ago

Himanshu_wkd left a reply on Getting Values From Radio Button

@devfrey Here you go:

Male Female

Himanshu_wkd started a new conversation Getting Values From Radio Button

Guys, I am having one radio button for gender. The values is inserted into the db. Now I want to retrieve that value and the radio button to be checked with the value received.

Instance:

If male is received, I want male to be checked. How can this be done?

14 May
1 month ago

Himanshu_wkd left a reply on PHP Updating Images

@mthomas I know you guys are wizards, as this forum has helped me a lot in my small programming career.

Here is the code :

function addProductsData($data){
    if($data['id']!=''){
        $sql = "Select * from `product_details` where id = " . $data['id'];
        $tempData =  $this->CommonClass1->ResultWithArrayData($sql);
        // echo "<pre>"; var_dump($tempData);exit;
        if(isset($_FILES['image']['name']) && !empty($_FILES['image']['name']) && $_FILES['image']['name']!=''){    
            $countfiles = count($_FILES['image']['name']);
            $temp = '';
            for($i=0;$i<$countfiles;$i++){
                $uploadpic=date('Y_m_d_h_i_s').'_'.str_replace(' ', '',$_FILES['image']['name'][$i]);
                move_uploaded_file($_FILES['image']['tmp_name'][$i],'uploads/products/'.$uploadpic);
                $temp = $temp . $uploadpic . '#';
            }
            $tempImageName = $tempData[0]['image'] . $temp;
            $sql = "UPDATE `product_details` SET `heading`='".$data['heading']."',`message`='".$data['message']."',`description`='".$data['description']."',`additional`='".$data['additional']."',`image`='".$tempImageName."' WHERE id=".$data['id']."";
            $status =  $this->CommonClass1->NormalQuery($sql);
            return $status;
        }else{
             ;
        }
    }
    else{
        if(isset($_FILES['image']['name']) && !empty($_FILES['image']['name'])){    
            $countfiles = count($_FILES['image']['name']);
            $temp = '';
            for($i=0;$i<$countfiles;$i++){
                $uploadpic=date('Y_m_d_h_i_s').'_'.str_replace(' ', '',$_FILES['image']['name'][$i]);
                move_uploaded_file($_FILES['image']['tmp_name'][$i],'uploads/products/'.$uploadpic);
                $temp = $temp . $uploadpic . '#';
            }
            $data['image']=$temp;
        } 
        return $this->CommonClass1->NormalQuery("INSERT INTO `product_details`(`heading`,`message`,`image`,`description`,`additional`) VALUES ('".$data['heading']."','".$data['message']."','".$data['image']."','".$data['description']."','".$data['additional']."') ");
    }
}

Himanshu_wkd started a new conversation PHP Updating Images

Guys I am updating images in php using button, when I am updating it without doing any changes,then also a image thumbnail is getting created. Ho can I stop it. Because it is not looking good.

03 May
1 month ago

Himanshu_wkd left a reply on PHP Multiple Image Upload

Peace @van1310 Your answer helped me a lot.

02 May
1 month ago

Himanshu_wkd left a reply on PHP Multiple Image Upload

@devfrey @van1310 Thank you guys. It is done.

Himanshu_wkd started a new conversation PHP Multiple Image Upload

Guys, I want to upload multiple images from one upload form and I am able to do it. But, only one image is getting stored in the database and also only is getting displayed, Can someone help me with this. Issue is related to core php and mysql.

23 Apr
1 month ago

Himanshu_wkd left a reply on PHP

@brightstormhq I am using core php not laravel. Please suggest the solution for core php.

22 Apr
1 month ago

Himanshu_wkd left a reply on PHP

@tray2 Core PHP mate.

Himanshu_wkd left a reply on PHP

@ashraam @dipakrataniagile

Here is my code :

<section class="case__wrap">
 
<?php
         

$testData=$CommonClass->ResultWithArrayData("SELECT * FROM portfolio WHERE status=1 ORDER BY id DESC ");

?>

  <div>          
  <div class="custom_container">
    <div class="custom_row">
      <div class="case__wrap_inner_text">
        <h2>Case <strong>Studies</strong></h2>
      </div>
      <div class="case__wrap_inner" >
      
       <div class="image__wrapper_content">         
       <img src="admin/uploads/portfolio/<?php echo $testData[3]['image'] ?>">
       <!-- <img src="assets/img/protfolio/vitalizeart-thumnail.png"> -->
       </div>
      
       <div class="content__wrapper_of_case_Study">
        <div class="top___Sec">
       
      
          <div class="middle__ineeer_sec_For_grid">
              <div class="middle__Sec">
              <img src="admin/uploads/portfolio/<?php echo $testData[3]['logo'] ?>">
                  <!-- <img src="assets/img/protfolio/logo/vitalizeart_logo.png"> -->
               <h1><?php echo $testData[3]['heading'] ?></h1>
               <p><?php echo $testData[3]['description'] ?> </p>
               <a href="case-study-detail.php?pid=<?php echo $testData[3]['id']?>">View  Detail</a>
             </div>
          </div>
        </div>
      </div>
        </div>

        <div class="casee_in_grid">
          <div class="case_in_grid__inner">
            <div class="img__Sec_gird">
            <img src="admin/uploads/portfolio/<?php echo $testData[2]['image'] ?>">
            </div>
            <h1><?php echo $testData[2]['heading'] ?></h1>
               <p><?php echo $testData[2]['description'] ?> </p>
              <a href="case-study-detail.php?pid=<?php echo $testData[2]['id']?>">View  Detail</a>
          </div>
          <div class="case_in_grid__inner">
              <div class="img__Sec_gird">
              <img src="admin/uploads/portfolio/<?php echo $testData[1]['image'] ?>">
              </div>
              <h1><?php echo $testData[1]['heading'] ?></h1>
               <p><?php echo $testData[1]['description'] ?> </p>
              <a href="case-study-detail.php?pid=<?php echo $testData[1]['id']?>">View  Detail</a>
            </div>
        </div>
        </div>


        <div class="case__wrap_inner">
            <div class="image__wrapper_content">
            <img src="admin/uploads/portfolio/<?php echo $testData[0]['image'] ?>">
            <!-- <img src="assets/img/protfolio/gsceenc-thumbnail.PNG"> -->
            </div>
            <div class="content__wrapper_of_case_Study">
             <div class="top___Sec">
            
           
               <div class="middle__ineeer_sec_For_grid">
                   <div class="middle__Sec">
                   <img src="admin/uploads/portfolio/<?php echo $testData[0]['logo'] ?>">
                   <h1><?php echo $testData[0]['heading'] ?></h1>
               <p><?php echo $testData[0]['description'] ?> </p>
               <a href="case-study-detail.php?pid=<?php echo $testData[0]['id']?>">View  Detail</a>
                  </div>
               </div>
             </div>
           </div>
             </div>
         
      </div>
    </div>
  </div>
</section>

Now I want to execute a loop which will display data in this format. (1-2-1) I hope it gives the understanding top you. Thanks

Himanshu_wkd started a new conversation PHP

Hey, I am having one concern related to php :

I want to write a loop for displaying 4 different on a page, using the database values. Can someone help?

08 Apr
2 months ago

Himanshu_wkd started a new conversation Not Able To Login Into My PHP Dashboard.

Hi, I have created a dashboard login form. when I try to login to my dashboard. There isn't any errors, but the login button starts to show processing and also console part is blank. What should I do?

01 Apr
2 months ago

Himanshu_wkd left a reply on Error In Posting Data To The Table

@siangboon My function name in controller was storeBusiness and I was try storeBusinss. It was the mistake.

@anerao @snapey Thanks

Himanshu_wkd started a new conversation Error In Posting Data To The Table

Hey, I am getting Error (Failed to load resource: the server responded with a status of 405 (Method Not Allowed) ) when I am posting data in mysql using laravel, forms. The link provided is getting hit, but data is not coming.

29 Mar
2 months ago

Himanshu_wkd left a reply on Errors In Migration After Using Make:Auth Command.

Well @, I have to always to this. The table name that comes in error, i have to delete that particular table and again do migrate and everything starts normally. But the concern is why the error arises, it should migrate without any error.

Himanshu_wkd left a reply on Errors In Migration After Using Make:Auth Command.

@tykus It always displays a table name and shows the error of tablename exists in the database. But in reality, I have nothing in database. Its frustrating.

Himanshu_wkd started a new conversation Errorsin Migration After Using Make:Auth Command.

When I use (make:auth) function, why I am not able to migrate other tables. Why there are errors. It is not good, now I have to delete user table and migrate again, then it will be migrated.

Please help. I am new in Laravel, is this a feature or what?

28 Mar
2 months ago

Himanshu_wkd left a reply on Forms

Thanks @vandan .

Himanshu_wkd started a new conversation Forms

I have four different forms connected through sidebar_cards, I want to submit data through them in a single table. Also, I have all the fields mentioned in database. But not getting correct response.

Help would be highly appreciable.

Thanks, Himanshu