52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for James_43

Always get really confused when dealing with timezones... I have a string `8/11/2013`, which I apply the following code: $firstDate = new DateTime($rawData[$backdate][0]); $firstDate = $firstDate->format('d/m/Y'); The issue is that PHP seems to think that the '11' is the day, when it's actually the month (I'm in NZ). When I …

Web Development php
Member Avatar for James_43
0
199
Member Avatar for best4earn

Its showing same result 1280*800 and above but when i change screen resolution to low like 1024*768 class="right" goes down. how can i fix this . Testing screen resoluition at http://quirktools.com/screenfly/#u=http%3A//www.design.earnandearn.com/&w=1280&h=800&a=1 <div class="slider-bg"> <div class="container"> <div> <div class="left"> <h3>Making Money the Easy Way in</h3> <h2>Our Social Network</h2> <p> Achieve your …

Web Development html-css
Member Avatar for best4earn
0
208
Member Avatar for AntonyRayan

I know how to find number of working days for an academic year. But I want to know working days of each and every month from june to april of next year,seperately. How to do?

Web Development javascript javascript-jquery php
Member Avatar for Taywin
0
100
Member Avatar for gogs85

Hi I have problem to get data when insert with ajax. I have ajax.js file and here is this code: $('#text-content').keypress(function(e){ if(e.which == 13) { if($('input#enter-click').prop('checked', true)) { $('#live-send').click(); e.preventDefault(); } } }); $('#live-send').click(function(){ var message = $.trim( $('#text-content').val() ); if($('#text-content').val()!="") { $.ajax({ type: 'POST', dataType: "json", url: './includes/conversation.php', data: …

Member Avatar for pritaeas
0
303
Member Avatar for AntonyRayan

HI, I want to calculate number of working days for the academic year between two dates like(01-06-2015 to 31-10-2015). I saw all codes that are doing only for curtrent year. If I want to do future years , how to do automatically, Here is my code what I tried , …

Web Development javascript-jquery mysql php
Member Avatar for diafol
0
239
Member Avatar for UK-1991

Hello, I tried to integrate api of aylien which is used for article extraction I installed the sk succesffuly but when I tried to run my code it gives me an error Trying to get property of non-object in C:\wamp\www\aylien\index.php on line 15 Notice: Trying to get property of non-object …

Web Development api google-api javascript php
Member Avatar for UK-1991
0
256
Member Avatar for James_43

Hi all, quite a strange problem here. I have a csv file with rows: 20/12/2011 4.75 4.75 4.53 4.55 94.74 432.98 4.57 21/12/2011 4.38 4.38 4.38 4.38 20.9 91.54 4.38 22/12/2011 4.19 4.19 4.17 4.17 8.54 35.71 4.18 23/12/2011 3.86 4.35 3.84 4.22 149.49 625.81 4.19 24/12/2011 4.33 4.33 4.33 …

Web Development php
Member Avatar for James_43
0
278
Member Avatar for jmann22

So i have a simple react component rendering text and images except for 1 line rendering a twitter widget. It works fine but when i route to a different view then come back that widget will not show unless i refresh the page. Sorry i just started using react.js thanks …

Web Development
0
116
Member Avatar for amith_ami

Hi all, I am trying to insert 1000 above data into a table but after inserting 500 something data its showing an "Internal Server Error". I tried after changing max_execution_time in php.ini and some other methods but no use. But this works fine in localhost. Given below is my code. …

Web Development mysql php sql
Member Avatar for diafol
0
243
Member Avatar for wooshman

Hi All, hopefully you can help. I have: <table> <tr> <td width="120" height="120" bgcolor="#8fd656" align="center" onClick="if (this.bgColor=='#8fd656'){this.bgColor='#DDDDDD'} else {this.bgColor='#8fd656'};"> Check Box <input type="checkbox" name="checkbox[]" id="checkbox[]" value="Checked"> </td> </tr> </table> Now this works with changing the background color when I either click the cell itself or check / uncheck the box, …

Web Development javascript
Member Avatar for wooshman
0
5K
Member Avatar for James_43

Hi all, I'm working with a function that only accepts values between 0 and 1, so I need to scale my data first. The first part involved in this is calculating the high/low values of my inputs. I pass this into a function that churns out X and Y values …

Web Development algorithm php
Member Avatar for James_43
0
117
Member Avatar for James_43

Hi all, I have an array $pTimeseries with 365 items inside it. I use a simple for statement, as below: //Add TimeStamp to Historic Data for($i = 0; $i < (count($pTimeseries)); $i++) { $pTimeseries[$i][1] = $rawData[$i + $backdate][0]; } In my Apache error logs I get "Undefined offset: 366" all …

Web Development apache php
Member Avatar for James_43
0
128
Member Avatar for bimaljr

Hi I have a running website which is based on ASP.NET Now I want to convert the full webiste in PHP. The current website is based on DotNetNuke and also modified some modules. Please provide your help to how to do this ? Thank you.

Web Development asp.net php
Member Avatar for Neo_1
0
4K
Member Avatar for Siberian

When previewing sites on devices, I have access to the common devices to see how a page renders, what I don't have access to is the devices that take up a small part of the market, BlackBerries, Amazon Fire, Lumia line of phones and iPhones running newer versions of iOS, …

Web Development ios
Member Avatar for Siberian
0
249
Member Avatar for gogs85

Hi I have problem to get data when insert with ajax. I have ajax.js file and here is this code: $('#text-content').keypress(function(e){ if(e.which == 13) { if($('input#enter-click').prop('checked', true)) { $('#live-send').click(); e.preventDefault(); } } }); $('#live-send').click(function(){ var message = $.trim( $('#text-content').val() ); if($('#text-content').val()!="") { $.ajax({ type: 'POST', dataType: "json", url: './includes/conversation.php', data: …

Member Avatar for diafol
0
441
Member Avatar for Trevor_4

i am having a problem with java script and need to know how i can convert a integer inputted by the user to asterisks. stipulations i have to use a window prompt dialog box and print the asterisks on the page in a paragraph.. i just need help changing the …

Web Development javascript
Member Avatar for diafol
0
273
Member Avatar for Eti_1

Hi, I want to distinguish whether the tab closed by clicking X or by another action (clicking a link, or a button which close the current tab). In Firefox - I followed the stack and saw that the function closing the tab (not by X) is called: onxblDOMWindowClose. BUT in …

Web Development javascript web-browser
Member Avatar for diafol
0
362
Member Avatar for prafful_panwar

I want to use the instance of ckeditor. when user click on add more button it will create the instance of ckeditor, but that instance of ckeditor is not editable. I mean user is not able to enter anything there. Need help...Thanks in advance :) fiddle : http://jsfiddle.net/pkz7auLy/

Member Avatar for diafol
0
1K
Member Avatar for Stefce

Hello im using bootstrap and want to make the menu to be sticky i have uploaded the code so you can see it [www.upster.webuda.com](http://www.upster.webuda.com) i want to be like in the login screen at the begining im using the same code for other files but it doesn't work properly someone …

Web Development php
Member Avatar for Stefce
0
233
Member Avatar for shany0786

here is my code for simple validation but i can't able to why this happening but validation always fails no matter what i input? <div class="signup-form"><!--sign up form--> <h2>New User Signup!</h2> <?php echo form_open('login/register');?> <input type="text" name="name" placeholder="Name"/> <input type="email" name="email" placeholder="Email Address"/> <input type="password" name="password" placeholder="Password"/> <button type="submit" class="btn …

Web Development php php-codeigniter
Member Avatar for cereal
0
178
Member Avatar for slyme

Two files to edit/maintain a data array. data.php looks something like this: <?php $data_array[0]['key1'] = 'value'; $data_array[0]['key2'] = 'value'; $data_array[1]['key1'] = 'value'; $data_array[1]['key2'] = 'value'; $data_array[2]['key1'] = 'value'; $data_array[2]['key2'] = 'value'; ?> admin.php works something like this: function get_data() { include 'data.php'; // do a load of stuff with $data_array …

Web Development php
Member Avatar for slyme
0
538
Member Avatar for Eirik

Can anyone help me with how I can retrive the data of this XML with PHP i need to echo the <dc> data ex. <dc:title> and so on. XML file: http://askbib.asker.folkebibl.no/cgi-bin/sru?operation=searchRetrieve&version=1.2&query=rec.identifier=%22261118%22&recordSchema=dc&startRecord=1&maximumRecords=10

Web Development php xml
Member Avatar for Eirik
0
345
Member Avatar for SimonIoa

Hello i want to calculate three parameters. one X two X three = Y The one is the value of a <input type="number"> the second is default the value '1' and the third is the count of this $sql = "SELECT uid, username, name, profile_pic FROM users"; $result = mysqli_query($db,$sql) …

Web Development javascript php
Member Avatar for SimonIoa
0
724
Member Avatar for James_43

Hi all, For some reason, a white edge has appeared down the side of my website. It was never there before. The web suggested I should make sure to reset margins etc to 0 at the top of my stylesheet, which I already do. The edge is not due to …

Web Development html-css
Member Avatar for James_43
0
206
Member Avatar for Riteman

I have to create a unique code to every user registering. The thing is that the unique code needs to be generated based on which city the user is from. So the tables I have are: CREATE TABLE `microreg`.`users` ( `user_id` INT NOT NULL AUTO_INCREMENT , `user_code` CHAR(10) NOT NULL …

Web Development mysql php
Member Avatar for Taywin
0
210
Member Avatar for davy_yg

Hello, I would like to change colour style by using the navigation menu. Any clue how to do this by changing the bootstrap custom css whenever I click the Style Nav Button? http://www.innovation.web.id/One/ Thanks in advance.

Web Development css-bootstrap
Member Avatar for davy_yg
0
934
Member Avatar for Jiby_1

hai friends...i have a doubt in php..I am using Tiny MCE editor..i want to know how to get style for the content i have entered in editor but not print the html tags in my website..how it is poosible????\

Web Development php
Member Avatar for diafol
0
118
Member Avatar for Violet_82

HI guys, I've just run into an issue. Basically I'm working t a wordpress site, and there are some conflicts with the usage of the "$" sign so I used this in the document ready to allow me to use "$" in place of jQuery: jQuery(document).ready(function($){ ... }); It works …

Member Avatar for Violet_82
0
251
Member Avatar for UK-1991

Hello, I have created a form using ajax and php but when I click on submit the values in the textarea remains as it not disappears so I found a way to make form reset once I click on submit here is my code and please let me know how …

Web Development javascript mysql php
Member Avatar for UK-1991
0
255
Member Avatar for zelrick

Hello Web Developers; I'm having a hard time figure out why I can't do a simple table. I have an lines that contain ul and li, If i put them inside the table tr and th the bullet comes out which is I set it none. Please help me with …

Web Development html-css javascript
Member Avatar for diafol
0
376
Member Avatar for pritaeas

I have a MultiView in a part of a WebForms page (within a RadPane which is a Telerik component). It contains two Views, an overview and a detail view. When switching between them, the scrollbar position is kept, but I would like to force it to the top. All options …

Web Development asp asp.net
Member Avatar for pritaeas
0
356
Member Avatar for Siberian

Could someone please help me where I can find a large recent list of; Emulated Devices User String Agents for Chrome, I can't find it in my searches.

Web Development web-browser
Member Avatar for Siberian
0
323
Member Avatar for shany0786

I am always short of logic when every things works fine then i come up with new problem? **PROBLEM** There are generally 6 user type accounts.Everyone has their own "edit profile page".Now i want to know how can i handle this.user login then directed to home page then in navbar …

Web Development mysql php php-codeigniter
Member Avatar for shany0786
0
288
Member Avatar for spluskhan

What im missing, LIMIT & Next page are not working. it showing nothing. <?php include ('ini.php'); $query = $_GET['query']; $min_length = 3; $max_length = 15; if(strlen($query) >= $min_length) { $query = htmlspecialchars($query); $query = mysql_real_escape_string($query); echo "<table border='0' width='' align='left' cellpadding='1' cellspacing='1'>"; echo "<tr><h3>You have searched for $query... Please find …

Web Development mysql php
Member Avatar for diafol
0
214
Member Avatar for Kevin_22

i know this has been posted many many times but ive been searching everything and looking over old posts but i still cannot figure this out and why it keeps reading it as non object heres my code <?php require 'dbconfig.php'; class USER { private $db; function __construct($DB_con) { $this->db …

Web Development php
Member Avatar for Kevin_22
0
430
Member Avatar for HunainHafeez

I have an rdlc report which is loading data from database table via Datatable but problem is that it only shows 27 records, not more. Even the sql table and datatable in c# has populated data but not getting populated in RDLC report. I have used same code and same …

Web Development asp.net
0
124
Member Avatar for biddut.hossain.75

i want to import my backup database(.sql file) into mysql using php script. i have given the following code where **case 1** section works. but i need to execute **case 0** section. what the problem in my code please help me anyone. <?php //ENTER THE RELEVANT INFO BELOW $mysqlDatabaseName ='online_admission_form'; …

Web Development mysql php sql
Member Avatar for diafol
0
4K
Member Avatar for Yves11

I just started school (College). I want to know what good links for learning oop php?

Web Development mysql php seo
Member Avatar for diafol
0
267
Member Avatar for Rammanan

Hi all, I new for web service. i already have web service in my server create by my boss. But now i need to create one app in c# for client to access the web service. This is i need in my web. WebServices Name : http://192.168.10.2:90/wafersortlotinfo.asmx Function Name : …

Web Development asp.net
Member Avatar for rubberman
0
232
Member Avatar for Sophia_1

Hi everyone, am trying to display current date/today's date in php but the output is as below. Please advise. Thanks. <?php $Currentdate2 = date('d-m-y'); echo $Currentdate2; ?> Output: Current date: 2027-10-15

Web Development display mysql php
Member Avatar for diafol
0
372
Member Avatar for SirMahlon

i have been able to pass value from form to ajax and to php to insert into my database. Now there is a value which determines whether to redirect to page 1 or page 2 after inserting. As well i alert that the form was successful. So i wanna know …

Web Development javascript mysql php
Member Avatar for diafol
0
325
Member Avatar for Nadera

Hello, I have three tables in MySQL database which they are: employee, expenses and details. The details table is composite table between the expenses and employee. In the HTML form there is a table that will enter multiple data into details that will referenced with one expenses id. I could …

Web Development mysql
Member Avatar for diafol
0
646
Member Avatar for sashtha

> DB_name: test > Tablename:option > attribute:name char(5); index.php <html> <head> <title>OPTION</title> </head> <body> <form method="post" action="index.php" > Name : <select name="nameoption"> <option value="name1">name1</option> <option value="name2">name2</option> <option value="name3">name3</option> <option value="name4">name4</option> </select><br> <input type="submit" name="submit"> </form> </body> </html> <?php include("database/db_conection.php"); if(isset($_POST['submit'])) { $name1=$_POST['nameoption']; $insert_data=("insert into option ('name') VALUE ('$name1')"); if(mysqli_query($dbcon,$insert_data)) { …

Web Development mysql php
Member Avatar for diafol
0
277
Member Avatar for kireol

Anyone know of a way using php (no shell_execs), to convert a pdf to an image type of png, jpg,gif, or tif? In my existing app we are shelling out using ghostscript, pdftk, etc, and would like to switch this over to all inside of php. Yes, I've googled. a …

Web Development image pdf php
Member Avatar for diafol
0
2K
Member Avatar for solomon_13000

I am attempting to create a responsive website. On my left hand side I have a jpeg image and on the right hand side there is a box with text description. However when I view the website on a smaller screen device it is not resizing properly especially the image. …

Web Development html-css
Member Avatar for Violet_82
0
277
Member Avatar for shany0786

I am trying to fetch data from multiple table but i am getting this error `The used SELECT statements have a different number of columns` 4 tables will have different number of columns i am doing this because i have common edit profile page number filds may vary.So how can …

Web Development mysql php
Member Avatar for shany0786
0
18K
Member Avatar for V3N0M

I was wondering what you all thought on web development platforms that enable users with no programming knowledge to create websites for example http://www.wix.com . I personally think that a web developer should want to know how all the components work and build websites from scratch component to component. But …

Web Development
Member Avatar for diafol
0
320
Member Avatar for AntonyRayan

Hi, I am not familiar in google map. I want like this, My map page reloads after every 10 seconds. when I load map page it will just show the map with the given static latitude and longitude. after 10 seconds, it will plot the available vehicles from mysql table. …

Member Avatar for Taywin
0
107
Member Avatar for marjan_m

I need to enable a disabled text box through php.Please inform me about the errors in the following code: [CODE] <input type= "text" name ="ch1" disabled = "true" <? if ( $_GET["e"] == 3 ) echo "disabled = 'false' "; ?> /> [/CODE]

Web Development php
Member Avatar for diafol
0
10K
Member Avatar for UK-1991

Hello I have created an add to cart function but when I click on add to cart it replace the previously added products Here is my code Header Area details.php <?php require_once("includes/functions.php"); if(isset($_POST["addtocart"])) { $pid = $_POST["pid"]; $prod_name = $_POST["productname"]; $prod_price = $_POST["productprice"]; $category = $_POST["cat_name"]; if(isset($_POST['command']) == 'add' && …

Web Development javascript mysql php
Member Avatar for Taywin
0
489

The End.