Latest Web Development Posts

Meaning of Frontend verses Backend
Frontend is the a part of the internet site customers can see and engage with including the graphical user interface (GUI) and the command line together with the design, navigating menus, texts, pix, motion pictures, and so forth. Backend, at the contrary, is the part of the website customers can't see and have interaction with. It’s all approximately how the whole lot works.

Role of Frontend verses Backend
Both play a critical function in net improvement and despite the fact that they've their honest share of variations, they are like facets of the same coin. Frontend is all approximately the visible aspects of the internet site that a user can see and experience. On the opposite, the entirety that happens on the history can be attributed to the backend internet improvement. It’s more like an enabler for frontend internet enjoy.

Developer of Frontend verses Backend
Web designer is the maximum not unusual task title for the frontend web development and the function of a web designer is to layout and rebuild websites preserving the visual factors in thoughts. Backend builders are the ones who make sure the statistics and systems asked by means of the frontend utility or software program are correctly introduced. Backend builders deal with the whole thing that occurs in the heritage.

Essentials of Frontend verses Backend

Frontend is also called the “consumer-facet” instead of the backend which is largely the “server-facet” of the application. The essentials of backend internet development ...

In your HTML code <table> not opened, table row <tr> not opened, invalid <input> tag without > - it should be something like

if($result->num_rows > 0){
    echo '<table>';
    while ($row6 = $result->fetch_assoc()){
        //table code//
        echo '<tr>';
        echo '<td><input type="checkbox"  name="check[]" value="'.$cato.'" /></td>';
        echo '</tr>';
    }
    echo '</table>';
}

PHP code $cat better use filtered variable

$cat = filter_input(
    INPUT_POST
    ,'check'
    ,FILTER_VALIDATE_INT
    ,FILTER_REQUIRE_ARRAY
);

other variables also filtered eg

$price = filter_input(INPUT_POST,'price',FILTER_SANITIZE_STRING);
$pickup_date = filter_input(INPUT_POST,'pickup_date',FILTER_SANITIZE_STRING);
...

Do not pass user input variables direct to SQL query - its a potential SQL injection risk! Use prepared statement instead - prepare, bind_param, execute - read manual MySQLi bind param or PDO bind param

jack98 commented: thanks for responding, really appreciate it. :) +0

i have manage to insert my checkbox array data into database. the problem is when i check multiple checkbox only the first data in array is inserted in database. i need when i check multiple checkbox, all the data i have check insert into database.can someone help me?

this is my php code:

    <?php

    include ('connect.php');

 $cat = implode(',', $_POST['check']);

 if(isset($_POST['submit']))
  {

    for($i=0; $i<count($cat);$i++)
{
$p_id =$_GET ['sitter'];
$price = $_POST ['price'];
$pickup_date =$_POST ['pickup_date'];
$dropoff_date =$_POST ['dropoff_date'];
$numdays = $_POST ['numdays'];
$total =$_POST ['test'];

$sql2 = "INSERT INTO cat_sitter(sitter_fk,cat_fk, price, date_in, date_out,total_day, total)VALUES ('$p_id','" . $cat[$i] . "','$price','$pickup_date','$dropoff_date','$numdays', '$total')" or die ("Error inserting data into table");

if ($conn->query($sql2) === TRUE) {
    echo "<script language='javascript'>alert('Succesfully Book.')
        window.location.replace(\"book_page.php\");
    </script>";
}else{

    echo "error: " . $sql2 . "<br>" . $conn->error;
 }
 }
          }
     ?>

this is my html code:

<?php
      include ('connect.php');

   $sql = "SELECT cat_id,name,gender,health_status,neutered,breed,color,age FROM cat WHERE owner_fk = '$id'";
  $result3 = mysqli_query($conn,$sql);
  $row6 = mysqli_fetch_array($result3);
  $cato = $row6['cat_id'];
  $result = $conn-> query($sql);

     if ($result-> num_rows > 0) {
     while ($row6 = $result-> fetch_assoc()) {

        //table code//

       echo "<td>" ."<input type='checkbox'  name= 'check[]' value='$cato'". "</td>";
       echo "</tr>";
     }
       echo "</table>";
    }
     else{
     echo "0 result";
    }
      $conn-> close();

     ?>

Is that it? No code? Show your relevant code and on which does this happen.

Parse error: syntax error, unexpected '||' (T_BOOLEAN_OR) in php pdo

U can use BrowserSync with GulpJS it's very clean and nice tool

I see no line 36. Also line 16 looks suspect. Is it "Forgor" on purpose?

Im using MongoDB with PHP. Im making a check user exist using their email.It can be check, but when I enter the existing user and click the confirm button, it display the 'echo' and also display an error about converted document to int. Below is what the error say and my code.

ERROR
Fatal error: Uncaught Error: Call to a member function count() on null in C:\xampp\htdocs\project\OrgChart-master\OrgChart-master\resetPasswordSuccess.php:36 Stack trace: #0 {main} thrown in C:\xampp\htdocs\project\OrgChart-master\OrgChart-master\resetPasswordSuccess.php on line 36

CODE

<!-- MongoDB Conn With Email Check Function V1 (FUNCTIONING) -->
<!--Line 36 is at if($result==0)-->

<?php
        if(isset($_POST['registration']))
        {
            $registration = ($_POST['registration']);

            if(!empty($registration))
            {                
                $result = $db->collection1->findOne(array("registration"=>$registration));
                //print_r($result);
                if($result->count()==1)
                {
                    echo "Please Enter The Correct Username";
                    header('location: memberForgorPassword.php');
                    return false;
                }
                else if($result->count()==0)
                {
                    echo "Username Exist In Database";
                    header('location: resetPasswordSuccess.php');
                    return true;
                }
            }
        }
?>

Can you try framing that question again please as it doesn't make much sense as is I'm afraid?

already this phone number registration in alert msg how to display in php and mysql

I have couple of shipping methods DHL & FedEx, if selected products exits in cart show only selected shipping method, how to archive using shopping cart pricing rule or any other way to do this?

"An app for your product-- is it a good investment?"

You were not entirely clear what your product was. You mention a web site so if it's the usual web site with the usual products I will write no. I rarely hear web masters tell me it paid off. Now for sites like, Amazon, Newegg, Woot and such it does pay off but your scale may not come close.

-> Here's a thing. Those folk at "App Development Agency" are there to sell you on this idea. It's your money and in your case I don't think it will work as you expect. Let me add the most common reason why and it's a doozy. "APP Fatigue." Today's users are pushing back with "not another app to install." This pushback has been going on for a few years so you are very late to the party unless you are an Alibaba, Yahoo, Amazon or such in class.

My advice? Focus on making your web site mobile friendly to the max and on your strengths. The mobile app may drain your time, money and distract you from what really matters.

The world has gone mobile! People always carry their phones with them. If you want to connect with your customers where you get the most response, then you should think about investing in a customized mobile app for your brand, I recently started a business and launched a website, but it has not been bringing much traffic. I want to know the mobile app development cost in Adelaide from different sources I have been getting different responses some told me it depends on various factors like the complexity of your app or the fact that it is designed for Android or iOS or maybe both. Can anyone give me the rates?

Your posts show a possible fascination with TypeScript. TypeScript is a Microsoft idea about JavaScript so you would be looking for such in JavaScript then port it over.

Let me blow up your ideas about TypeScript. It's not going to get a lot of traction for many reasons in the open source community. I suggest if you want a browser from source you start with one of the many open source browsers and go from there.

This is one of those languages that appears to be under Microsoft's "Extend, Embrace and Extinguish."

TypeScript is noted also at https://en.wikipedia.org/wiki/TypeScript which appears to be very much like JavaScript. Since it is transcompiling to JavaScript you would not search for app or applets in TypeScript but JavaScript then port as need be. If nothing is found then you write it yourself.

browser application to draw, print the text.
in programming language typescript.

in not found google source...

help!

Help me find

I need source code

Thanks duweihan For This Information..

implementation browser application in typescript.
can anyone give a link?

Each picture in the set involves a movement outline, and the rate of progress with work since when the movement begins, just the primary picture gets stacked. .eye-liveliness { width: 300px; stature: 300px; foundation picture:

Dani 1,745

It looks like there are rows in the database in which the value of the class field is empty or null.

You can adjust your query to be SELECT DISTINCT class FROM classname WHERE class <> '' AND class IS NOT NULL

Dani 1,745

I use https://github.com/lightningtgc/MProgress.js and I find it works great. Sometimes there's no benefit to reinventing the wheel.

Dani 1,745

What database? If you're using MySQL, for example, you could do something like the following:

UPDATE records
SET status = 1
WHERE timestamp < NOW() - 24 HOUR

In this case, the timestamp column is a MySQL timestamp. We are setting status = 1 if the value of the column is at least 24 hours ago from the current time. Is this the kind of thing you're looking for?

Then again if line 6 fails so will 7. OP needs to test for that.

That was my point. I believe Line 6 is returning 'false'. From the manual on mysqli_query:

Returns FALSE on failure. For successful SELECT, SHOW, DESCRIBE or EXPLAIN queries mysqli_query() will return a mysqli_result object. For other successful queries mysqli_query() will return TRUE.

The OP is running a SELECT query so he/she either gets a result object or FALSE.

So I'm assuming $q is set to FALSE, and therefore cannot be a valid parameter for line 7. This is my rationale for using a conditional...

if($q = mysqli_query($con,"select * from packages")){
     while ($r = mysqli_fetch_array($q)) {
     ..etc..
     }
}else{
    echo "Failed";
}

You could also use try/catch.

Then again if line 6 fails so will 7. OP needs to test for that.

While I like the oop method, I can't see anything wrong with the procedural code other than I'd enclose the whole thing in a conditional. As in if($q =....)

OK, here's the example for the object oriented method.

$query = "SELECT Name, CountryCode FROM City ORDER by ID LIMIT 3";
$result = $mysqli->query($query);

/* numeric array */
$row = $result->fetch_array(MYSQLI_NUM);

Line 7 in the OP's source is incorrect in my view as the $q is well, unexpected. Should be an int, not the result from line 6.

I'm assuming mysqli query is returning false, hence the boolean msg.

Line 7's call can have an object oriented or procedural style. While it looks like he's doing that, the line does not look valid to me.

This is why I supplied a link to the documentation.

Dani 1,745

I'm not sure what you mean, rproffitt?

It looks like he's looping through each row in the result set generated from query $q, and saving the row in an array $r for the iteration of the loop. That's what I do as well.

That's quite an undertaking you have there. My advice is to not code this at first. Break down the steps it takes from the beginning to the end.

Why that matters is that without a road map you don't know where you'll go. Also, I find some don't have any prior website building experience so you may be new or not. Setting up your site first may be daunting so again, break down the areas you need to learn and it won't feel like taking a sip from a fire hose.