17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for weeraa

This is my code. $arrivDate = $_POST['arrival_date']; echo $arrivDate; //Print correctly echo date("Y/m/d", strtotime($arrivDate)) ; // every time print 1969/12/31 echo date("Y/m/d", strtotime('.$arrivDate.')) ; // every time print 1969/12/31 but if i put like this, it is print correctly echo date("Y/m/d", strtotime("05/08/2019")); // Print like this --> 2019/08/05 (This is …

Web Development php
Member Avatar for diafol
0
169
Member Avatar for kantigniter

I have to sync with two tables in the database The following is the error I get: *A database error has occurred Error Number: 1054 Unknown column 'Array' in 'field list' INSERT INTO `client` (`interior_client_name`, `Interior_client_email`, `interior_client_mobile`, `interior_house_id`) VALUES ('a', 'b', '8989898', Array) Filename: C:\xampp\htdocs\ThinkInterio\system\database\DB_driver.php Line Number: 330* These are …

Web Development mysql php
Member Avatar for cereal
0
5K
Member Avatar for nouth

So I have a string of the English alphabet for example. But I don't know the alphabet very well but I do know that it starts with "abc" and that it ends in "xyz". I want to remove letters "b" to "x". I want to do something like `str = …

Web Development javascript
Member Avatar for nouth
0
2K
Member Avatar for McLaren

Hello, there is overridden collection fetch function. fetch: function() { var collection = this; $.getJSON(this.url, function(data) { // do some processing to data here collection.reset(data); }); }, I need to do processing when I get data, so thats why overrride. But the thing - is - the models change event …

Web Development javascript
Member Avatar for McLaren
0
101
Member Avatar for UK-1991

Fatal error: Call to undefined function session_is_registered() in C:\wamp\www\attendance\include\checksession.php on line 2 Call Stack 1 0.0021 180504 {main}( ) ..\admin.php:0 2 0.0026 182624 include_once( 'C:\wamp\www\attendance\include\checksession.php' ) ..\admin.php:2 ------------------------------------------------------------------------------------------------------------ Hello ..This error is comming when i enter the user id and pw. Can any one please help me out to fix …

Web Development php
Member Avatar for diafol
0
688
Member Avatar for sonicx2218

So I'm using this program that has 2 important sections of code that determine the iframe height and width. if (!images[imageIndex][2]) images[imageIndex][2] = ''; // Thanks to Leo Feyer for offering this fix WH = images[imageIndex][2].split(' '); WHL = WH.length; if (WHL>1) { mediaWidth = (WH[WHL-2].match("%")) ? (window.getWidth()*((WH[WHL-2].replace("%", ""))*0.01))+"px" : …

Web Development javascript
Member Avatar for sonicx2218
0
207
Member Avatar for mallows.yum

hi all! i have here a code to delete a record <?php define ('DB_NAME', 'vincegac_vince'); define ('DB_USER', 'root'); define ('DB_PASSWORD', ''); define ('DB_HOST', 'localhost'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$link) { die('Could not connect: ' . mysql_error()); } $db_selected = mysql_select_db(DB_NAME, $link); if (!$db_selected) { die('Can't use ' . …

Web Development php sql
Member Avatar for mallows.yum
0
134
Member Avatar for atikah8890

Hi. I'm using JS for d3. What I intend to do is get some data from database and plot them in a diagram I've created. Here's what I've done so far: Fetched the data from database: <?php while($row = mysql_fetch_assoc($query)){ $q_id[] = $row['q_id']; $res_val[] = $row['response_value']; $chpt[] = $row['cr_chpt']; $lvl[] …

Web Development html-css image javascript
Member Avatar for atikah8890
0
333
Member Avatar for adeeb.keyaam

suppose i have a account in a website, and i want to see the users who are members of this website, and my name is also listed there, but i want to remove my name from there, from my account, i can see others name without mine, and this will …

Web Development php
Member Avatar for iamthwee
0
159
Member Avatar for adeeb.keyaam

I want to create a form wizerd or a multi step form, there is a continue button to step forward, `<button type="submit" name="continue" onclick="return validateNow();">Continue</button>` and a previus button to step backward, `<button type="submit" name="continue" value="&lt; Back">Previous</button>`, button type must be in submit format, because i have php in this …

Web Development php
Member Avatar for adeeb.keyaam
0
204
Member Avatar for joshl_1995

Hello Community, I was wondering if getting an SSL certificate be worth it for my new website it the website doesn't store users personal details all it will hold is users links that would be counted but the thing is i don't know if it would be worth it or …

Web Development cybersecurity
Member Avatar for joshl_1995
0
422
Member Avatar for davidjennings

Hi All - I am trying to find a solution to the following I am trying to update a form with checkboxes and to compare the value of the data variable $active from the db and if the value =1 then make the checked value as checked if = to …

Web Development html-css php
Member Avatar for davidjennings
0
188
Member Avatar for Dimonai

Hello to everyone, I Have a table inside 2 div's and I need to get the tables id! How can I do this by javascript?

Web Development html-css php
Member Avatar for Dimonai
0
259
Member Avatar for Dimonai

Hi everyone, I'm working in a project where its required a dynamic insertion of a grup of 3 textfields where one hiels dates. So far I manage to do the insertion part, but Im still with the problem of jquery datepicker only working right on the first(original) textfield. I notice …

Web Development javascript-jquery php
Member Avatar for Dimonai
0
907
Member Avatar for jenny1975

I have two array's Array1[1,3,5,7,4,0,8] Array2[1,5,8,3,4,2,9] What I would like to achieve is an output count = 3( three of the numbers 3,5,8 from Array2 are in Array1 but in the wrong place) using Math.min. Can someone explain this process to me please. Thank you

Web Development javascript
Member Avatar for dilan91
0
173
Member Avatar for Zagga

Hi folks, It's a bit unusual for me to post in the javascript forum but I'm after a bit of assistance if possible. **The scenario:** I have a form with text input box for a user to enter a 'quantity' in. This can be anything from 1 to 99. When …

Web Development javascript
Member Avatar for Zagga
0
195
Member Avatar for adishardis

Hi, everyday I get a xml file that looks something like this: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <account-information report-date="2012-12-31T23:59:59.000+01:00" xmlns="http://www.XXX.SE/XXX"> <account> <account-number>00000001</account-number> <status>Open</status> <application-array> <application-type>NEW</application-type> <application-date>2013-01-11</application-date> </application-array> <application-array> <application-type>TOP</application-type> <application-date>2013-04-18</application-date> </application-array> <account-information-type> <first-name-main>John</first-name-main> </account-information-type> </account> </account-information> Today I import each account to our db with only the latest application-array (application-date). The …

Web Development php xml
Member Avatar for adishardis
0
211
Member Avatar for mpc123

Hi I am trying get a query to join 2 tables and a result on the information in both. At the moment I have the following $query = "SELECT * FROM TABLE1, TABLE2 Where 'TABLE2.field1' LIKE '%TABLE1.field2%'"; The problem is TABLE2 has a field with names in but TABLE1.field2 has …

Web Development php
Member Avatar for mpc123
0
155
Member Avatar for johnny.lhc.9

I got this problem when open this files,how to solve this problem? Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/indomari/public_html/administrator/includes/connect.php on line 64 this code locate at line 64 <?php set_time_limit(0); if (isset($_POST["scan"])) { $url = $_POST['traget']; echo "<br /><span class='start'>Scanning ".$url."<br /><br /></span>"; echo "ReSulT:<br …

Web Development php
Member Avatar for johnny.lhc.9
0
259
Member Avatar for fheppell

This php code updates a database entry. The form consists of a checkbox (name = download) and a hidden field so I can check it has actually been sumbitted(name = updated). When I run this code it gives me the success message but the database remains unchanged. Why is this? …

Web Development mysql php sql
Member Avatar for fheppell
0
164
Member Avatar for Casperjames

Hello all, This is my first site project using codeigniter. The frontend is all html and I am using codeigniter for the backend. Everything was working fine until I added the frontend files and modified my htaccess file to not redirect to index.php but instead to index.html. htaccess looks like …

Web Development php
Member Avatar for cereal
0
416
Member Avatar for Stuugie

Hi All, There's a gentleman in my department that is retiring this Friday. He's asked me if there is a way to copy all links in his "Favorites" menu in his web browser. He's got a lot of links and to do it 1 by 1 will take him a …

Web Development web-browser
Member Avatar for Stuugie
0
75
Member Avatar for fheppell

I've got a mysql query that should return a single cell SELECT `download` FROM `images` WHERE `owner_un`='$owner' AND `url`='$url' How would I echo the result of this? Thanks for any help

Web Development mysql php
Member Avatar for minitauros
0
243
Member Avatar for solomon_13000

I have a form to submit the details as below: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Activate</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=3.0.1"> </script> <script type="text/javascript" src="js/activate.js"> </script> </head> <body> <form method="post" name="form"> <table style="text-align: left; width: 789px; height: 715px;" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="width: 305px;"> …

Web Development javascript javascript-jquery
Member Avatar for paulkd
0
267
Member Avatar for jenny1975

I have 2 arrays that I need to compare against each other and retun the count of the same: ex: array1[abcd] array2 [adce] return would be 2 as both a and c are in same postion. I would then have to return 2,1 as a and c are in the …

Web Development javascript
Member Avatar for |-|x
0
186
Member Avatar for mallows.yum

hi all! i have here a code. <?php /** * Main.php */ include("include/session.php"); ?> <html> <head> <title>Export to Excel</title> </head> <body> <form action="saverec.php" method="post"> <?php define ('DB_NAME', 'vincegac_vince'); define ('DB_USER', 'root'); define ('DB_PASSWORD', ''); define ('DB_HOST', 'localhost'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$link) { die('Could not connect: ' . …

Web Development mysql php session
Member Avatar for arunmagar
0
369
Member Avatar for klemme

Hi all, I have a very simple question, for many of you.. I need to write out a select list like this : From table pages, I need id and link to fill up the options in my select list. But I need to tjeck in another table, if there …

Web Development mysql php
Member Avatar for klemme
0
173
Member Avatar for jcomputing

I have a contact form in a popup div. I want the contact form to redirect to the popup div with an error or a successful message when form is completed obviously depending if message was sent NOT A PAGE. Please can someone help me. <?php //set variable error var …

Web Development html-css http-protocol php
Member Avatar for Squidge
0
342
Member Avatar for turpentyne

This script is set to run automatically. The syntax is stuff I'm not used to. How can I change this script to run at a later point? Such as when an image loads. Or another delayed point from when the page it's on is loaded in with ajax. Like this, …

Web Development javascript javascript-jquery
Member Avatar for turpentyne
0
226
Member Avatar for arunpawar

Here, I have created a php mysql login page. I am a newbie so please also comment on my code too. I have this login page where after entering the correct data i am getting welcome "id" instead of "username". I want to know what i am doing wrong here. …

Web Development php
Member Avatar for arunpawar
0
181
Member Avatar for Webville312

Hi, I am working on a code that dispatches airtime depending on a schedule that is specified. Now all works just fine. The only problem is that the code executes only once. To throw more light, here is how it is meant to work; 1. An administrator creates a schedule, …

Web Development php
Member Avatar for Webville312
0
143
Member Avatar for amkaos

this is link to code http://jsbin.com/ixupuk/4/edit when my form is loaded into browser OR refreshed, all fields are auto-submitted to mysql database.. i included at the bottom, an if(isset) statement that i couldnt get to work. thanx

Web Development php
Member Avatar for amkaos
0
287
Member Avatar for eburlea

Hi! I have a Zend project and I would like to implement a login form in the header of the site in such a way, that if a user is not logged in, he can use the site, but the form is always there, no matter what pages he access. …

Web Development php
Member Avatar for eburlea
0
695
Member Avatar for hades.edy

SO friends... i had a fight with this code.. please help :( <? ob_start(); ?> <?php // Make sure an ID was passed if(isset($_GET['id'])) { // Get the ID $id = intval($_GET['id']); // Make sure the ID is in fact a valid ID if($id <= 0) { die('The ID is …

Web Development php
Member Avatar for hades.edy
0
148
Member Avatar for Maideen

hi I tried to generate ageing reports in php. But I could not get result and even error. it is my code. Pls help me connection.inc.php try { $hostname = "server"; //host $dbname = "database"; //db name $username = "user"; // username like 'sa' $pw = "password"; // password for …

Web Development mssql php
Member Avatar for Maideen
0
553
Member Avatar for dhani09

I have an array that looks like this: `Array ( [0] => Array ( [id] => 2 [name] => test product1 [description] => test [quantity] => 1 [price] => 188 [status] => Brand New [category] => Computer Software [subcategory] => Music Software [postdate] => 2013-05-19 [prodimage] => [user] => admin …

Web Development php
Member Avatar for dhani09
0
109
Member Avatar for azegurb

Hi all, I have taken from net drop down menu script my web page is medistyle.az. It works perfectly but when i look up code i cannot understand one thing there below is code (js. file) var menu=function(){ var t=15,z=50,s=6,a; function dd(n){this.n=n; this.h=[]; this.c=[]} dd.prototype.init=function(p,c){ a=c; var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, …

Web Development javascript
Member Avatar for azegurb
0
165
Member Avatar for turpentyne

For the sake of learning, I'm just curious how I can simplify these functions? Open to any suggestions... Please forgive all the over-commenting. $(document).ready(function() { // code for random backgorund image on page load $("#full-size-background").css("background-image", "url(images/backgrounds/" + Math.floor(Math.random()*3) + ".jpg)"); // starting point fade when "menu" clicked $("#starting_point_link").on("click", function(){ $('#starting_point, …

Web Development html-css javascript
Member Avatar for Troy III
0
258
Member Avatar for rouse

I am having problems accessing what for me is a complex JSON object. I successfully interrogated the Open Weather API and received a good response. What I am not accessing, and don’t know how to, is the individual items of the weather portion of the list group while in a …

Web Development api javascript json
Member Avatar for rouse
0
256
Member Avatar for McLaren

Hello, there is a function which saves and sends post request: save_car: function(e) { if (e.keyCode != 13) return; if (!this.brand.val()) return; Cars.create({brand: this.brand.val(), color: this.color.val(), max_speed: this.max_speed.val() }); this.brand.val(''); this.color.val(''); this.max_speed.val(''); }, Request URL:http://localhost/backbone/car_list/backend/index.php/welcome/index Request Method:POST Status Code:200 OK Request Headersview source Accept:application/json, text/javascript, */*; q=0.01 Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3 Accept-Encoding:gzip,deflate,sdch Accept-Language:en,lt;q=0.8,en-US;q=0.6,ru;q=0.4,pl;q=0.2 …

Web Development first-post javascript json php
Member Avatar for McLaren
0
256
Member Avatar for showman13

Good Morning, I'v been combing through the net including many links on this site, trying to get the necessary information to make a video play on my webpage. No Luck I've tried multiple pieces of code to embed the video, but in each case I am faced with either a …

Web Development php video
Member Avatar for showman13
0
252
Member Avatar for shilu2

If I have dropdownlist as below <select onChange="this.value;"> <option value="Volvo" id="volvo">Volvo</option> <option value="Saab" id="saab">Saab</option> <option value="VW" id="vw">VW</option> <option id="audi" value="Audi" selected>Audi</option> </select> I want to display discription of item selectd so I have below code <div id="boxpopup" class="box"> <a onClick="closeOffersDialog('boxpopup');" class="boxclose"></a> <div id="content"> This is popupbox of Audi </div><!--end of …

Web Development php
Member Avatar for broj1
0
208
Member Avatar for amkaos

Hi: i have contact form that i thought the validation (.js + php) worked fine because i received emails that were only submitted w/ all fields correctly filled in. i added submission to mysql database, then found out that empty fields were being submitted to database -- but not email.. …

Web Development email javascript php
Member Avatar for minitauros
0
563
Member Avatar for jencinas69

Is it possible to display a text box next to a cfselect upon selection in the cfselect. If someone selects an option from the dropdown I need a date type field to be display. Is this possible perhaps with coldfuision and ajax?

Web Development coldfusion
Member Avatar for paulkd
0
217
Member Avatar for Black_Lion

protected void Button1_Click(object sender, EventArgs e) { ClearTextBoxes(this); } public void ClearTextBoxes(Control control) { foreach (Control c in control.Controls) { if (c is TextBox) { ((TextBox)c).Text = " "; } } Hi all. I am writing a program using Microsoft Visual Web Developer. I have 3 textboxes (TextBox1, TextBox2 and …

Web Development asp.net
Member Avatar for annaharris
0
190
Member Avatar for coder91

I have a page that allows you to insert a new item or update an existing item. I am using a formview for it, I have custom validation in place for the insert to check that the item number isn't already stored in the database, if it is a panel …

Web Development asp.net
Member Avatar for annaharris
0
244
Member Avatar for kelvnese

:) hi everybody, im newer in asp.net. today, im trying to bind my data to the Nivo Slider by the Data List. The code is like this: [CODE]<div class="slideshow"> <div id="slider" class="nivoSlider"> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT * FROM [SLIDEIMAGE]"></asp:SqlDataSource> <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"> <ItemStyle /> <ItemTemplate> <img …

Web Development asp.net javascript-jquery
Member Avatar for shanky007
0
231
Member Avatar for turpentyne

I have a carousel that works fine on it's own, but something's killing it when I load its page into my main page. Not sure what would cause it? i'm using "Caroufredsel". Here's the main page, with script to load page based on which navigation selected. If the user selects …

Member Avatar for turpentyne
0
218
Member Avatar for bradly.spicer

hey guys, I've been working on that moodle database link and I have it somewhat working! I have it logging in and echoing the username. This is the login section: $query = "SELECT * FROM moodle_user WHERE username = '{$_POST['username']}' AND password = '$password'"; $result = mysqli_query($con,$query) or die(mysqli_error($con)); //setup …

Web Development php
Member Avatar for bradly.spicer
0
130
Member Avatar for davidjennings

Hi All I am trying to format the sql ouput reg_date into a date format current details echoed out 2013 - 03 - 08 12:12:11 I just require the date only echo stripslashes($row['reg_date']) $result = $mysqli->query($query) or die ($mysqli->error.__LINE__); if($result->num_rows > 0) { while($row = $result->fetch_assoc()) { echo stripslashes($row['reg_date']) . …

Web Development php
Member Avatar for davidjennings
0
215

The End.