I have table i wish to count how many times a value appears in all column the table structure id Subject1 Subject1score subject1grade Subject2 Subject2score subject2grade 1 English 100 A Mathematics 100 C HERES MY PREVIOUSLY TRIED CODE <?php $subject1grade='A'; $subject2grade='A'; $subject3grade='B'; $a=array("$subject1grade","$subject2grade","$subject3grade"); print_r(array_count_values($a)); ?> THE RESULT Array ( [A] => 2 [B] => 1 ) I NEED THE CODE TO DISPLAY You made 2A(s), 1B(s) I want to count how many A's and C's

Member Avatar
Member Avatar
+0 forum 3

Hi guys, its there any way to change the trigger of this button "add to cart" to run this link? I keep trying to figure out how to edit but it dosent work. :(. Buttton: `<button type="submit" name="add-to-cart" value="<?php echo esc_attr( $product->get_id() ); ?>" class="nm-simple-add-to-cart-button single_add_to_cart_button button alt">text1</button>` Link that i want to trigger from that button insted going to shop cart: `<a href="javascript:void(Tawk_API.toggle())"</a>`` I really appreciated if I can be helped please, i know it is a simple code but i can't solve the code.

Member Avatar
Member Avatar
+0 forum 1

$strSPQuery = "SELECT * FROM `san_pham` where ma_san_pham=".$arrMa[$i]; $resultSp= mysqli_query($conn,$strSPQuery); $rowsp = mysqli_fetch_array($resultSp); $tong += $rowsp["gia"]*$arrSl[$i];

Member Avatar
Member Avatar
+0 forum 3

I have used the breadcrumblist mentioned by the schema.org for my [[website](www.xenex-media.com.au)](https://xenex-media.com.au/) <script type="application/ld+json"> { "@context": "https://schema.org/", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://xenex-media.com.au/" },{ "@type": "ListItem", "position": 2, "name": "About Us", "item": "https://xenex-media.com.au/gold-coast-web-designers/" },{ "@type": "ListItem", "position": 3, "name": "Our Services", "item": "https://xenex-media.com.au/digital-marketing-agency-gold-coast/" },{ "@type": "ListItem", "position": 4, "name": "Contact Us", "item": "https://xenex-media.com.au/contact-us/" }] } </script> And this is the result showing in Google searches: https://i.imgur.com/wYTqfZ7.png What is missing? Please guide. Regards.

Member Avatar
Member Avatar
+0 forum 4

I am thinking of moving to ecommerce development. There is just so much out there so much so that I find myself at a loss as to where to start. I do front end development but I understand backend equally well. Ideally I would like to find a suitable e-commerce system that I can work with, tweak and customise. So if a client needs an ecommerce site my task would be to build a custom interface and hook it up with this system. If some changes are necessary to make this work that would be done. What are the best …

Member Avatar
Member Avatar
+0 forum 5

i need to pop a bootstrap modal but from inside will need to make queries from a PHP variable that will vary depending on where the pop originated from. so i have this in my file : <a href="#" class="btn btn-md btn-success" data-toggle="modal" data-target="#editUser" id="User" data-id="UserID123"> update </a> How can I put the value UserID123 in a php variable once in the modal so I can use it for queries ... I've been looking around but haven't seen the solution ... some suggest AJAX but i could figure out to adapt it here thanks

Member Avatar
Member Avatar
+0 forum 8

With this php code, I send a request for payment with Paypal sandbox account. However when I go to the submit page I cant see what amount I am paying: https://i.imgur.com/iTra1SQ.png -> here in the red shoulld be displayed - 10.00(amountPayable). How can I send it so it's showed? use PayPal\Api\Amount; use PayPal\Api\Payer; use PayPal\Api\Payment; use PayPal\Api\RedirectUrls; use PayPal\Api\Transaction; require 'bootstrap.php'; $payer = new Payer(); $payer->setPaymentMethod('paypal'); // Set some example data for the payment. $currency = 'GBP'; $amountPayable = 10; $invoiceNumber = uniqid(); $amount = new Amount(); $amount->setCurrency($currency) ->setTotal($amountPayable); $transaction = new Transaction(); $transaction->setAmount($amount) ->setDescription('10 GBP payment') ->setInvoiceNumber($invoiceNumber); $redirectUrls = …

Member Avatar
Member Avatar
+0 forum 1

hi brothers , i work on a ASP.NET MVC Project, please i try to get a cookie who created already using server side C# , and in a pure HTML page not .CSHTML i talk now about .HTML page , in this page i want to using javascript to read the value of the cookie that i created using C# . i wish if anyone can help me and thanks so much in advance.

Member Avatar
Member Avatar
+0 forum 1

the below code is to list the running exe files in the windows task manager. but i need only the running applications in windows task manager. if aybody knows pls help me by sending code for this. i am awaiting pls. import java.io.*; import java.util.*; public class GetProcess { public static List listRunningProcesses() { List<String> processes = new ArrayList<String>(); try { String line; Process p = Runtime.getRuntime().exec("tasklist.exe /nh"); BufferedReader input = new BufferedReader (new InputStreamReader(p.getInputStream())); while ((line = input.readLine()) != null) { if (!line.trim().equals("")) { // keep only the process name processes.add(line.substring(0, line.indexOf(" "))); } } input.close(); } catch (Exception …

Member Avatar
Member Avatar
+0 forum 7

Can anyone help me with my search engine. I need filter search in the system using PHP. The problem with the code: All the provided fields must be filled up..unless it will not work There were 6 fields such as Remark Status: Industry: Position: Location: Age Range: Min and Max I have to use these fields as the filters,but eventually all the fields must be filled up before it works..How if i provide just one field, let say i fill the position as HR Manager so i did not specify its age and location...Please Help me on this,,, if(isset($_GET['advance_searching'])){ if …

Member Avatar
Member Avatar
+0 forum 14

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

Hlo Plz anyone give a coading of classic asp i want to save my csv and excel file in databse

Member Avatar
+0 forum 0

i want to display the stored image in fdpf.

Member Avatar
Member Avatar
+0 forum 40

Receiving error - Warning: Missing argument 4 for Get_All_Orderlines_Range(), called in /home/download/domains/1ecommerce.com/public_html/dev/_cms/list_orders.php on line 184 and defined in /home/download/domains/1ecommerce.com/public_html/dev/_cms/list_orders.php on line 161 Line 161: function Get_All_Orderlines_Range($id, $all = "", $from_date, $to_date){ $sql = "SELECT * FROM orders"; $sql .= " INNER JOIN orderline on orders.OR_ORDER_NO = orderline.OL_ORDER_NO"; $sql .= " WHERE OR_CUSTOMER_ID = '$id'"; if($all != "ALL"){ if($from_date != "" and $to_date != ""){ $sql .=" AND (orders.OR_DATE_CREATED BETWEEN '" . $from_date . "' AND '" . $to_date . "')"; } } $sql .= " ORDER BY orderline.OL_ORDER_NO"; //echo $sql; return FetchSqlAsObjectArray($sql); } Line 184: $orderlines = Get_All_Orderlines_Range($printed, pack_calendar_date($from_date, "from"), …

Member Avatar
Member Avatar
+0 forum 6

How I can get current date and 15 days back date from current date in 'Y-m-d' format ?? e.g. if current date is 2011-06-21 then $currentdate=2011-06-21 and $dateback=2011-06-06;

Member Avatar
Member Avatar
+1 forum 9

hi, i have installed XAMPP, but i would like to run my localhost from another computer..

Member Avatar
Member Avatar
+3 forum 16

I'm a novice in PHP and I would like to know on how exactly could I define said row. Any helps/tips are appreciated. Thank you in advanced! function add_review() { if(isset($_POST['add_review'])){ (THE UNDEFINED ROW) **$product_id = $row['product_id'];** $review_name = escape_string($_POST['review_name']); $review_email = escape_string($_POST['review_email']); $review_content = escape_string($_POST['review_content']); $review_created = date("Y-m-d H:i:s"); $rating = escape_string($_POST['rating']); $review_query = query("INSERT INTO reviews(review_id, product_id, review_name, review_email, review_content, review_created, rating) VALUES('NULL', '$product_id', '$review_name', '$review_email' , '$review_content' , '$review_created' , '$rating')"); confirm_query($review_query); set_message("Thank you for the feedback!"); }}

Member Avatar
Member Avatar
+0 forum 1

Hi all, I am very new to PHP and MYSQL and have a class assignment I need help with. I am trying to make a page with an HTML form that will update my MYSQL database. You can view my pages online here: [URL="http://baileyjumper.aisites.com/Scripting-Week7/homework4/exercise-five.php"]http://baileyjumper.aisites.com/Scripting-Week7/homework4/exercise-five.php[/URL] I need help with the "Edit" section, if you look online. Here is the code for my Edit page: [CODE=PHP] <?php $hostname = "localhost";//host name $dbname = "baileyjumper_imd203";//database name $username = "baileyjumper_imd";//username you use to login to php my admin $password = "chris4ever";//password you use to login //CONNECTION OBJECT //This Keeps the Connection to the Databade …

Member Avatar
Member Avatar
+0 forum 21

Got Client with need of **"online print shop"** Client is providing paper printing (like business cards, flyers), printing on cloths, office stationary, logo embroidery on any type of clothing. Client provided some examples. **Links** * [rockdesign](https://www.rockdesign.com/) * [moo](https://www.moo.com/ca/) * [readyprint](https://www.readyprint.ca/) * [vistaprint](https://www.vistaprint.ca/) * [printshop](https://printshop.ca/) * [printvenue](https://www.printvenue.com/) **Where do I start?** Which platform should I choose? 1. CorePHP 2. Wordpress 3. WooCommerce 4. Magento 5. Prestashop 6. WordPress Is there any plugin or script that should I go for???

Member Avatar
Member Avatar
+1 forum 14

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 a search form, and I want to change the url from: https://www.example.com/search?search=term+term to: https://www.example.com/search/term+term I know how to use htaccess, but I don't know how to send user to friendly URL after he submit the form. Here is my form: <form action="search" method="get"> <input type="text" name="search" id="Searchx" placeholder="Search Marketplace" /> </form>

Member Avatar
Member Avatar
+0 forum 2

Hello i have this form and my php code skills not very good if someone make change password I would be glad thank you <div class="col-lg-9"> <div class="nk-box-3 bg-dark-1"> <form class="change-password" method="post" action=""> <input type="password" class="form-control input-change-password" name="opass" id="opass" placeholder="Old Password"> <div class="nk-gap-1"></div> <input type="password" class="form-control input-change-password" name="npass" id="npass" placeholder="New Password"> <div class="nk-gap-1"></div> <input type="password" class="form-control input-change-password" name="cnpass" id="cnpass" placeholder="Repeat New Password"> <div class="nk-gap-1"></div> <button type="Update" class="nk-btn link-effect-4 ready"><span class="link-effect-inner"><span class="link-effect-l"><span>Change password</span></span><span class="link-effect-r"><span>Change password</span></span><span class="link-effect-shade"><span>Change password</span></span></span></button> </form> </div> </div>

Member Avatar
Member Avatar
+0 forum 12

I am required to change ip adress everytime this function gets executed I am trying this code below .But I am completly confused.How can I do this function getData($domainName, $ext) { $proxy = array( 1 => array( '88.255.101.247', '8080' ), 2 => array( '176.53.2.122', '8080' ), 3 => array( '37.123.96.237', '8080' ) ); shuffle($proxy); $servers = array( "biz" => "whois.neulevel.biz", "com" => "whois.internic.net", "us" => "whois.nic.us", "info" => "whois.nic.info", "name" => "whois.nic.name", "net" => "whois.internic.net", "tv" => "whois.nic.tv", "ru" => "whois.ripn.net", "org" => "whois.pir.org", "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" ); …

Member Avatar
Member Avatar
+0 forum 1

Need help to scroll when mouse wheel is used. Scroll Up or Down as per mouse action. I'm trying to create `moveDown()` & ` moveUp()` function, to scroll according mouse wheel action On scroll, remove class of current div :- `.active` and add class :- `.active` to scrolled div(div in viewport), by default first div has class `.active`. Following is my code structure. **HTML** <div class="wrap"> <div class="pane active"><h1>pane_1</h1></div> <div class="pane"><h1>pane_2</h1></div> <div class="pane"><h1>pane_3</h1></div> <div class="pane"><h1>pane_4</h1></div> <div class="pane"><h1>pane_5</h1></div> <div class="pane"><h1>pane_6</h1></div> </div> **CSS** .wrap { height: 100vh; width: 100vw; position: absolute; display: inline-block; margin: 0 auto; top: 0; left: 0; background: #D88C2A; …

Member Avatar
Member Avatar
+0 forum 2

Hi all, this is my first post and would appreciate some insight as to where im going wrong. I have the following form that successfully registers a new user to my mysqsl database via PHP - with the following $sql INSERT Function The problem im having is sending the activation \ confirmation email to the new users email address. [code] //email function ini_set("SMTP", "smtp.server.com");//confirm smtp $to=$email; // Your subject $subject="activation required"; // From $header="from: test email <Test@test.com>"; // Your message $message="Your Comfirmation link\r\n"; $message.="Click on this link to activate your account\r\n"; $message.="You can not login to your new account until …

Member Avatar
Member Avatar
+0 forum 7

I am working on an image cropper. And I am on the first stages. I want to know how to create the the two divs over the image, one is transperent while the other acts as a mask. Can this be done with CSS? Or should I consider jQuery? This is what I want to accomplish ... ![Croppr_js.png](/attachments/large/4/5d86601b7d949d7e68afe7357beafc5d.png) I just want to know how to create this overlay image feature.

Member Avatar
Member Avatar
+0 forum 11

* My [Primary code](https://jsfiddle.net/kvp2Laju/) jsfiddle * I was using [iscroll](https://github.com/cubiq/iscroll) to scroll to target. * **data-section** attribute is used for section id. section is full height & full width size. * **data-slide** attribute is used to get target id, it is animated mouse icon. how to scroll to target ? Need help to create scrolling using custom **data-** attribute

Member Avatar
Member Avatar
+0 forum 5

I have to take over a php project and I am totally new to php. I have this webpage that displays all packages sent to a customer and I want them to be able to click on the tracking number to do UPS website tracking. The code: <?php $result = mysqli_query($conn, $sql); if (!$result) { exit(); } else { if (mysqli_num_rows($result) > 0) { while ($row = mysqli_fetch_assoc($result)) { echo "<tr>"; echo "<td><strong>"; echo $row['trackingno']; echo "</td>"; echo "<td>"; echo $row['date_shipped']; echo "</td>"; echo "<td>"; echo $row['desc_reference2']; echo "</td>"; echo "<td>"; echo $row['status']; echo "</td>"; echo "<td>"; echo $row['date_delivered']; echo …

Member Avatar
Member Avatar
+0 forum 1

Many thanks if you are looking at this. I have a simple order form that allows users to place an order for an item. The form also allows the user to add more items, calling a javascript function that utilizes innerhtml. Included in each order form, are dates. I am using a jquery calendar to populate the dates. When the original form is loaded, the calendar works fine, but when I call the function to add items via the innerhtml, the calendar does not work, either on the original form text fields, or the form text fields added by the …

Member Avatar
Member Avatar
+0 forum 4

Hello guys, unfortunately it looks like I'll have to use your help again. I'm struggling for few days to configure some filters in woocomerce and I can not do it at all. I'm trying to configure some filters to appear only in subcategories, and a main filter only in the main category. Here is an exemple how i would like to configure this: **Category:** Sunglasses | Sunglasses 1 | Sunglasses 2 **Subcategory** (Just 1 Filtre) Boys | Girls ------------------------------------------------------------------------------------------- **Subcategory** Boys | Girls **Filters:** Color | Model | Brand | Etc. Any idea how to make this possibile? I would …

Member Avatar
Member Avatar
+0 forum 4

The End.