39,320 Topics

Member Avatar for
Member Avatar for Niels_1

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 …

Member Avatar for pritaeas
0
176
Member Avatar for Lek_Plepi

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

Member Avatar for cereal
0
194
Member Avatar for slowlearner2010

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 …

Member Avatar for hericles
0
485
Member Avatar for hrushi9

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 …

0
181
Member Avatar for Engr.
Member Avatar for jkon
-2
187
Member Avatar for Jiby_1

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

Member Avatar for jkon
0
255
Member Avatar for ajs1351

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 …

0
90
Member Avatar for Stefce

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`, …

Member Avatar for Stefce
0
469
Member Avatar for Albert Pinto

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', …

Member Avatar for mandeep_2
0
3K
Member Avatar for slowlearner2010

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 …

Member Avatar for slowlearner2010
0
143
Member Avatar for Ayuni_1

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'"; …

Member Avatar for AleMonteiro
0
322
Member Avatar for Jiby_1

$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

Member Avatar for cereal
0
91
Member Avatar for spud91

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 …

Member Avatar for spud91
0
330
Member Avatar for RahulAdmane
Member Avatar for malatamil

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.

Member Avatar for lps
0
105
Member Avatar for uttar14

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&amp;uniq=634&amp;locationId=307103&amp;lang=en_US&amp;rating=true&amp;nreviews=5&amp;writereviewlink=true&amp;popIdx=true&amp;iswide=false&amp;border=true&amp;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 …

Member Avatar for lps
0
199
Member Avatar for panduranga_1

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 …

Member Avatar for vps9.net
0
217
Member Avatar for spud91

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="" …

Member Avatar for spud91
0
259
Member Avatar for RudyM

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

Member Avatar for jacks009
-1
139
Member Avatar for masimies

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 …

Member Avatar for masimies
0
317
Member Avatar for TexWiller

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

Member Avatar for TexWiller
0
244
Member Avatar for Marco_4

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'])) { …

Member Avatar for TexWiller
0
166
Member Avatar for Niels_1

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 …

Member Avatar for rubberman
0
253
Member Avatar for hrushi9

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 …

0
215
Member Avatar for Marco_4

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 …

Member Avatar for hericles
0
291
Member Avatar for Marco_4

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 …

Member Avatar for pixelsoul
0
242
Member Avatar for shashigowda

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 …

Member Avatar for shashigowda
0
246
Member Avatar for hrushi9

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 …

Member Avatar for hrushi9
0
1K
Member Avatar for uttar14

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 …

Member Avatar for uttar14
0
241
Member Avatar for Praveen_15

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 …

Member Avatar for Praveen_15
0
423

The End.