39,326 Topics

Member Avatar for
Member Avatar for Niels_1

Hello guys, i'm trying to show the full name of my user what is logged in. I am new to writing in oop. Im getting a undifined index fullname error. Can anyone help me? /*** for showing the username or fullname ***/ public function get_fullname($userid) { $stmt = $this->db->prepare("SELECT fullname …

Member Avatar for AndrisP
0
141
Member Avatar for Niels_1

Hello guys i wrote an public function to create a project, but i need to call it in my javascript file. How can i do this. this is the public function i want to use. the public funtion is in data.php public function create($projectid,$projectnaam,$startdatum,$einddatum,$omschrijving) { try { $stmt = $this->db->prepare("INSERT …

Member Avatar for broj1
0
321
Member Avatar for ramsiva

Below is my array i need help for getting ans store this array into ---> array( "0" => array ("ex1" => ff,"ex2" => 3)); Array ( [0] => Array ( [0] => Array ( [ex1] => ff [ex2] => 3 ) ) [1] => Array ( [0] => Array ( …

0
115
Member Avatar for masimies

Hello, I try to limit query results and fetched items in same time. But, with my script, that is not functioning together. Selected item is not staying as variable in query. Something is badly ordered in this script. <?php if (!isset($_GET['startrow']) or !is_numeric($_GET['startrow'])) { $startrow = 0; } else { …

Member Avatar for masimies
0
234
Member Avatar for Niels_1

I'm trying to convert my php code into OOP. I'm using Datatables with jquery en ajax + JSON to load projects into a table. But i want to convert this code into OOP, but i always get a invalid json response. Im new into writing OOP, so could anyone help …

Member Avatar for TexWiller
0
265
Member Avatar for FarrisFahad

I have searched Google and Youtube for Facebook log in toturials but couldn't find something useful. Do you know any good articles or website or even a Youtube toturial that covers the facebook log in system? How did you learn it?

Member Avatar for AleMonteiro
0
180
Member Avatar for Sourav_5

Hi guys, this is my first post here. I built Fb app around 2010 and then it was much easy to get started. But after 6 years I am starting again to develop my 1st app after tha gap. But now it's been hard, as I need HTTPS for the …

0
147
Member Avatar for RudyM

Hi all, I've been wrestling with CodeIgniter to work with MSSQL. Turned out to be a whole ordeal with changing the functions to use the newly updated sqlsrv functions. After all that, I still seem to have issues with it. While I'm working this out, I wonder if anyone has …

Member Avatar for RudyM
0
161
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
489
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
92
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
471
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
144
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
323
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
332
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
200
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
218
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
318
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
245
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
168

The End.