52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zebnoon1

dear friends, I have created Php form to store data in my mysql database. But i am facing problem in updating file data to store in database. Please check my code below $edate=$_POST['edate']; //$edate=date("d-m-y h:i:s a",time()); $ldate=$_POST['ldate']; //$ldate=date("d-m-y h:i:s a"); $cdetail=$_POST['cdetail']; $tenNo=$_POST['tenNo']; $tdetail=$_POST['tdetail']; $name = ($_FILES['uploaded_file']['name']); $mime = ($_FILES['uploaded_file']['type']); $data …

Web Development mysql php
Member Avatar for diafol
0
409
Member Avatar for hamzah_1

so i am trying to convert my python codes into RUBY. Can someone please help me do that... 1- Write a function lucky_sevens?(numbers), which takes in an array of integers and returns true if any three consecutive elements sum to 7. My python answer: def lucky_sevens(numbers): for index in range(len(numbers)-2): …

Web Development ruby
Member Avatar for rproffitt
0
246
Member Avatar for amour_1

how can I rewrite localhost/base/app_files/Mat.php to main shop in htaccess.help me with regex. here is what i have so far RewriteRule ^main shop/?$ /app_files/Mat.php [R=301,L] but gives error .

Web Development regex
Member Avatar for amour_1
0
96
Member Avatar for janicemurby

im attempting to add date of birth and age to a form and database the date of birth works fine and shows in database as it should be but the age is showing 0 in age column ive tried different things after searching and its staying the same heres the …

Web Development php
Member Avatar for janicemurby
0
206
Member Avatar for Aeonix

Typical code works like this: `$(...).hover(function () {});`. But it also needs to go away when it's loses it's hover. Is there a shorter way to do that than: `$("#x").hover(function () { troll(); });` `$("#x").mouseout(function () { untroll(); });` I just feel that smart people over at jQuery have thought …

Web Development javascript-jquery
Member Avatar for Aeonix
0
212
Member Avatar for phaedrusGhost

Hi All, I am stumped here. Perhaps I've been at it too long and am missing something elementary or it really is a missing link. I hope someone can point me in the right direction here. I have this piece of code for my new widget functions: function underslider_widgets_one_init() { …

Member Avatar for diafol
0
389
Member Avatar for Avinash_11

the code below is working, but it is displaying only one image in a blank page where there is no css I want it to display all the image in a table. please help me... <%@page import="com.sun.javafx.tk.Toolkit"%> <%@page import="java.awt.Image"%> <%@page import="javax.swing.ImageIcon"%> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@page import ="java.sql.*" …

Web Development image java-jsp java-swing mysql
0
175
Member Avatar for janicemurby

hi all im trying to update a script and i have the following errors which ive googled and im lost if anyone can help be much appreciated ty jan x PHP Notice: Use of undefined constant prepare_insert - assumed 'prepare_insert' in /home/matureco/public_html/UPLOADIMAGE/config/db_connect.php on line 32 code for this error is …

Web Development php
Member Avatar for cereal
0
1K
Member Avatar for OsaMasw

hello guys its been a while since my last question here :P am working right now on PHP script to upload and convert video files to several resolutions ( 360 - 720 ), here a piece of my php code to convert move_uploaded_file($file_tmp, 'upload/'.$fileName); add_to_queue($time,"360-".$fileName,$status="pending"); //where add_to_queue is simple function …

Web Development html-css mysql php
Member Avatar for rproffitt
0
352
Member Avatar for davy_yg

Hello, I need help with CI. Who can help me throughly for my CI problem. Please gives me several alternatives. Thanks in advance.

Web Development
Member Avatar for diafol
0
181
Member Avatar for Aeonix

User gives me a `$_POST`, I want to check whether keys (not the values) are there. `$_POST` keys need to be `newemail`, `firstPassword` and `secondPassword`. What I have tried: `if (in_array(array_keys($_POST), array("newemail", "firstPassword", "secondPassword"))) echo "Everything in order".`. How to make it actually work?

Web Development php
Member Avatar for Aeonix
0
242
Member Avatar for jeffersonalomia

Can someone help me on debugging this code `<?php include "../template/php/myconnection.php"; include "../template/php/sessionChecker.php"; include "functions.php"; include "ext.php"; $date = date("Y-m-d"); $breakdown = ""; $transkey = ""; $isFound = false; $file_value = file("header.txt"); if(!empty($_GET['tn'])){ foreach($file_value as $line){ if(strpos($line,$_GET['tn']) !== false){ $isFound = true; $breakdown = explode(" | ",$line); $transkey = $breakdown[3]; …

Web Development php
Member Avatar for diafol
0
347
Member Avatar for phpio

An online tool embeded vim editor into web to debug your php code. It also helps you to practice vim online. Website: [phpio.net](http://phpio.net) // Press F11 to toggle full screen editting (Ctrl+⌘+F on Mac OS). // Press Ctrl+Shift+F to format code. echo 'Welcome to PHPIO.NET!';

Web Development php
Member Avatar for cereal
0
1K
Member Avatar for SimonIoa

Hello i want to pass a value with the id #allcountries. `html += '<option style="width:90%"><a href="'+v.country_id+'">'+v.nam+'' +'</a></option>';` `<div id="allcountries"></div>` `alert($("#allcountries"));` when i select a country it returns [object Object] on the alert when it should return the id of the country

Web Development html-css javascript
Member Avatar for SimonIoa
0
343
Member Avatar for shany0786

i have problem and i am new to this i have a domain like kk.com there were many products on it when user clicks on buy now here will be redirected to subdomain like subdomainname.kk.com/product-1 or subdomainname.kk.com/product-2 based on product clicked my question is how can show details on this …

Web Development php
Member Avatar for diafol
0
223
Member Avatar for rpv_sen

Hi Friends. i am working on my internal work. i am having n dynamic rows, Each and every row contain total. i want to sum all the rows total. i have attached the screen shot for the reference

Web Development javascript mathematics mysql php
Member Avatar for diafol
0
2K
Member Avatar for Brandon_9

This is a website I developed for online, desktop flash games. I make money off of ad revenue. Here is the link: http://www.quickscopegaming.com Could some of you give me your opinion on the site and what I should change/add? Also, here is the Facebook page if you want to give …

Member Avatar for AssertNull
0
307
Member Avatar for koneill

All, I have a packaged app - whose snippet is below and the form that displays shows ascending date (ascendingSort) and Title as the default items - I'd like to show the Publication Date (availableDate) and the descending date (descendingSort) as the two defaults - how in either Jquery or …

Web Development javascript javascript-jquery
Member Avatar for Phaelax
0
342
Member Avatar for adebayo23

Hi, Please I have a problem inserting record to mysql database, it always shows this error " Warning: mysqli_query() expects parameter 1 to be mysqli, null given in C:\wamp\www" here is my code <?php if(isset($_POST['submit'])){ $member_dat1=$_POST['member_first']; $member_dat2=$_POST['member_lastname']; $member_dat3=$_POST['sex']; $member_dat4=$_POST['member_type']; $member_dat5=$_POST['m_email1']; $member_dat6=$_POST['m_phone1']; $member_dat7=$_POST['m_address1']; $member_dat8=$_POST['m_address2']; $member_dat9=$_POST['city']; $member_dat10=$_POST['state']; $member_dat11=$_POST['added_by']; $member_insert= "INSERT INTO members(member_first,member_lastname,sex,member_type,m_address1,m_address2,city,state,m_phone1,m_email1,added_by)" …

Web Development mysql php
Member Avatar for diafol
0
695
Member Avatar for shany0786

hello all, i want to create dynamacially this thing and want to populate data alternatively on green,red,gray li and so on but i can't able to do it plz help i am weak in js :( <li class="green"> <div class="metro_tmtime" datetime="2013-04-10 18:30"> <span class="date">1/4/13</span> <span class="time">17:20</span> </div> <div class="metro_tmicon"> <i …

Web Development javascript javascript-jquery php
Member Avatar for gentlemedia
0
289
Member Avatar for Ivan_13

I have a problem with CSS. Please for assistance. Yelim to me the picture is positioned at the center of the page and not the left or the right. I want to be on cebtru regardless of screen resolution. This is the code in CSS / * Product * / …

Web Development html-css
Member Avatar for ryantroop
0
238
Member Avatar for amith_ami

When I use pagination for custom post type 'product' its working fine but its not working for the categories of custom post type. for ex. pagination working for this **'http://localhost/wordpress/products/page/2/'** and not for this **'http://localhost/wordpress/products/landscape/page/2/'** its always showing the first page content. How to solve this? given below is my …

Web Development php ui-ux wordpress
Member Avatar for diafol
0
2K
Member Avatar for bincy_2050

Hi, I am developing a website. I have a folder containing some images. Please somebody help me with the code so that the users can download the folder when they click on the download button. Bincy

Web Development asp asp.net c# file-system
Member Avatar for sai_10
0
10K
Member Avatar for Aarav

Hi, I am looking for some example code that can help me to generate unique random string of numeric numbers in PHP Applications. I am hoping to resolve this issue with the help of tech developers working around & for this I have researched for many php questions & answers …

Web Development php
Member Avatar for amith_ami
0
223
Member Avatar for Test_2

i have been rearrange the code for whole day still cannt make the datepicker search filter working only the dropdown select filter is working.. previously is datepicker search filter is working and dropdown options is not working, but i working it and it turns around where the datepicker is not …

Web Development mysql php
Member Avatar for diafol
0
934
Member Avatar for phphp

Sir, I am using wamp 3.0 having php 5.6.15 SQLSERVER 2008 is installed on Windows 7 32bit. I want to connect sqlserver with php, So I put required drives in Bin folder as ![aa.png](/attachments/large/4/b763141a1fb510782c174e1fab41066b.png "align-center") and made some necessary changes in php.ini as ![bb.png](/attachments/small/4/a50b010fafa6dc4b615bc2abd06ce0df.png "align-left") Finally I have this connection …

Web Development php
Member Avatar for maba001
0
400
Member Avatar for Malbora_1

Hello,im working on a music store in magento, i have two users artist and customer ,i want to let artists choose their role and add their songs, i installed multi seller extension but i want also that they choose their role on register form,i tried a lot of extensions what …

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

Hi, by passing city name, I take all hotels reviews among on the requested city groupin by hotel id and user id that reviews should be greater than 0, The query works correctly, but taking values using while loop it combines all the hotel review values together. How to take …

Member Avatar for diafol
0
565
Member Avatar for jeffersonalomia

Hello guys, I have a problem on using the image slider plugin called "Unslider" which is a jquery plugin. I follow all the procedures / instructions on how to set up the codes but sadly it seems that the next and preview button styling doesnt work even if i follow …

Web Development display javascript-jquery php
Member Avatar for jeffersonalomia
0
2K
Member Avatar for zebnoon1

Dear Friends, I ctreate database in mysql database data transfer from PHP form. Problem: I can not save my Date formate(dd-mm-yy) in to database. My code is below please, if($epr=='save'){ // $cid=$_POST['id']; $edate=$_POST['edate']; //$edate=date("d-m-y h:i:s a",time()); $ldate=$_POST['ldate']; //$ldate=date("d-m-y h:i:s a"); $cdetail=$_POST['cdetail']; $tdetail=$_POST['tdetail']; $sql1="INSERT INTO tentb(edate,ldate,cdetail,tdetail) VALUES('$edate','$ldate','$cdetail','$tdetail')"; $result1=$conn1->query($sql1); if($result1){ echo "Data …

Web Development mysql php
Member Avatar for cereal
0
303
Member Avatar for JerrimePatient

I inserted data in sql server using asp.net (MVC 5), and its flowing nicely, but my problem is this. I don't want to insert in sql the exist data. How can I do it?

Web Development asp.net sql
Member Avatar for Nagarjuna_2
0
7K
Member Avatar for zebnoon1

Dear Friends, I created Table in PHP. Columns are SrNo. ---- Tender Detail----- Last Date----- Remaining Days ---------- Status(Pending/Proceded) I have Database in mysql. I get "last date" from database and minus with Current date. But i tried there is any problem please, check. Code is below <?php function dateDifference($date_1 …

Web Development mysql php
Member Avatar for zebnoon1
0
497
Member Avatar for SimonIoa

Hello i want to sort the returning data from my MySql database. i want to sort them by their type (1,2,3) This is what i ve done so far. PHP works fine returns all records $somevariable represents the AND to sort the records function all() { $type = $data->type; if($type …

Web Development javascript javascript-jquery php
Member Avatar for Bachu
0
292
Member Avatar for rayearth_1

i have creating a feedback devices system, and already done with only the radio button. but the people wants more, then i added some roll over image, and having dificulties to connect between them. people wants to, when they click the image, and the radio button show the indocator, that …

Web Development image php
Member Avatar for gentlemedia
0
358
Member Avatar for James_63

I got two dropdowns in each product in my cart. When i select my both option my class on success is not updating the cost. It only updates when i refresh the page, i dont want to refresh my page to get the cost. this is my script... $(document).ready(function() { …

0
215
Member Avatar for rjusman90

I am quite new to JS and AJAX and I am having a hard time understanding what the other person has implemented and how I can get it to function properly. this is my login CI code that is working perfectly, but now i want to do it with ajax …

Web Development javascript session
Member Avatar for rjusman90
0
240
Member Avatar for koneill

All, I have a odd scenerio which I'm looking to resolve - what is the best way in CGI/PERL to detect the referring page - as depending on if the referring page is from http://www.mysites.com/wholesale - I need to display a button on the page that when clicked will be …

Web Development javascript perl
Member Avatar for koneill
0
437
Member Avatar for _1_14

** edit http post i need to remove courses stored in ids variable note i need remove courses selected not edit** in jquery i store values of removed courses in ids variable suppose i removed photoshop and flash it will store value of 3,4 in ids variable below code when …

0
157
Member Avatar for James_62

I have two dropdowns where ajax gets the value from it and send to my page calculates.php and then i will get a result based on both dropdown selection. But its not working well. The problem is that im getting a error that is saying **Notice: Undefined index: icms in …

Web Development javascript javascript-jquery php
Member Avatar for ryantroop
0
1K
Member Avatar for Rishi_3

I'm trying to get the text value from a select dropdown menu that is populated by a database using the following function: <?php function searchintspokenlang() { require ('../../../connect_db.php'); $queryintspoken="SELECT Language FROM languages"; $result=mysqli_query($dbc, $queryintspoken); while ($row = mysqli_fetch_array($result)) { echo "<option value='" . $row['Language'] . "'>" . $row['Language'] . "</option>"; …

Web Development html-css javascript mysql php
Member Avatar for James_62
0
368
Member Avatar for koneill

All, I have a .mov file and am wondering what is the best way to have this autoplay so that users don't have to hit the play button while viewing on a IPhone device. I tried utilizing the ac_quicktime.js script as such (I went to the ac_quicktime.js - a few …

Web Development apple iphone javascript
Member Avatar for rproffitt
0
615
Member Avatar for AntonyRayan

Hi, I have a column "statustime" in a table , which has values( like,10:24:10 PM,12:04:00 AM) with mixed of AM and PM . I want to display the other values by "statustime" in ASC . How to do?

Web Development mysql php sql
Member Avatar for cereal
0
580
Member Avatar for James_62

Guys i'm trying to get data joined from two tables. I have a select options dropdowns with Fabrics names the other has sizes. I am wondering how i will make my dropdown changes the values for each fabric in each size and multiply for the amount of fabric selected. this …

0
148
Member Avatar for Waqas_4

i am getting error Not Found The requested URL /home was not found on this server. please overview my code here . specially main functions are servePage and displayPage . <?php /** * Copyright 2009 - 2011 Color Shift, Inc. * * @package Luminance v4.0 * * This class handles …

Web Development caching php
Member Avatar for rubberman
0
324
Member Avatar for Stefce

Hello i would like to invite all who like to take risks and like to build something new, i'm building a project and i can say its complete about 90% BUT i'm not experienced too much to finish the project by my self, so i need HELP from someone who …

Web Development css-bootstrap php
Member Avatar for Stefce
0
268
Member Avatar for Ashish_26

Please review my new site https://flitlance.com What do you think about the colors and the layout of the site??? Is it pleasing to the eye? Do you have any suggestions about how it looks or the content of the site. All suggestions will be greatly appreciated.

Web Development
Member Avatar for diafol
0
171
Member Avatar for amaz4u

i am able to populate data in chain select drop down list but the problem is when page is refreshing selected data is lost how to fix that .. here is the code.. <?php require_once 'include/config.php'; require_once 'include/opendb.php'; ?> <?php if(isset($_POST['model'])){ //This is for the third and final drop down …

Web Development html-css mysql php
Member Avatar for diafol
0
3K
Member Avatar for Saro_1

Hi Daniweb, I noticed that [this website](http://bit.ly/2d0tjQn) first loads the lists before it gets its css mark-up. Is there a way to prevent this from happening? Thanks a lot!

Web Development
Member Avatar for Saro_1
0
484
Member Avatar for valatharv

Hi, a) I need to display list of ItemName, ItemLocation in a table row with a check box in the left-most column. b) User can select multiple jobs and on clicking "Submit" button I should pass the selected ItemName and ItemLocation to a fuction in java. I am able to …

Web Development display java-jsp
Member Avatar for diafol
0
12K
Member Avatar for hrushi9

I have created template for user to user chat module. Need help to complete realtime chat. Need some validations like highlight chat window on message received if it is inactive. `to_id` is collected in script (`var userid`). how to collect `from_id` , if user is logged in via php. currently …

Member Avatar for jkon
0
3K

The End.