39,320 Topics
| |
Hello guys, I have been trying to fix these errors, but it wont work. This are the errors im getting Warning: mysqli_query() expects parameter 1 to be mysqli, object given in /home/335456/public_html/hoi/class.user.php on line 35 Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in /home/335456/public_html/hoi/class.user.php on line 36 … | |
Hello I'm new in the forum Can anyone help me with some hints how can i send email php mail with this format on body? On every closing of turn on local pos system the system sends data to webhost and the webhost deliver email to recipient <!DOCTYPE html> <html> … | |
Hi, I tried to change the form action based on selection option and hoping that my javascript validation function working properly too... I found out one solution and hoping this javascript can do that kind of thing. I tried so many ways and I think there's something wrong with my … | |
I have form having input type file to upload image & other input fields. How to submit form using websocket ? $("#form").submit(function() { "use strict"; var formURL = $(this).attr("action"); var postData = new FormData(this); //alert(postData); $.ajax({ type: 'POST', url: formURL, data: postData, processData: false, contentType: false, success: function() { $('.content').prepend("<div … | |
What are the areas of improvements which should be covered in next PHP stable release PHP 8? | |
Is it possible to upload a file in php without form tag browse button and upload button. if particular file exist in folder i want to upload that file to server..how it is possible | |
hello, im trying to do some php , and sql, to grab the next or previous record when pressed one of the buttons, and display on page. the thing is that will display the next row from the db, but then it wont execute again, when i click on next … | |
Here is the error it gives me Warning: mysqli::query(): Couldn't fetch mysqli in C:\xampp\htdocs\bootstrap\tickets_info.php on line 27 db problem. Warning: main(): Couldn't fetch mysqli in C:\xampp\htdocs\bootstrap\tickets_info.php on line 31 Fatal error: Wrong SQL: SELECT `Uplata`, `Dobivka`, `Date`, `sharedTime`, `match1`, `match2`, `match3`, `match4`, `match5`, `match6`, `match7`, `match8`, `match9`, `match10`, `match11`, `match12`, … | |
Hi People; I've got issue in uploading image in cake php. Thing is that, I have a form, where i have input type="file". I need to upload a file in a directory and save its path in database. In "view" its like... <tr><td> <?php echo $this->Form->input('field', array( 'type' => 'file', … | |
Hi guys, I need to put data that i get it from db2 and display it into each text boxes (Name, Address and Postcode). What i got now, its displayed Name's data that i got from db2 into all text boxes (Name, Address and Postcode) . All i want is … | |
Hai. i'm beginner in php. Can someone help me to insert the calculated value into database. I'm trying to insert calculated value into database but it doesn't work. This is my code. <?php $ic=$_SESSION['ic']; $query=" SELECT * FROM form WHERE ic='$ic'"; $result=mysql_query($query); $record=mysql_fetch_array($result); $query1=" SELECT * FROM login WHERE userIC='$ic'"; … | |
$image = file_get_contents('http://4rapiddev.com/wp-content/themes/4rapiddev/images/authors/hoanhuynh.png'); file_put_contents('/home/jiby/Downloads/image.jpg', $image); //Where to save the image on your server | |
Im working on a small website and im a little confused on one step. I'm following a very simple mvc pattern, ive currently got one controller that creates a session array that holds all the posted data IF the form has been submitted, This data is coming from several different … | |
How can i select the multiple files to upload at once using php? | |
Hi all, can anyone help me to do the arrangements. if the URL is like example.com?mr3=50,50,50,50,50&mr2=90,70,70,70,70&mr1=90,90,90,90,90 then i want to arrange in the order ?mr1=90,90,90,90,90&mr2=90,70,70,70,70&mr3=50,50,50,50,50 Thanks in advance. | |
I have this Image code and I want to resize it using CSS.. <div id="TA_selfserveprop634" class="TA_selfserveprop"><ul id="FkGjsTFbWr" class="TA_links aICFqBWnArX"><li id="v65BTuNt" class="Id2gL5m3F1"><a target="_blank" href="https://www.tripadvisor.com/"><img src="https://www.tripadvisor.com/img/cdsi/img2/branding/150_logo-11900-2.png" alt="TripAdvisor"/></a></li></ul></div><script src="https://www.jscache.com/wejs?wtype=selfserveprop&uniq=634&locationId=307103&lang=en_US&rating=true&nreviews=5&writereviewlink=true&popIdx=true&iswide=false&border=true&display_version=2"></script> </div> have tested on CSS however it does not have any effect .TA_selfserveprop{ width:10%; height:10%; } Please can any one points it to me … | |
I am new to php frameworks, it is said that php frameworks provide reusable code, more than code written in flat php, but in most php frameworks we write code in 3 sections like models, views, controller etc. How that code is reusable, in another projects? In flat php, we … | |
SEEMS AS IF MY ARTICLE HAS BEEN SUBMITTED TWICE. I DO APOLOGISE FOR THAT Hi guys, I'm working on a small website and I'm currently stuck on a small issue. Ive got a set of dropdown boxes created and populated in HTML, for example: <select name="heatingType" id="heatingType" required> <option value="" … | |
| Hi all, I'll be working on a project that basically takes a UID and displays basic user info like courses taken. Seems simple, but I'd like to read suggestions as to how to best tackle this. I would like to protect against possible XSS attacks and SQL injections. Any suggestions? … |
Hello, Another issue came up, when needed to run mass-functions. archiveinv.php is generating html-file with result of query function. This part is working fine. And launched from form-link "archiveinv.php?offerid=$offerid" does it's job. But, when i need to launch many of them in same time, with array result, it's harder to … | |
I have to execute a very long time script in php, during the execution the browser still waiting. There is any way to "tell" the browser to stop waiting as the page was completed ? but obviously the sript must continue | |
Hello, I'm using a function for uploading images on the server and database. The only problem is that I can not properly put to the various alerts for required fields or missing and with happened insertion message. For the moment my code, obviously wrong, is so: include_once 'function/upload.php'; if(isset($_POST['submit'])) { … | |
I'm learning the ways off writing code in OOP, but i have a file where i do not know how to change it in oop. I have written php code before, but dont know how to convert this file in OOP cant somebody help me with a example of my … | |
I'm Using **AdminLTE-2.3.0** template, **jquery.imgareaselect.js** I'm using bootstrap modal to submit form via ajax. Inside Modal I have preview of image before upload. And **imgareaselect** is not working well that I proceed further with image cropping. **ScreenShot of error is attached.** **Please help.** **Thanks.** **imgareaselect-animated.css** .imgareaselect-border1 { background: url(images/border-anim-v.gif) repeat-y … | |
Hello, I'm having trouble uploading all the various data to the database, can you help? The code is this, I have done some testing but the original image and thumbnail are loaded properly in the directory, but all the data are not passed to the database. What is the correct … | |
Hello, just I ask for help because I can not find solution, despite my tests. How can I get the final image file should be alone **rand + original file name + extension** instead of the **rand + extension**. <?php // ************************************************************************* // **** Setup the variables for your script … | |
Hi, i need urgent help.. iam working on leave management system(LMS).if the employee apply for the leaves means,one message go to HR inbox (internal application inbox). iam designing inbox for this..it has two parts(2 coloums).in the first coloumn iam displaying messages with employe name,id nd subject(just like preview of the … | |
How to create image of receipt using **file_put_contents** or **imagecreatefromstring** , **imagejpeg**? I have following code, which generates corrupted images, when I open images it shows **invalid image** And how to email generated image ? ( *optional* ) Thanks in advance. $html_code = ' <div class=confirmation-wrapper id=test> <div class=container> <div … | |
I am creating a dynamic Form, which is like a registration form on my website.The text fields needs to accept and allow multiple entries .since i am a beginner and i am not sure on how to start ..i already created my html code and form has working fine for … | |
Hi everyone i need help in getting value from 3 depenedable dropdown menu and after selecting option from 3 dropdown menu the data showed be shown in textbox eg. First value **package1** Second Value **car1** Third value **Type** and textbox value **Rate1** **Rate2** **Rate3** Please help me in this Thanks … |
The End.