52,566 Archived Topics

Remove Filter
Member Avatar for
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 { …

Web Development mysql php sql
Member Avatar for masimies
0
235
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 …

Web Development javascript-jquery mysql php
Member Avatar for TexWiller
0
266
Member Avatar for Lau_1

Hello, I am still confusing how to differentiate with responsive website and mobile web apps. Responsive website can auto configure to fit into the browser. Currently I had developed responsive website. So how about mobile web app? Is mobile web app launch using browser? How can this mobile web app …

Web Development app-store apple web-browser
Member Avatar for Lau_1
0
621
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?

Web Development javascript-jquery mysql php
Member Avatar for AleMonteiro
0
181
Member Avatar for mehnihma

HI I have this in wordpress css: * { padding: 0; margin: 0; } How can I disable `margin: 0;` in child theme? Thanks

Web Development html-css wordpress
Member Avatar for mehnihma
0
286
Member Avatar for Sabasi

This a code made in three.js so its like a gemoetry big cube made with small cube written in css,but i want to make that the source will be an image and that image will be the big structure made with small cube,i.e-if the image is google logo the thing …

Web Development javascript javascript-jquery seo
0
144
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 …

Web Development php social-media
0
148
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 …

Web Development mssql php php-codeigniter
Member Avatar for RudyM
0
164
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 …

Web Development javascript-jquery php
Member Avatar for pritaeas
0
179
Member Avatar for lps

Hi, recently I am taking part in a project which using data-id and data-type to perform script selection. I had read a few articles regarding the issue 'HTML5 Custom Data Attributes ' including [http://stackoverflow.com/questions/15507354/what-are-the-differences-between-using-data-attributes-and-class-id-for-javasc](http://stackoverflow.com/questions/15507354/what-are-the-differences-between-using-data-attributes-and-class-id-for-javasc) I am here asking opinions on the usage of difference in performance, tidyness of code and …

Web Development
0
218
Member Avatar for Maideen

Hi Sir I have a problem in passing value from Popop to main page I am using Master page and aspx page From main page, i can open popup windows and populate data in gridview. I am selecting date and capture the valeu in TextBox. When I click the button …

Web Development asp asp.net javascript
0
228
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 …

Web Development javascript php
Member Avatar for hericles
0
494
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

Web Development file-system gui php
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 …

Web Development php sql
0
93
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`, …

Web Development mysql php sql
Member Avatar for Stefce
0
474
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', …

Web Development file-system image php
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 …

Web Development javascript php
Member Avatar for slowlearner2010
0
145
Member Avatar for LONGWAY

I cant center the logo in the middle of the page horizontaly. HEEEEEEEEELP #logo { display:inline-block; margin:10px auto 0 auto; } #logo img {max-width:330.5%; } #logo a{ display: block; margin-left: 0%; margin-right: 0%; } I ve tried many options and nothing works and this is my last1

Web Development
Member Avatar for rproffitt
0
153
Member Avatar for gahhon

Hello guys, Currently I am developing a simple task of my University exercise. Is using EJB to develop the webpages to allowed end-users to reset their password based on the records in database. Unfortunately, I have some issue during the development, which is whenver I press the "Submit" button, it …

Web Development open-source
Member Avatar for rproffitt
0
390
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
377
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="" …

Web Development php software-architecture
Member Avatar for spud91
0
259
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 …

Web Development mysql php
Member Avatar for masimies
0
321
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

Web Development php
Member Avatar for TexWiller
0
248
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 …

Web Development javascript-jquery mysql php
Member Avatar for rubberman
0
256
Member Avatar for FarrisFahad

I have this event handler for when the page is loading. It shows a preloader GIF image when the window start loading. $(window).load(function(){ $("#Preloader").css('display','block'); }); But I don't know how to detect if the window stops loading so I can remove the preloader. How to detect if the window stops …

Web Development javascript javascript-jquery
Member Avatar for gentlemedia
0
227
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
218
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 …

Web Development file-system php
Member Avatar for hericles
0
301
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 …

Web Development file-system php
Member Avatar for pixelsoul
0
243
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 …

Web Development javascript javascript-jquery php
Member Avatar for shashigowda
0
250
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 …

Web Development email mysql php
Member Avatar for hrushi9
0
1K
Member Avatar for FarrisFahad

I am trying to build a scrolling system for my website. This is what I have com up with ... $.ajaxSetup({ cache: false }); $(window).scroll(function(){ if($(window).scrollTop() == $(document).height() - $(window).height()){ picturesCount = $(".Picture-1A").length; allPicturesCount = $("#allPicturesCount").text(); alert('picturesloaded:' + picturesCount + ' PicturesDB: ' + allPicturesCount) if(picturesCount < allPicturesCount){ $.post('ajax/load-latest-pictures.php', {pictures_loaded:picturesCount}, …

Web Development javascript javascript-jquery
Member Avatar for FarrisFahad
0
1K
Member Avatar for Siberian

Anyone familar with how to shrink the width & height without effecting the size of the SVG. As has a huge space around the SVG file and I must get the element to the size of the SVG. The problem is the viewport is bigger then then actual graphic but …

Web Development
Member Avatar for AndrisP
0
278
Member Avatar for RikTelner

I have following (really long) statement: > When I develop website that is entirely compatible with Microsoft Internet Explorer 9, and make it work foulless, I'll make sure that website doesn't require JavaScript to run, and I will make it work entirely without it. Afterwards I will add CSS3 little …

Web Development web-design
Member Avatar for gentlemedia
0
401
Member Avatar for priyanka85

I have an input field which is showing vulnerable in security scan using XSS attack as: STYLE="xss:e/**/xpression(try{a=firstTime}catch(e){firstTime=1;alert(969)});" Could you please suggest how can we prevent from vulnerability like this ? Field: <input id="{ControlItemUniqueID}Data" style="width:150px" name="{ControlItemUniqueName}" type="hidden" {MaxLength}{IsEnabled} {IsReadOnly} class="datatext {CssClass}" value="{Data}" onkeypress="sanitizeEmployeeDateData()" onmouseover="sanitizeEmployeeDateData()" onblur="sanitizeEmployeeDateData()> <script> function sanitizeEmployeeDateData() { var EmployeeDate …

Web Development asp asp.net javascript-jquery
0
169
Member Avatar for RikTelner

--- (nevermind, I'm just not good enough for it, I'll go for less appealing solution that I know) ---

Web Development html-css seo
Member Avatar for gentlemedia
0
258
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 …

Web Development php
Member Avatar for uttar14
0
245
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
425
Member Avatar for sukesh55555

HI.... im new to php, i ve a doubt. i want source code in php for the requirement as traited below. im creating a registration form with two image file uploading system. I need a source code in such way that, the inputs NAME, AGE, MOBILE NUMBER, image upload(ONE), image …

Web Development file-system php
Member Avatar for rproffitt
0
356
Member Avatar for RikTelner

https://jsfiddle.net/fzbx09qL/1/ Having above code. This is as far as I've gotten. I need someone to instruct me on three things. First off, how do I make sure it appear smoothly? I have `transition` but it doesn't seem to work, must be other way. Second, there is some code that I …

Web Development html-css
Member Avatar for gentlemedia
0
322
Member Avatar for masimies

Hello, Simple is not so simple i see, Trying to save file in html-format from server to local disk. <?php if(isset($_POST['submit'])) { $file = $_POST['file']; file_get_contents('files/$file'); file_put_contents('download/$file'); } ?> <form method="post" action=""> <select name="getfile" id="getfile"> <option value="">Select file...</option> <?php $dir_open = opendir('files/'); while(false !== ($filename = readdir($dir_open))){ if($filename != "." …

Web Development php
Member Avatar for masimies
0
3K
Member Avatar for Marco_4

Hello, simple information. I was creating the connection to the database files with various functions, such as: "Get One, getAll". I wondered if their syntax was safe against sql attacks, though in fact could be improved with the inclusion of the bind, but do not know how to make them …

Web Development mysql php
Member Avatar for cereal
0
187
Member Avatar for seularts

I am trying to make the smooth scroll effects with this basic script for this site: http://greaca9.ro/test/index.html $(function() { $('a[href*="#"]:not([href="#"])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html, body').animate({ scrollTop: …

Web Development html-css javascript-jquery
Member Avatar for panduranga_1
0
328
Member Avatar for didinadeen

I'm trying to populate a multidimensional html table with data from a JSON. The idea is that the first row is with the dates and the next ones start with with the name of the value and for the value for the date in the first row. Just like and …

Web Development html-css javascript-jquery json
Member Avatar for panduranga_1
0
400
Member Avatar for SimonIoa

Hello i have a problem when a user tries to login with his facebook account on my website... i am getting this error 'URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on …

Web Development social-media
Member Avatar for SimonIoa
0
414
Member Avatar for RikTelner

https://jsfiddle.net/jLt3reca/ `nav a div { display: none; }` is being ignored. I don't know why, it's just these 3 simple "selectors" on to another, I really can't see it. In `<nav>` there's a `<a>` and there's `<div>` in this `<a>` that needs to be hidden. It doesn't hide. This isn't …

Web Development html-css sql
Member Avatar for godfreysseki
0
223
Member Avatar for Coderunner

Hello, I have a php script which devide the emails in groups so that each group can send separately. Servers can look it as spam if the group is too big. Now how can I add the correct email address of each person in this script below (cfr '. $ …

Web Development email php
Member Avatar for Coderunner
0
342
Member Avatar for Marco_4

Hello, kindly ask your help regarding a function to upload images in two folders, one original image and the "Thumb" folder for thumbnails. Well, I entered the rand code to rename the file name. Loading is performed properly in the root folder (Original image) but not in the thumb folder. …

Web Development file-system php
Member Avatar for AleMonteiro
0
203
Member Avatar for shashigowda

Hi, how to pass variable value inside js. i want to add **Days** value to **From** date and dispaly it as **To** date here is my code,please go through it,i have explained in comments HTML days:<input type="text" id="capped_days">//manual i/p From:<input id="dt1" type="text">//date picker1 To:<input id="dt2" type="text">//datepicker2 javaScript $("#dt1").datepicker({ dateFormat: "dd-M-yy", …

Web Development javascript mysql php
Member Avatar for AleMonteiro
0
327
Member Avatar for ryan311

public IList<Labour> Labours { get; set; } public class Labour { public string WorkDates { get; set; } public string WorkHour { get; set; } } I have this code above on my class. How can i add this to my Create View Razor? can anyone tell me please. Also …

Member Avatar for Sebastián
0
907
Member Avatar for davy_yg

Source Tree - What is source tree for? I already try using this? One question that I am still doubting. Is it safe? ( I am still new user) Thanks in advance.

Web Development
Member Avatar for davy_yg
0
240

The End.