39,320 Topics
| |
Hi i'm Anis. I want to ask how i can attach image from database in FPDF? | |
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" … | |
This is the code behind the demo at https://www.daniweb.com/connect/oauth/demo | |
*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. | |
<?php require_once('../vendor/autoload.php'); if (!isset($_POST["cart_payload"])) { echo "PAYLOAD NOT SET"; } $items = json_decode($_POST["cart_payload"], true); $line_items = array(); foreach ($items as $item) { $line_items[] = array( $target = 'images/'; $target = $target . basename( $_FILES['image']['name']) 'name' => $item["title"], 'image' => $FILES["image"], 'amount' => $item["price"]*100, 'currency' => 'gbp', 'quantity' => $item["quantity"], ); … | |
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 .= " … | |
I have an application that has core PHP for the signin, registration, dashboard. It has a front end and backend (dashboard). Simple stuff. I need to implement a Scheduling system and [EasyAppointments](https://easyappointments.org/) (EA) has 90% of the stuff I need. EA uses codeigniter and requires login. It has it own … | |
I am a beginner to php and am designing student information system where students need to enter 9 subject and its corresponding grade based on the number of sittings. Is there any better way to do this apart from what I have been doing? These are my codes: <form name="register" … | |
Magento how to apply discount for new customer like 1st order 5% discount and 3rd order 10% discount? | |
You might be familiar with the dreaded blank page when your PHP script doesn't work. Here's how to spit out errors to the screen, instead of getting just a blank page, as well as logging errors to a file. | |
There are two ways to write to a file in PHP. You can either open a stream, and write to it in parts, or you can use `file_put_contents()` which is much more convenient, with the trade off being that it takes up much more memory, and is not ideal if … | |
Hello Frds, select box option add new state in add.already same state in condition check already exist using php pdo.please help me. | |
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; | |
Hello i am getting an error on a CASE WHEN THEN syntax on my mySql SELECT DISTINCT u.uid,c.c_id,u.name,u.profile_pic,u.username,u.email,c.time FROM conversation c, users u, conversation_reply r CASE WHEN c.user_one = '99' THEN c.user_two = u.uid WHEN c.user_two = '99' THEN c.user_one= u.uid END AND ( c.user_one ='99' OR c.user_two ='99' ) … | |
We have a Swagger file for our API, but in our API documentation, we want to show valid responses for each endpoint. I coded up this little recursive function in PHP which takes our Swagger file and spits out a valid response. I use it as follows, for each individual … | |
| |
Hai Frds, My question is i have create select box using state,district,city and town.select state box click add option select box change text box add/edit in text box add tha value save in state select box. How do please help me | |
Here is my code : https://paiza.io/projects/SUiG5qp_wttfcrQn-0Mwew?language=php FYI -> [index.htm -> LineNo : 781 & 782] After successfully received payment response page return 404 error The form & CC-Avenue Payment Gateway Request page working good, after customer paid the response page return 404 error. How can i solve the error? | |
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 … | |
Parse error: syntax error, unexpected '||' (T_BOOLEAN_OR) in php pdo | |
hi, i have installed XAMPP, but i would like to run my localhost from another computer.. | |
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 … | |
already this phone number registration in alert msg how to display in php and mysql | |
I have a form which I am using to filter a recordset. It all works as I want, but for one small annoying thing - there is an empty space at the top of the list of options (see screenshot). How can I get rid of this empty option? ![empty_option.jpg](/attachments/large/4/5ddcc6d6df75ecd1a8e0babbae2b31ba.jpg) … | |
Please suggest something ---- Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, bool given in C:\xampp\htdocs\tourtravel\index.php on line 14** <?php include 'header.php'; include 'slider.php'; ?> <div class="container" > <div class="row"> <div class="col-sm-6"> <?php include 'tab.php' ?> </div> <div class="col-sm-6"> <?php include("config.php"); $q = mysqli_query($con,"select * from packages"); while ($r = … | |
** ## I want a Help to Intergrate Google Calendar API to create Events thure webisite ## ** Ihave tied some google documantation and some tutorials buth they acctually not working properly google documantions are not not working for me | |
Here is my javascript code. function multyTypeUploadAttachments(file,classId,splAttrId){ var campaignID = $('#wk_custCampID').val(); if(campaignID == ""){ var campaignID = $('#wk_edit_camp_ID').val(); } var fileName = $('#'+file.id).val().replace(/C:\\fakepath\\/i, '');//form_skuAttachment var lastChar = file.id[file.id.length -1]; var upload_data = new FormData($('#wk_multy_form_AttrOptionAttachment'+classId+"-"+splAttrId+"-"+lastChar)[0]); $.ajax({ url: BASEPATH + 'c_workOrder/uploadSKUAttachments/'+file.id+'/'+campaignID, type: 'POST', data: upload_data, mimeType: "multipart/form-data", contentType: false, cache: false, processData: … | |
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 … | |
Hi, Is there a PHP script that doesn't allow the approver to be the same as the login e-mail? > $checkEmail = test_input($_POST["Approved_by_Email"]); > if (filter_var($checkEmail == session('session_staff_email'))) { > alert("Please do not use your e-mail as the approver."); > return false; > } I tried to solve the problem, … | |
Why is $if (isset($_GET['edit']) returning empty value when it's inside if (isset($_POST['add_submit']) but it's returning the value that I want When it's not inside if (isset($_POST['add_submit']) and how to fix it. Thank you. if (isset($_POST['submit']) ) { $brand = $_POST['brand']); if (isset($_GET['edit']) ) { $sql = "UPDATE brand SET brand … |
The End.