52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Martin C++

Hello, I have two requests to my server. The first one gets categories and the output to URL is something like this: doomain.com?category=1. The second request is meant for sorting the data in that specific category. This request outputs something like: domain.com?sort-by=name. What I need is something like this: domain.com?category=1&sort-by=name. …

Web Development php
Member Avatar for diafol
0
101
Member Avatar for neha05

Hiii I have two tables 1.category_sub sub_id category_id category_name description event image 2.category category_id category_name my query is that how can i get both values category_id and category_name in category_submy code is that like <?php include("connection.php"); $query_1 = "SELECT distinct(category_name) from `category` "; $result_1 = mysql_query($query_1); $category_name=""; $subcategory_name=""; $description=""; $event=""; …

Web Development api data-protection html-css php
Member Avatar for neha05
0
139
Member Avatar for ehpratah

hi fellas out thiere im having a headache right now in sending email with attachment..im using ftp in storing the file in my dirctory and sending it to my email...i can upload the file and send it but the prolem is when i try to dowload the file from the …

Web Development file-stream html-css os-x php
Member Avatar for ehpratah
0
218
Member Avatar for kishoresai438

Hi frnds, I need to seperate keys based on valuee. Please check the below array. Array ( [0] => 10:00 to 10:15, 10:30 to 11:00, [1] => 10:00 to 10:15, 10:30 to 11:00, [2] => 10:30 to 12:15, [3] => [4] => 10:00 to 10:15, 10:30 to 11:00, [5] => …

Web Development php
Member Avatar for R0bb0b
0
88
Member Avatar for anirban1087

I am trying to get some xml data into my web page using php. When I am placeing the url into a web browser it is showing some xml data. But when I am doing that from inside a php page it is returning some empty data. The link is …

Web Development php web-browser xml
Member Avatar for R0bb0b
0
293
Member Avatar for jspence29

My site is www.jeremyspence.net78.net. As you scroll down I want to make the main menu dissapear(the one menu you see now) and another smaller menu (kinda like the apple menu from apple.com) appear on the top that is fixed, I was thinking about making a sticky menu, but I want …

Member Avatar for JorgeM
0
221
Member Avatar for joshl_1995

Hello Community, Is there a way to make it so a cookie will expire after the user has been inactive for 10 minutes. Please Help...

Web Development php
Member Avatar for joshl_1995
0
250
Member Avatar for DaveyMoyes

Hi everyone - I am helping to build a website for a good friend of mine & we are adding into the website an easy to read conversion rate. The only problem we have at the moment is the value is being displayed incorrectly. for instance - If the website …

Web Development php
Member Avatar for DaveyMoyes
0
158
Member Avatar for HunainHafeez

i want to make this string , "'basic@yahoo.com'" like this "basic@yahoo.com" in asp.net , via .Repalce function,

Web Development asp.net
Member Avatar for stbuchok
0
106
Member Avatar for Proglearner

As an exercise to help learn JS, I wrote a short bit of code that defines an array of random integers and then randomly logs one of them. Here's the code: var turkey = true var crud = [] for (i=0;i<10;i++) { j = abs(Math.random()* 10); crud.push[j]; } while (turkey) …

Web Development javascript
Member Avatar for Proglearner
0
127
Member Avatar for bradly.spicer

Hey all, Looking for some quick guidance, Trying to make it so that I can have a field which presents how many customers the database has. E.g This is the DB: http://prntscr.com/o2vuf This is my php: <?PHP $id_customers = "SELECT id FROM Customers"; $Customeramount = mysql_query($id_customers) or die(mysql_error()); echo $Customeramount; …

Web Development mysql php
Member Avatar for bradly.spicer
0
206
Member Avatar for christinetom

Hi again everyone.. Happy New Year. Hope yours was as good as mine. Would anyone know if Javascript can be used to create complex search queries. I see that you can bring up a Java Console in web browsers such as Chrome and Firefix and I was thinking that with …

Web Development javascript
Member Avatar for pritaeas
0
163
Member Avatar for zjony.rashed

Hello, Happy New year please help me senior bro,I can't insert mulityple selected checkbox value into my databse.When i click SUBIT then it show me below error: *Error Number: 1054 Unknown column '0' in 'field list' INSERT INTO `tbl_course_offred` (`0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `user_id`) VALUES …

Web Development mysql php session
Member Avatar for diafol
0
112
Member Avatar for eburlea

Hi all. For 3 days I have searched the web to find out how it works, unfortunatelly with no success. I need to compare the encrypted haptcha code with my text, both of them sent by a form. if(!isset($_POST['my_text'])) { $view = new Zend_View(); $captcha = new Zend_Captcha_Figlet(array( 'name' => …

Web Development php
Member Avatar for eburlea
0
168
Member Avatar for Venter

> QuoCAtted Text Here Actually I'm passing connection Parameters by calling class Connection.Here what i cant understood is what is the way for passing the value in $link(which can declare as protected).when i want to use this connect class in other page how can i use this class. <?php class …

Web Development php
Member Avatar for pritaeas
0
846
Member Avatar for janskey15

<?php session_start(); include "dbConfig.php"; if (!$_SESSION["valid_user"]) { // User not logged in, redirect to login page // Header("Location: login.php"); } echo "<p>User ID: " . $_SESSION["valid_id"]; echo "<p>Username: " . $_SESSION["valid_user"]; $sql = "SELECT tbl_subject.SubjectID, tbl_subject.SubjectDesc, studentsubjectgrade.Finals FROM tbl_subject INNER JOIN studentsubjectgrade ON tbl_subject.SubjectID=studentsubjectgrade.SubjectID INNER JOIN academicyr ON studentsubjectgrade.SubjectID=academicyr.SubjectID WHERE …

Web Development php
Member Avatar for LastMitch
0
1K
Member Avatar for rahim92

This my error massage : Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\test\loginproc.php on line 16 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\test\loginproc.php:16) in C:\xampp\htdocs\test\loginproc.php on line 24 ======================================================================================================== <?php require_once('Connections/kgcrmis.php'); ?> <?php // Inialize session session_start(); // Retrieve …

Web Development php session
Member Avatar for TonyG_cyprus
0
163
Member Avatar for TonyG_cyprus

Ok, so this is driving me nuts, because I can't see why it's happening. Simple code: <html> <head> <meta name='author' content='TonyG' /> <meta name='description' content='' /> <meta name='keywords' content='' /> <title></title> <link rel='stylesheet' type='text/css' href='css/style.css' media='all'/> <link rel='shortcut icon' href='favicon.ico'> </head> <body><div class='container'> <div class='header'></div> <div class='content'> <div class='navi'> <ul …

Web Development html-css php
Member Avatar for TonyG_cyprus
0
142
Member Avatar for mehnihma

I have this code: $status_kol=trim($v->Status); $mojakolicina = "Raspoloživo"; if($status_kol=="Raspoloživo"){ $status_dobavljivosti=2; } else { $status_dobavljivosti=0; } echo "OVO JE ZA dostupnost : $status_dobavljivosti <br/>\n"; But i alway get 0 And I get 3 when status_kol is not "Raspoloživo"? Can you help me with this? Thans

Web Development php
Member Avatar for diafol
0
165
Member Avatar for bradly.spicer

Hey, I've been messing around with SQL And PHP recently and I've come into another problem which has blown all logic out for me. I have this form: System Type <select name="systype"> <option value="systype1">type1</option> <option value="systype2">type2</option> <option value="systype3">type3</option> <option value="systype4">type4</option> <option value="none" selected="selected">None</option> </select><br> This form will send whatever is …

Web Development php sql
Member Avatar for bradly.spicer
0
132
Member Avatar for jahidshumon

i know something about php.but i cant know how to start my work in php.pls help me...

Web Development php
Member Avatar for veedeoo
0
224
Member Avatar for Proglearner

Have a look at this snippet: var changeNumber = function(number) { return number + 5; }; var newNumber = 4; changeNumber(newNumber); alert(newNumber); I've been taught that the function should reassign whatever value it returns to the global variable NewNumber, so that newNumber should change from 4 to 9. This doesn't, …

Web Development javascript
Member Avatar for Proglearner
0
182
Member Avatar for soapyillusion

Hello all, I'm working with a currently existing custom page bookmarking tool for an application. The application records the last 5 pages viewed and the allows the user to save 5 bookmarks at anytime. And this function works fine. However we have a specific web page that is used for …

Web Development php
Member Avatar for soapyillusion
0
156
Member Avatar for Rizi004

hello i want to write the given css code in javascript but it is not working i have the div with id one. below is the css code that is working fine ` <style> #one { width:96px; height:0px; left:204px; top:65px; z-index:2; position:absolute; background-color:#FFF; animation:myfirst 2s; -moz-animation:myfirst 2s; /* Firefox */ …

Web Development html-css javascript
Member Avatar for gon1387
0
3K
Member Avatar for VenusCrystal

Hi, I have ajax call in my script which calls php file. I need to extract its response in two parts to add it on my page to different components each. For example, say I have these two echo statements in my php: echo "<option> add to list1 </option>"; echo …

Web Development javascript javascript-jquery php
Member Avatar for diafol
0
2K
Member Avatar for GraficRegret

I have aske this once before with different peramiters and im not sure how to adjust the code to suit what I need it to do so once more here is the code <?php include 'conection.php'; $result = mysql_query("SELECT * FROM inventory") or die(mysql_error()); echo "<table border = '1'>"; echo …

Web Development php
Member Avatar for GraficRegret
0
155
Member Avatar for efth

I have some functions that I frequently use in a file called customLib.js. When I want to use one of the functions I copy its definition to the script where I want to use it. Could I upload it somewhere, like dropbox, and use a dropbox url as the src …

Web Development javascript
Member Avatar for gon1387
0
121
Member Avatar for abeer.rao

hi, i am creating a php based image gallery, after long search on google i found a good decent code for it. but when i change the opendir() location in code, the thumbnail image shows blank image instead of orignal image! here is the code! <?php # SETTINGS $max_width = …

Web Development image php
Member Avatar for Webville312
0
245
Member Avatar for siddharth.dixit.5243

Write a php program for Currency conversion. Input Currency name, Value of Input Currency, Output Currency Name Output Currency Value. 1 dollar=50 Rupee 1 Pound= 1.5 dollar 1 Pound= 80 Rupee

Web Development php
Member Avatar for gon1387
0
189
Member Avatar for abeer.rao

i am creating a image gallery that uses different pages. i use simple html menu to link those pages but it was not redirecting to their orinal location. <ul> <li class="menu"><a href="new/index.php">Aww</a></li>; <li class="menu"><a href="mew1/index.php">Hot</a></li>; <li class="menu"><a href="new2/index.php">Chicks</a></li>; </ul> i have no clue that what to do!!

Web Development php
Member Avatar for Webville312
0
167
Member Avatar for bibiki

Hey there, I have a jsp page and a checkbox inside it: <input type="checkbox" name="some" onchange="test()">Check me</input> I also have this function: function test() { out.println("checkbox checked status changed"); } I want the function test to be invoked every time I check/uncheck my checkbox. It is not working. Since I …

Web Development java-jsp
Member Avatar for bibiki
0
159
Member Avatar for subrata_ushasi

Hi , I have return type object is "$answer" and I am getting the output by ussing "echo $answer"; is : array 'AnswerId' => int 1 'Comment' => string 'The license is found.OK' 'LicenseInt' => array 'LicenseID' => string 'L005673’. 'Prod_ID' => int 5644 'LicenseDate' => object(DateTime)[35] public 'date' => …

Web Development display php
Member Avatar for subrata_ushasi
0
214
Member Avatar for unikorndesigns

Hello guys, i'll try to explain the problem i am facing here. I had searched for many file uploaders with drag and drop interface. I came across something at http://demos.9lessons.info/multiupload/index.php called the multiuploader. I saw the code and it was a bit of nightmare to me as am not so …

Member Avatar for unikorndesigns
0
434
Member Avatar for bangla

Hi, I am trying to disable the 'start' button after i click on 'start' button. Its not working. Please help. <html> <SCRIPT language="JavaScript"> <!--hide function newtext() { document.myform.mytext.disabled = true; setTimeout("moretext()",9000); } function moretext() { document.myform.one.disabled = true; } //--> </SCRIPT> </HEAD> <BODY> <FORM name="myform" method="post" action="sessionS1.php"> <table width='600' cellpadding='5' …

Web Development javascript
Member Avatar for Bachu
0
118
Member Avatar for bangla

Hi, I click 'start' button, then start button is disabled as expected. Once I click start button, i want to see the values of f1 and f2 on first row , values of f3 and f1 on the second row. First row is working just fine. but the second row …

Web Development javascript
Member Avatar for Bachu
0
470
Member Avatar for rouse

I have two immediate problems with the code I am working with. I have an area when I hover over it makes visible prompts to social media sites. But I don’t know how to keep the prompts visible while you choose the site that you want to visit. Secondly as …

Member Avatar for rouse
0
159
Member Avatar for bangla

Hi, Would you please help me how to store a value from java script into php variable? <SCRIPT language="JavaScript"> var q1=Math.floor(Math.random()*11) <? php $q1v = q1 ; ?> </SCRIPT> echo $q1v

Web Development javascript php
Member Avatar for bangla
0
84
Member Avatar for programmer12

Hi, I am trying to create a way where Javascript can do a loop between two Unix Timestamps to print out the dates and some html. I have created a way for this method to work in PHP. However, I need this same method to work in Javascript. Working PHP: …

Web Development javascript unix
Member Avatar for programmer12
0
618
Member Avatar for GraficRegret

I would like to know if there is a way to change an uploaded files dimentions to a specified dimention and make the size of the file adhere to a specified size, I have a person uploading huge files after being told to make them smaller, this guy refuses to …

Web Development php
Member Avatar for GraficRegret
0
221
Member Avatar for techyworld

Hi am using Ocanvas Javascript Library, i need to blur an image. how can i do this?

Web Development image javascript
Member Avatar for Taywin
0
76
Member Avatar for simplypixie

This is driving me mad. I am using jquery and ajax to run the php to update my database and that all works fine, but after the update (specifically adding records) I want to re-run the query to get all records so that the new one is displayed but nothing …

Web Development javascript-jquery php
Member Avatar for diafol
0
1K
Member Avatar for jonsan32

I have a basketball league with over 100 teams, and I'm trying to organize the look and feel of the schedule, standings, and gym locations for the coaches, players, and parents to view on my website. I'm wondering how I could apply something like the code I posetd below, but …

Web Development apache javascript php
Member Avatar for diafol
0
217
Member Avatar for rohit.khurana

I am trying to use custom tags in ruby..i am a newbie to ruby.I hav developed in java before and i am myself a web developer.I have made custom tags for JSP pages but i m not sure wether we can form custom tags in .erb files also..???

Web Development java-jsp ruby
Member Avatar for L7Sqr
0
113
Member Avatar for divyakrishnan

Hi.. I have a group of checkboxes and I want to apply a style to checked checkbox and remove the style of all other boxes.Here only one checkbox should be cheked at a time. The code I used as follows <script type="text/javascript" src="jquery-1.7.1.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $(".item").click(function(e) { //$(".item").each( …

Member Avatar for diafol
0
1K
Member Avatar for jrosh

$('#div').load('/controller/_partialview); <div id="div">"partial view"</div> does not work (does not load the partial view) in IE9 It works perfrectly on firefox and chrome What is the solution? thanks in advance

Web Development javascript javascript-jquery
Member Avatar for stbuchok
0
266
Member Avatar for fiona.mcburney

Hi there. I'm trying to wrap my brain around something that is probably really simple - once you know how. I want to print the name of each park, only once, along with a list of its features. I have the following SQL query... $query = 'SELECT id, name, feat_name …

Web Development mysql php
Member Avatar for diafol
0
133
Member Avatar for myethan

can we write a browser support code in jsp.????

Web Development java-jsp
Member Avatar for stultuske
0
76
Member Avatar for garyjohnson

Okay what I am trying to do might be hard to understand, but I will give it my best shot. I have created a script which selects data randomly from a table called albumname in a databse called characters. This array is then used again in a mysql_query to select …

Web Development mysql php sql
Member Avatar for diafol
0
241
Member Avatar for azgold472

This is what im trying to do. I qwery the database for 7 events and im attempting to do a rotating banner with link and a caption. However being new to this php coding im having issues with my echo statements. The title Tag is my caption. Im attempting to …

Web Development php sql
Member Avatar for diafol
0
163
Member Avatar for raju_boini525

hi all, i am redirecting [url]http://test.asia/[/url] to [url]http://test.com.au/asia/[/url] folder. but my problem is i don't want to show [url]http://test.com.au/asia/[/url] in address bar. i want to display [url]http://test.asia/[/url] instead of [url]http://test.com.au/asia/[/url]. i tried this using iframes and cloning but query strings are not showing . anyone have any idea please help …

Web Development apache php
Member Avatar for logu2win
0
802

The End.