validation is working fine for me but i cant submit please help me thanks here is my php

Member Avatar
+0 forum 0

<center><div id="piechart"></div></center> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['A', 'B'], <?php $query = "SELECT COUNT (*) AS a FROM TABLE WHERE A = '1'"; $results = sqlsrv_query($conn, $query); $row = sqlsrv_fetch_array($results); $A = $row['a']; ?> <?php $query = "SELECT COUNT (*) AS b FROM TABLE WHERE B = '1'"; $results = sqlsrv_query($conn, $query); $row = sqlsrv_fetch_array($results); $b = $row['b']; ?> ]); var options = {'title':'Survei Harian ', 'width':850, 'height':550}; var chart = new google.visualization.PieChart(document.getElementById('piechart')); chart.draw(data, options); } </script> help I wear script on why not play please grafik assistance

Member Avatar
+0 forum 0

I have a problem with laravel and vuejs the code below is in my resources in test.blade.php, I don't see anything in the internet browsers <!doctype html> <html lang="en"> <!doctype html> <head>` <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Laravel</title> <!-- Fonts --> <link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet"> <!-- Style --> </head> <body> <div id="app"> <test></test> </div> <script src="http://192.168.3.129/js/app.js"></script> </body> </html>

Member Avatar
+0 forum 0

Hi, I am trying to insert a data from the database to select drop down list in a table where this comes in the 4th column. But it does not work. There is already data from the database to other columns and it is working , but this is not working for the 4th column in the drop down list. How do you add in a table 4 th column - This is not working - echo "<td> <select> <?php $sql = "SELECT name FROM categories"; $result=mysql_query($sql); while ($row = mysql_fetch_array($result)); <option>". $row[name] ." </option> } ?> </select></td>"; echo "<td><a …

Member Avatar
+0 forum 0

Hi, I need advice on how to implement a Review Management System. Something like realized on mypresences.com or brightlocal.com Not all services allow you to interact with their API. Review services are productreviews, trustpilot, tripadvisor, whirlpool, wordifmouth, seek, indeed, glassdoor. Maybe you now a script or have an offer how it can be realize. Help me, please.

Member Avatar
+1 forum 0

I am working on a project for drag and drop items in a shopping cart. For an item dropped into the cart, I am trying to implement jQuery $.ajax. The result back from the PHP is pre-pended with '`' and I can not figure out why. This is the javascript: $('#target').droppable({ drop: function(event,ui) { var id = $(ui.draggable).data('id'); var aisle = $(ui.draggable).data('aisle'); $.ajax({ url : base_url+'/index.php/groceries/jquery_append_to_list', cache : false, type : 'post', data : { 'id' : id, 'aisle' : aisle }, success : function(data) { $('#target').append('<p data-id="'+id+'" data-aisle="'+aisle+'" class="draggable">'+data.item+'</p>'); } }) } }); This is the PHP script: function …

Member Avatar
+0 forum 0

I am under developing PHP add to cart without DB, so that i am using SESSION, actually get data from fetch_data.php data to my_cart.php using the POST method, successfully retun the values, After receiving the post data how can i convert to display like a table. workout: fetch_data.php return values. https://snag.gy/IASCMZ.jpg & values received https://snag.gy/ojWxHe.jpg Here is my my_cart.php : // FYI -> Here i am using only two fields : voice_sku & voice_name <table width="100%" cellpadding="6" cellspacing="0"> <thead> <tr> <th>Voice Sku</th> <th>Voice Name</th> <th>Remove</th> </tr> </thead> <tbody> <?php session_start(); $voice_sku = ''; $voice_name = ''; if(isset($_POST['voice_sku'])&& isset($_POST['voice_name'])) { // …

Member Avatar
+0 forum 0

I have One Problem in my coding ..I want to upload multiple images in the database in one row with using comma ... for($i=0;$i<count($_FILES['eventpic']['name']);$i++) $pic = $_FILES['eventpic']['name'][$i]; $tmp =$_FILES['eventpic']['tmp_name'][$i]; $location="pics/".$pic; move_uploaded_file($tmp,$location); $q="insert into tbl1(title,tdate,eventpic)values('','','$pic')"; echo $q; through this code i can upload tthe multiple images but not in a single row ....

Member Avatar
+0 forum 0

Hello I am using Crystal report version 11.5.8.826, php version 7.0.10, Apache version 42.4.33 and MySql Version 5.7.14. I have created the sampel rptone.rpt file that contents sample report. I want to load that rptone.rpt file using php. With Crystal report 11.5.8.826, php 7.0.10, apache 42.4.33 and MySql 5.7.14 i have tried to connect/load crystal report file that is .rpt file using COM Object but it gives error $my_report = "report/rptone.rpt"; $COM_Object = "CrystalReports115.ObjectFactory.1"; $objCom = new COM($COM_Object, "localhost", 0, ""); $crapp = $objCom->CreateObject("CrystalDesignRunTime.Application"); $creport = $crapp->OpenReport($my_report, 1); This expected to be open rptone.rpt file that must show the report …

Member Avatar
+0 forum 0

I am following the below module, https://www.webslesson.info/2018/04/shopping-cart-by-using-bootstrap-popover-with-ajax-php.html How can i use without quantity [Product Name, Price, total, Action] i tried lot fail again and again. I am learning stage in PHP, any help pls welcome.

Member Avatar
+0 forum 0

I am having problem in submitting this form when I select "1" on the number of setting in html form. The submit button is working if I select 2 in the number of sitting from html form as it will show all the form fields but when I select 1, submit form is not working. I am new to PHP This is my html form <form name="register" method="POST" action="process.php"> <label>Select Number of Sitting(s)</label> <select name="sitting" id="sitting" class="form-control" onchange="showDiv(this)"> <option value="1">1</option> <option value="2">2</option> </select> <div class="output1" id="div1" name="onesitting"> <label>School Name</label> <input type="text" name="schoolname[]" id="schoolname1" class="form-control" placeholder="School Name" required> <label>Exam Type</label> <select …

Member Avatar
+0 forum 0

Hi i'm Anis. I want to ask how i can attach image from database in FPDF?

Member Avatar
+0 forum 0

My code about filterable audio searching, here how can i add Add-To-Cart functionality? code : index.php <?php //index.php include('database_connection.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Voice Repository</title> <script src="js/jquery-1.10.2.min.js"></script> <script src="js/jquery-ui.js"></script> <script src="js/bootstrap.min.js"></script> <link rel="stylesheet" href="css/bootstrap.min.css"> <link href = "css/jquery-ui.css" rel = "stylesheet"> <!-- Custom CSS --> <link href="css/style.css" rel="stylesheet"> </head> <body> <!-- Page Content --> <div class="container"> <div class="row"> <br /> <div class="col-md-12"> <h2 align="center">Voice Repository Bank</h2> </div> <div class="col-md-3"> <!-- Price --> <!-- <div class="list-group"> <h3>Price</h3> <input type="hidden" id="hidden_minimum_price" value="0" /> <input type="hidden" …

Member Avatar
+0 forum 0

*Multiple database select - but print ids separately* $sql = "SELECT * FROM peron, peronmedia WHERE peronmedia.PID=5" and peron.ID=5"; $xc = mysqli_query($baglanti, $sql); $rs=mysqli_fetch_array($xc); echo $rs["peron.PID"]; echo $rs["peronmedia.ID"]; **but the codes don't work** ## **How can I do it?** ## Thank you.

Member Avatar
+0 forum 0

Magento how to apply discount for new customer like 1st order 5% discount and 3rd order 10% discount?

Member Avatar
+0 forum 0

Hello Frds, select box option add new state in add.already same state in condition check already exist using php pdo.please help me.

Member Avatar
-1 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

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

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 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

Hi there, recently I have created stored procedure in **Postgres Sql** which deals about with hashing passwords. When used via **pgAdmin** tool it works like a charm as stated below. SELECT horeca_user.update_token( 1, //user_id 1, //type 'sdsfsdfs' //token ) I have also installed extension **pgcrypto**. It works when called via **pgadmin** tool, but not inside **laravel** app as stated below my php code. $token=\DB::select("SELECT * from \"horeca_user\".update_token('$type', '$user_id', '$token')"); and finally this is my procedure code. CREATE OR REPLACE FUNCTION horeca_user.update_token(tp integer,userid integer,token character varying) RETURNS character varying LANGUAGE 'plpgsql' VOLATILE PARALLEL UNSAFE COST 100 AS $BODY$ DECLARE uid INTEGER; …

Member Avatar
+0 forum 0

The End.