**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. …

Member Avatar
+0 forum 0

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?

Member Avatar
+0 forum 0

Hi, Hope this makes sense and hope someone can help me. I have a database table with the following columns: person_id, firstname, surname, email_address. Periodically I am given a set of files to send to some of the contacts in the database table. The filenames contain the person_id and they are always of the format: person_id.pdf or person_id-2.pdf. Sometimes there is only one of the files available or sometimes it is both of the files. The files are stored in a directory on our server Example. directory: letters files: 1111.pdf, 1111-2.pdf, 2222.pdf, 3333-2.pdf The user with person_id 1111: should receive …

Member Avatar
+0 forum 0

I have performed some query operations in nodeJS with mySQL and now I want to have a reactJS form to be embedded with it to display the results on web page. Can anyone give an idea how can I achieve the same? var mysql = require('mysql'); var con = mysql.createConnection({ host: "localhost", user: "root", password: "", port: '3307' }); con.connect(function(err) { if (err) throw err; console.log("Connected to mySQL"); con.query("CREATE DATABASE testNodeDB", function(err, result) { if (err) throw err; console.log("Database created by Jawad.."); }) }); con.connect(function(err){ if (err) throw err; console.log("Database connected finally.."); var sql = "CREATE TABLE customers_primary_key (id INT …

Member Avatar
+0 forum 0

how to receive confirmation mail if any user register or login using Nodejs?

Member Avatar
+0 forum 0

Hi guys i am new here..i am not have more experience with php.I have one good script ,this search on folder from name the file,example pdf file.Worked ok all goood but i need add the limit rezult for show because i search pdf name for example and this show me all file pdf,no have limit on page for rezult.I need limit this only 15 rezults,and another question possible add the messsage file not found for rezult nothing existent. thanks you very much!! <?php $dir = 'data'; $exclude = array('.','..','.htaccess'); $q = (isset($_GET['q']))? strtolower($_GET['q']) : ''; $res = opendir($dir); while(false!== ($file …

Member Avatar
+0 forum 0

I'm looking for some alternatives to Swagger UI that I can use with my API's swagger file to generate our official documentation. So far I've been looking at Apiary and ReDoc. Does anyone have any favorites? Which are the most intuitive for api documentation? Ideally I'd be looking for one with a built-in console.

Member Avatar
+0 forum 0

Here my form auto responce based on drop-down list, <tr> <th>Shipping Cost (Rs) : </th> <td id="findata"></td> <input type="hidden" name="shipping_cost" id="shipping_cost"/> </tr> <tr> Same page Ajax : <script> $(document).ready(function(){ $('#new').on('change',function(){ var zip = $("#zip_postal_code").val(); var country = $("#country").val(); $.ajax({ type: "POST", // url: "ajax_ship_cost_data.php", url: "sp_cost.php", dataType: "text", data: { zip_postal_code: zip, country: country}, success: function(data) { // Check the output of ajax call on firebug console //console.log(data); $('#findata').html(data); $('#shipping_cost').val(data); } }); }); }); </script> The field **Shipping Cost** is auto responce based following field, <tr> <th>I have : </th> <td> <select id="old" name="i_have"> <option value = "select_option">Select Option</option> <option …

Member Avatar
+0 forum 0

HI All I am displaying 10 questions randomly , if user play quizz multiple times - i want to display updated score of the users's session. demo url is : http://telugumirchi.com/quiz/ **index.php** <?php session_start(); ?> <?php require 'config.php'; ?> <!DOCTYPE html> <html> <head> <title>ABCD COMPANY</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> <link href="css/style.css" rel="stylesheet" media="screen"> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="../../assets/js/html5shiv.js"></script> <script src="../../assets/js/respond.min.js"></script> <![endif]--> </head> <body> <header> <p class="text-center"> Welcome <?php if(!empty($_SESSION['name'])){echo $_SESSION['name'];}?> </p> </header> <div class="container"> <div class="row"> <div class="col-xs-14 …

Member Avatar
+0 forum 0

Hi, Was wondering if anyone had any information on how to create a word document on the client side in Angular? I was using jspdf to create PDF's which was really good but the documents need to be editable so having to look at how to create word documents. I haven't been able to find much online, all the tutorials or npm packages all seem to use node.js which I'm not looking for. Any info or help would be great. Thanks

Member Avatar
+0 forum 0

I have magento shipping charge code : <?php ob_start(); // require_once(__DIR__ . '/app/Mage.php'); require_once('./../app/Mage.php'); umask(0); ini_set('display_errors',true); ini_set('memory_limit', '1024M'); Mage::app()->loadArea('frontend'); function getShippingEstimate($productId,$productQty,$countryId,$postcode ) { // $quote = Mage::getModel('sales/quote')->setStoreId(Mage::app()->getStore('default')->getId()); $quote = Mage::getModel('sales/quote')->setStoreId(Mage::app()->getStore('english')->getId()); $_product = Mage::getModel('catalog/product')->load($productId); $_product->getStockItem()->setUseConfigManageStock(false); $_product->getStockItem()->setManageStock(false); $quote->addProduct($_product, $productQty); $quote->getShippingAddress()->setCountryId($countryId)->setPostcode($postcode); $quote->getShippingAddress()->collectTotals(); $quote->getShippingAddress()->setCollectShippingRates(true); $quote->getShippingAddress()->collectShippingRates(); $_rates = $quote->getShippingAddress()->getShippingRatesCollection(); $shippingRates = array(); foreach ($_rates as $_rate): if($_rate->getPrice() > 0) { $shippingRates[] = array("Title" => $_rate->getMethodTitle(), "Price" => $_rate->getPrice()); } endforeach; return $shippingRates; } // echo "<pre>"; // product id, quantity, country, postcode // print_r(getShippingEstimate('14419','1',"IN","642001")); // echo "</pre>"; $results = getShippingEstimate('14419','1',"IN","642001"); // $results = getShippingEstimate('14419','1',"US","99501"); $count = -1; echo "<select>"; foreach ($results as $result): $count++; ?> …

Member Avatar
+0 forum 0

I have predefined value like shipping_weight = 10$, my form consisting two dropdown list, if the dropdown selected based on the selection how to return my ajax value, Index.php : <tr> <th>I have : </th> <td> <select id="old" name="i_have"> <option value = "select_option">Select Option</option> <option value = "three_compact">3 Compact</option> <option value = "three_regular">3 Regular</option> <option value = "three_triple">3 Triple</option> <option value = "five_compact">5 Compact</option> <option value = "five_regular">5 Regular</option> <option value = "five_triple">5 Triple</option> <option value = "seven_compact">7 Compact</option> <option value = "seven_regular">7 Regular</option> <option value = "seven_triple">7 Triple</option> <option value = "nine_compact">9 Compact</option> <option value = "nine_regular">9 Regular</option> <option …

Member Avatar
+0 forum 0

I have dynamic page which is loading and preview page from database retrieved values. I did this with successfully. I want to remove parameters from page url. Note that I only used one parameter in url. My url is something like this. (with parameters) http://ads/ad?this=daihatsu-boon-m700s-new-design-2016-nugegoda-2019-04-05-22-49-04 I tried to remove parameters from url, (it success) then my url look like this, http://ads/ad/daihatsu-boon-m700s-new-design-2016-nugegoda-2019-04-05-22-49-04 To do that I added following codes to htaccess file, RewriteEngine On #RewriteCond %{SERVER_PORT} 80 ReWriteRule ^ad/([a-zA-Z0-9-/]+)$ ad.php?url=$1 ReWriteRule ^ad/([a-zA-Z0-9-/]+)/ ad.php?url=$1 Options +FollowSymLinks -MultiViews # Turn mod_rewrite on #RewriteEngine On RewriteBase / # To externally redirect /dir/foo.php to /dir/foo …

Member Avatar
+0 forum 0

I have been working for hours to get this works the problem is that when I first execute this code everything is ok but second time nothing displays. Then I realized that if I wait 20-25 seconds gets executed again I am using this way whois("google","web.tr") I dont get any problem the other extensions(com,net) so on function whois($domainName, $ext) { $servers = array( "biz" => "whois.neulevel.biz", "com" => "whois.internic.net", "com.tr" => "whois.nic.tr", "gen.tr" => "whois.nic.tr", "web.tr" => "whois.nic.tr", "k12.tr" => "whois.nic.tr", "org.tr" => "whois.nic.tr" ); $serverName = trim($servers[$ext]); $tamAd=$domainName.".".$ext; $whois = array(); $output = ""; if (function_exists('curl_version')) { $curl = …

Member Avatar
+0 forum 0

I am trying to validate my registration form but my php codes blocking it some how, I keep this error, Notice: undefined index: in gender c and for the life of me cant seem to find the correct way to fix it nothing I tried is working. and also I have been trying to insert data in the database and it is not inserting at all, I knew there is an error somewhere within the codes and I cant find. can someone plzzzzzzzzzzz help me fix this. here is both the php scripts and the html to go with it …

Member Avatar
+0 forum 0

Hi, I'm new to php (Yii Framework) and SQL (phpMyAdmin). I have problem to ask. ![Capture11.PNG](/attachments/large/4/1e4d9bf0c9a482a977d0ccb0fa19260e.PNG) Currently the three dropdown menu from different table and each have different id called aircraft_type, aircraft_sn and aircraft_reg. I want to use only one table called aircraft. In this table have all three details and only have one id. What I want to do is, when user choose value from aircraft type, the aircraft serial number and aircraft registration will also automatically fill. Calling value from table aircraft only. So far the code I have is: 1)_form.php (project form) <div class="panel panel-bordered panel-success"> <!-- …

Member Avatar
+0 forum 0

Hi all I am very new to using php, I have a class project which I have to create a dynamic php page with a drop down selection menu. I have already created the pages for my project but when I choose the form I want and hit submit it doesnt redirected to the selection chosen. This is the form and php code i have been working on. Thank you <html> <title>Main Menu Page</title> <body> <h1>Main Menu Page</h1> <h2>Please Select one</h2> <form action="#" method="GET"> <select name="Choose"> <option value="select one">Select One</option> <option value="General Feedback">General Feedback</option> <option value="Help Request">Help Request</option> </select> <input …

Member Avatar
+0 forum 0

I need to create a database from the messages, coming from the Mobirise website builder's forms. What code should I use? This doesn't work. Could you please help me. $link = mysqli_connect('localhost', 'root', 'password'); if (!$link) { $output = 'Unable to connect to the database server.'; include 'output.html.php'; exit(); }

Member Avatar
+0 forum 0

I want to add capcha to Mobirise builder's form. When I'm adding the code below, formd doesn't send any messages after that. What should I do? May be someone have solved this issue. <head> <script src="https://www.google.com/reCAPTCHA/api.js" async defer></script> </head> <body> <form action="?" method="POST"> <div class="g-reCAPTCHA" data-sitekey="your_site_key"></div> <br/> <input type="submit" value="Submit"> </form>

Member Avatar
+0 forum 0

** Cannot open MSSQLSSQLEXPRESS service on computer'.'. ** **What I have tried:** Dim myController As New System.ServiceProcess.ServiceController("SQL Server (SQLEXPRESS)") ------------------------------------------------------------------------------------------------------------ Private Sub Service_status() If myController.Status = ServiceProcess.ServiceControllerStatus.Running Then TextBox1.Text = "Started" ElseIf myController.Status = ServiceProcess.ServiceControllerStatus.Stopped Then TextBox1.Text = "Stopped" End If End Sub ------------------------------------------------------------------------------------------------------------ Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Service_status() End Sub ------------------------------------------------------------------------------------------------------------ Private Sub BtnStop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnStop.Click ProgressBar1.Value = 0 Try myController.Stop() Catch ex As Exception MsgBox(ex.Message) Finally ProgressBar1.Value = 100 myController.WaitForStatus(ServiceProcess.ServiceControllerStatus.Stopped) '//Add Service_status() End Try End Sub ------------------------------------------------------------------------------------------------------------ Private Sub BtnStart_Click(ByVal sender As System.Object, …

Member Avatar
+0 forum 0

I am required to pass a parametre to jquery post and then get it using $_POST method .But it doesnt work this way.I cant display on the page <!doctype html> <html lang="en"> <head> <title>Document</title> <script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js" integrity="sha256-T0Vest3yCU7pafRw9r+settMBX6JkKN06dqBnpQ8d30=" crossorigin="anonymous"></script> </head> <body> <?php @$a = isset($_POST["isim"]) ? "var" : "yok"; echo $a; ?> <button type="button" id="tikla">Tıkla</button> </body> </html> <script> $(document).ready(function(){ $('#tikla').click(function () { $.post( "xx.php", {"isim": "tayfun"}) .done(function(data){ }); }) }) </script>

Member Avatar
+0 forum 0

We just recently (read, today) implemented SameSite cookies to prevent CSRF attacks. The thing is, while there's a decent amount of information online about the benefits of them, I can't find any other sites that implement them. Not even any of the big ones I would suspect were spearheading something like this, such as Facebook or Google. Didn't this begin as a Chrome project? Is there a reason why they're not in use?

Member Avatar
+1 forum 0

I hve encountered this error that I was using php pdo and wamp server 3.0. I couldnt insert data in ms sql server 2012 because it says that it couldnt find the table Error sql state[ 42S02] Base table or view not found: 208 invalid object name isys.ref_product sql insert into isys.dbo.ref_product(somecolumn)values(somevalues)

Member Avatar
+0 forum 0

As web developers we do take seriously the security of our end users by applying a hash method on their passwords before storing it to the database so should our database be hacked we know that our end user passwords are secure. But what about the browser remembered passwords on the front end? We all know that a password can be viewed on the front end by using a tool called element inspector and change the password type from password to text and we can see the actual password and we can login on our own device with that at …

Member Avatar
+0 forum 0

Hello, [Click Here](https://i.imgur.com/47YUdmn.png) My problem is in the Edit view, it gets all the information except the logo.. my edit get controller is : // GET: Billers/Edit/5 public ActionResult Edit(string id, HttpPostedFileBase logo) { if (id == null) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } Biller biller = db.Billers.Find(id); if (biller == null) { return HttpNotFound(); } return View(biller); } ///THE VIEW <div class="form-group"> @Html.LabelFor(model => model.Logo, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> <!--<input type="file" class="form-control" name="logo" accept="image/png,image/jpg,image/jpeg" />--> @Html.EditorFor(model => model.Logo, new { htmlAttributes = new { @class = "form-control", type = "file", accept = "image/x-png, image/gif, …

Member Avatar
+0 forum 0

Hi, I am trying to migrate products from Magento 1 to Magento 2. I have installed the data migration tool and created the config file as per the Magento guidelines however I get an error when trying to execute the migration command. This is the error: [Magento\Framework\Config\Dom\ValidationException] Extra content at the end of the document Line: 4 This is the config file contents: <source> <database host="xx.xx.xx.x" name="magento_test" user="magento_test"/> </source> <destination> <database host="localhost" name="magento_test" user="magento_test"/> </destination> <options> <crypt_key>xxxxxxxxxxxxxxxxxxxxxxxxxxxxx</crypt_key> </options> There is no extra space after the destination tag, I have even tried putting all on one line and still gives the …

Member Avatar
+0 forum 0

My score on Google's new PageSpeed tool (web.dev or Lighthouse) is incredibly low. There are things that I'm working on that seem obvious, but I'm stumped with trying to improve the following points: Time to Interactive Speed Index Estimated Input Latency I was wondering if any of you guys are dealing with this. The website is https://www.bairesdev.com/our-services/software-outsourcing/ Thanks a lot in advance!!

Member Avatar
+0 forum 0

Hello and Good Day, I have a multiple images that is played on flanis. On my iFrame, this images are not fitted. I want to have a flanis that is responsive fitted on my iFrame. so I tried this one image only in the <img> tag and it works fine. Here is my code at this moment. Changing the <Height> to <auto> does not do the trick for me. It only show the 1/4 of the images + the control buttons. Trying the <display: block> does not change any. Even the shrinking part on <img2> <!-- <style> body { display: …

Member Avatar
+0 forum 0

Message could not be sent. Mailer Error: SMTP Error: Could not authenticate. it worked on localhost perfectly but it gives error on live server Here is my code $mail = new PHPMailer(true); try { $mail->IsSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; $mail->SMTPDebug = 2; $mail->CharSet = "utf-8"; $mail->Username = "xxxxxxxxxxx@gmail.com"; $mail->Password = "***********"; $mail->SMTPSecure = 'ssl'; $mail->Port = 465; $mail->setFrom('xyz@gmail.com', ' '); $mail->addAddress($email); $mail->addReplyTo('xyz@gmail.com'); $result=''; $mail->isHTML(true); $mail->Subject = 'Your Password Reset Link'; $mail->Body = "Body"; $mail->AltBody = "Body"; if($mail->send()){ $result="success"; echo "Success"; }

Member Avatar
+0 forum 0

Hi Coders, am working on a function to calculate the balance leave in a year using php. For example, if leave entitlement in a year is 20 days, so if a staff takes 1 day leave, the balance leave will return 19 days. Below is the code but am not sure if this is correct? Thanks. <?php // Create a function to count leave balance. class Leave { public $leave_entitlement; public $start_date; public $end_date; public $leave_balance; public $difference; public $diff; public function days_taken($startDate='Today', $endDate='Today') { $start_date = new DateTime($startDate); $end_date = new DateTime($endDate); $diff = $end_date->diff($start_date); return $diff->days; } public …

Member Avatar
+0 forum 0

The End.