Reset Password

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form

Register

Bids

1

Project-Budget

$10- $30

Active

Warning mysql_fetch_array expects parameter 1 to b

Project Description:

<p><span style="font-weight:bold;color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;">Warning</span><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;">: mysql_fetch_array() expects parameter 1 to be resource, boolean given in </span><span style="font-weight:bold;color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;">C:\xampp\htdocs\info software\edit.php</span><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"> on line </span><span style="font-weight:bold;color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;">6</span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong><?php </strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>include('dbcon.php');</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>$edit_record = $_GET['edit'];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong> </strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong> $quer = "delete from customers where customer_id= '$edit_record' ";</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>while($row = mysql_fetch_array(mysql_query($quer))){</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>                $c_id=$row['customer_id'];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>                $c_name=$row[1];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>                $c_no=$row[2];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>                $c_location=$row[3];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>                $c_address=$row[4];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>                $c_requirement=$row[5];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>                $c_date=$row[6];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>                $c_lead=$row[7];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>                $c_status=$row[8];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>                $c_follow=$row[9];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>                   </strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>}</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>   ?></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong> </strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong> </strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong><!DOCTYPE html></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong><html></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong><head></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>  <title>repair</title></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>  <meta charset="utf-8"></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>  <meta name="viewport" content="width=device-width, initial-scale=1"></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>    </head></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>    <body></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>       <form method="post"  action='edit.php?edit_form=<?php echo $c_id; ?>'></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>           </strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong><div class="container"></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>            <div class="row"></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>                <div class="col-sm-3"></div></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>                <div class="col-sm-6"></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>  <table class="table table-bordered" style="margin-top:40px;"></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>    <thead></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>      <tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>        <th colspan='9'> Update Customer Information </th></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>        </strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>      </tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>    </thead></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>    <tbody></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>          <tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>         </strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>               <td>Customer name </td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>               <td><input type="text" name="name1"  placeholder="Enter the name" value='<?php echo $c_name; ?>'></td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>          </tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>         <tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>         </strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>               <td>Customer no </td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>               <td><input type="text" name="number1"  placeholder="Enter the number" value='<?php echo $c_no; ?>'></td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>          </tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>         <tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>         <td>location </td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>               <td><input type="text" name="location1"  placeholder="Location" value='<?php echo  $c_location; ?>'></td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>         </tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>            <tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>             <td>Address </td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>                <td><textarea rows="4" cols="50"  name="address1" placeholder="Addresss..." value='<?php echo   $c_address; ?>'></textarea></td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>          </tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>        <tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>             <td>Requirement by customer </td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>               <td><input type="text" name="requirement1"  placeholder="requirement" value='<?php echo   $c_requirement; ?>'></td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>          </tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>         <tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>             <td>Date of input </td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>               <td><input type="date" name="date1" value='<?php echo     $c_date; ?>'></td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>          </tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>         <tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>             <td>Lead Source </td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>               <td><input type="text" name="lead1"  placeholder="Lead Source" value='<?php echo   $c_lead;  ?>'></td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>          </tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>                 <tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>             <td>Lead Status </td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>               <td><input type="text" name="leads1"  placeholder="Lead status" value='<?php echo     $c_status; ?>'></td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>          </tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>         <tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>             <td>follow Status </td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>               <td><input type="text" name="follow1"  placeholder="follow status" value='<?php echo     $c_follow?>'></td></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>          </tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>        </strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>         <tr><td colspan='6'><input type="submit" name="submit" value="upload" ></td></tr></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>    </tbody></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>  </table></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong></div></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>    </div></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>           </div></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>        </form></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>    </body></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong></html></strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong><?php </strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>if(isset($_POST['upload'])){</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>    $edit_record1=$_GET['edit_form'];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>    $c_name=$_POST['name1'];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>    $c_no=$_POST['number1'];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>     $c_lo=$_POST['location1'];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>    $c_add=$_POST['address1'];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>     $c_Requ=$_POST['requirement1'];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>     $c_Da=$_POST['date1'];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>    $c_le=$_POST['lead1'];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>      $c_les=$_POST['leads1'];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>     $c_foll=$_POST['follow1'];</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>     $query1 =  "update  customers  set customer_name='$c_name', customer_no='$c_no', location=' $c_lo', address=' $c_add', requirement_by_customer=' $c_Requ', date_of_input='$c_Da',lead_source='$c_le', lead_status=' $c_les', follow_up='c_foll'  WHERE customer_id=' $edit_record1'";</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>    echo "query1";</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>if (mysql_query($query1) )</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>{</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>    echo "<script>window.open('view.php?updated=Record updatedd!!!!!','_self')</script>" ;</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>}</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong> </strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>    </strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>}</strong></span></p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong> </strong></span></p> <p> </p> <p><span style="color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong>?></strong></span></p>

About student:

0 rating(0 Reviews)

Tutors Bidding

Ratings

Bid Price

5 (2 reviews)

$50