52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for riahc3

I want to use a localStorage variable in a PHP page. Very simple but "strange". AJAX comes to mind. Whats the best form to do this? Thanks

Web Development php
Member Avatar for pritaeas
0
17K
Member Avatar for skliz

I am trying to develop a VIOP web application. Please does any body no how to do this in asp.net

Web Development asp.net
Member Avatar for skliz
0
207
Member Avatar for shashanknaik1

how to save value from prompt to database in php

Web Development php
Member Avatar for Szabi Zsoldos
0
96
Member Avatar for ehpratah

Hi to all i just cant get the grasp of what im trying to do basically i'm making a script that will higlight a certain **data(Date /time)** in my table if data < 3 min of current time.. ex $data="March 12, 2013, 16:18"; $current_time="March 12, 2013, 16:20" if($data< 3min of …

Web Development php
Member Avatar for ehpratah
0
216
Member Avatar for josh.hetherington4

Hello, I am trying to create a a transaction, and to do this I need to parse in my Session data into my Database. My function looks as follows function createTransaction(){ // Insert into the transactions table $query1 = mysql_query("INSERT INTO transactions (mem_id, OrderDate, Ship_Phone, Ship_Address, Ship_City, Ship_County, Ship_PostCode, Ship_Country) …

Web Development mysql php session
Member Avatar for armie340
0
206
Member Avatar for OsaMasw

Hello guys I mentioned earlier that I have installed mod_security module first everything was works fine until I've tried to upload large files my chmod for upload dirctory was 777 and when uploading file its ends with Internal Server Error I've changed the chmod of upload folder to 755 and …

Web Development php
Member Avatar for OsaMasw
0
2K
Member Avatar for Tko_1

Okay so i have this script that will upload and remane the file to image.png which works perfect. what i am trying to get is when uploaded number the image in order image1.png image2.png image3.png if (isset($_POST['submit'])) { $newext = '.png'; $filename = $_FILES["file"]["name"]; $file_basename = substr($filename, 0, strripos($filename, '.')); …

Web Development image php
Member Avatar for Tko_1
0
165
Member Avatar for Motifaithed

Hi Guys, Can you give me an idea how to secure a login page after logout wherein when I click the back button of the browser it will not redirect the page in the last page viewed, I read a lot of thread and saying that its all about session, …

Web Development php session
Member Avatar for Motifaithed
0
339
Member Avatar for klemme

I have an ajax call, and am wondering how I can fade in the response. The short code is this, I believe that is what you need to be able to tell what extra code should be added to achieve the fade in effect. PS: It is not made in …

Web Development javascript
Member Avatar for theHop
0
134
Member Avatar for davy_yg

Cek the following codes. It suppose to copy and paste the pictures - to folder photos/ . Yet, I haven't seen the message: "sucess copy file to photos" appears. only, "Data telah tersimpan" or "Successfully saving data to database". //Save Picture if (isset($_REQUEST['ok'])){ if (empty($_REQUEST['id'])) { $sqlstr = "INSERT INTO …

Web Development php
Member Avatar for davy_yg
0
635
Member Avatar for joshl_1995

Hello Community, I need help using the ftp_nlist command, what i'm trying to do is look in a directory but the directory is two separate string (eg. "New folder") and it is saying there is nothing in there but there is i'm sure the problem is because the two separate …

Web Development file-system php
Member Avatar for joshl_1995
0
582
Member Avatar for diether.silverious

hi Guys Good day.. i have this two array that i want to combine: 1st array: when using print_r($productItems) Here is the result: Array ( [0] => Array ( [item_id] => 13 [quantity] => 4 ) [1] => Array ( [item_id] => 15 [quantity] => 1 ) [2] => Array …

Web Development php
Member Avatar for broj1
0
110
Member Avatar for capton

Hello i have index.php file in root directory redirecting to a page. It's working perfect on my localhost but not the webserver. Also link to the root folder on the webserver lists files excluding the index.php Please i need help with this

Web Development client-server php
Member Avatar for capton
0
634
Member Avatar for maryam_89

Basically, I am wanting to get the last userID which is submitted when the user enters their details and clicks the submit button. I have searched the internet and have made changes but still don't understand where i'm going wrong. I used the MAX statement to show the last user …

Web Development asp asp.net open-source vb.net
Member Avatar for JorgeM
0
240
Member Avatar for RT00220489

Hi, I seek your help as m stuck with an issue. I am uploading a css style file in a folder and need to provide the link to that css file in my aspx page. That is simple, but the twist is, the file name can be anything. That file …

Web Development asp.net html-css seo
Member Avatar for JorgeM
0
205
Member Avatar for OsaMasw

hello guys, unfortunly my website got hacked few hours ago, and after investigations I found the was a c99.php file on my server so i deleted it and stopped any upload proccess and change back my chmod to default I want to ask how to prevent php files from being …

Member Avatar for naphets
0
2K
Member Avatar for asif49

I am writing some jquery script that will run across a large amount of completely different web pages (different domains too) and it will surround certain words on the page with html tags to style them up - make them more noticeable etc. Here's some sample code I've written... $('body').ready(function() …

Web Development javascript javascript-jquery
Member Avatar for JJenZz
0
204
Member Avatar for ngonix

Hi i'm having a slight issue with loading variable into another page without refreshing first page. So here's the deal. I have two windows(pages), when i click a button(agents) in the parent window a child window opens with a list of agents from mysql database. Here are the parent and …

Web Development php
Member Avatar for ngonix
0
3K
Member Avatar for kingkong142

Hi, I want to make this field "Hidden" and want to select by default last option "Both". ho w i can do this? <input id="memberRoleIntlSeller" value="supplier" name="userrole" style="border: 0px none ;" onclick="document.getElementById('userrole-error').style.display='none';changesubmitbtnname('yes');" type="radio" <? if($_REQUEST['userrole']=="supplier"){?>checked="checked"<? }else{echo "";} ?> /> <font class="normal"> <?=$suppliers_title?> </font></div> <div class="buyOrSellBox"> <input id="memberRoleIntlBuyer" value="buyer" onclick="document.getElementById('userrole-error').style.display='none';changesubmitbtnname('yes');" name="userrole" …

Web Development php
Member Avatar for kingkong142
0
162
Member Avatar for coder91

So having an error when I select my button in the gridview. Was told to use the gridview row command which I have, keep getting an error about the App_Data subdirectory. protected void gvUnlock_RowCommand(object sender, GridViewCommandEventArgs e) { String userName = e.CommandArgument.ToString(); MembershipUser usr = Membership.GetUser("userName"); if ((usr != null) …

Web Development asp.net
Member Avatar for coder91
0
308
Member Avatar for arupface

class variables have a niche to fill: ***visibility to a class and its instances, and to no one else. Typically, this means being visible in class-method definitions and instancemethod definitions, and sometimes at the top level of the class definition.*** I understood that. But didn't find any example of the …

Web Development ruby
Member Avatar for sepp2k
0
195
Member Avatar for hostguy

i wanna send a username and password securely from php page(Apache server) to the Java api (Tomcat server). That api should verify them and open the api in the browser. How can i achieve it guys??? I tried to use webservice but the response from the api is sent to …

Web Development apache api java php
Member Avatar for Webville312
0
250
Member Avatar for davy_yg

I am trying delete data from table, the form method is post. The url http://localhost/RustoleumCustomCMS2/administrator/input_image.php?mode=delete&id=0 (passing mode = delete and id = 0). I wonder why nothing happen. It suppose to delete a row in the database. include('../includes/koneksi.php'); $id = isset($_POST['id']) ? $_POST['id'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] …

Web Development php
Member Avatar for broj1
0
166
Member Avatar for diether.silverious

Hi guys Good day, this codes works perfectly for me. <?php // This block grabs the whole list for viewing $product_list = ""; $sql = mysql_query("SELECT * FROM product ORDER BY date_added DESC"); $productCount = mysql_num_rows($sql); // count the output amount if ($productCount > 0) { while($row = mysql_fetch_array($sql)){ $id …

Web Development php
Member Avatar for diether.silverious
0
200
Member Avatar for alltech

Flash game is ok in IE but in Google Chrome or Firefox the game opens up in a specified window size but the game itself which is flash, is a small image at top left within the window size. for example like placing a postage stamp on top left hand …

Web Development flash google html-css javascript
Member Avatar for pixelsoul
0
184
Member Avatar for Master Mascus

can anyone tel me why the dropdownlist does not execute on textchanged ? <%@ Page Language="VB" AutoEventWireup="true" CodeFile="index.aspx.vb" Inherits="Index" %> <%@ Register TagPrefix="Ridwan" TagName="TabControl" Src="~/Assignment/Controls/TabControl.ascx" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>JJ Shop | Home</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link href="style.css" rel="stylesheet" …

Member Avatar for LastMitch
0
206
Member Avatar for HunainHafeez

need an insert query for my code , i wrote code to add table rows having textboxes, dynamically, e.g yoh have only passed HSSC exam then you have to fill 2 levels of education SSC, HSSC......or say you have passed Phd , then SSC,HSSC,BS, MS, Phd, you have to fill …

Web Development asp.net mssql
Member Avatar for LastMitch
0
294
Member Avatar for skliz

During my study on web apli. I learnt that it enables you to create web services that would use HTTP protocol. My question is web api could it be a called the replacement for soap web services. what is the comparative advantage of using webapi over soap services

Web Development api asp.net http-protocol
Member Avatar for skliz
0
147
Member Avatar for korathualex

set focus to textbox on blur validation...I am doing character strength validation on the blur event of textbox..How to set focus to it...

Web Development asp.net javascript
Member Avatar for BMXDad
0
149
Member Avatar for gs1344

Everyone has been helpful during this learning process, Thanks! I am not even sure this is doable or even how to start the code! Can anyone please point me in the right direction. I have searched everything I can on this but nothing seems to fit what I want to …

Web Development asp.net sql
Member Avatar for LastMitch
0
199
Member Avatar for sri.

i am using php 5.4.3 I have this code: <?php $handle = printer_open(); printer_write($handle, "Text to print"); printer_close($handle); ?> when i run get below error message : Fatal error: Call to undefined function: printer_open()... What could be wrong?

Web Development php printer
Member Avatar for akgreen
0
7K
Member Avatar for bernic.ion

Hi, I have a problem whith my multisite wordpress website. On my local server is all ok but on the server i have an 400 bad request error. I think that this is a problem problem with my Web server. Here are some code snippets of my .htacces file. # …

Web Development php web-server wordpress
Member Avatar for LastMitch
0
204
Member Avatar for Shodow

how to make this "if the checkbox is checked add total + 10000 if uncheck none" because in this situation everytime i check or uncheck the checkbox it adds 10000 function AmmenitiesCALC(value){ newValue = parseInt(value); document.formcheck.Total.value = newValue; Total+=newValue; document.formcheck.Total.value = Total; } <tr> <th>AMMENITIES INCLUDED </th><td><input type="checkbox" name="Ammenities" value='10000' …

Web Development javascript
Member Avatar for DavidB
0
148
Member Avatar for asif49

Hi, My objective is to replace all pattern words that match a particular regex with that word surrounded in some html tags like so. Example html: <p>This is some text where the word text will get surrounded by something else.</p> After regex: <p>This is some <span class='mydiv'>text</span> where the word …

Member Avatar for JJenZz
0
249
Member Avatar for adishardis

Hi, I have a 'persons' table, an 'answer' table and a 'token' table. The token table contains matching unique identifiers from the persons table and the answers table. In my query I want to join the persons table with the answers but I don't know how to proceed since they …

Web Development mysql php
Member Avatar for adishardis
0
137
Member Avatar for Shodow

how to add the sum of them all <script type="text/javascript"> function AddGuestCALC(){ newValue = (parseInt(document.formcheck.Price.value) * parseInt(document.formcheck.Guest.value)); document.formcheck.AddGuestTOTAL.value = newValue; } function MenuChange(){ newValue = parseInt(document.formcheck.Menu.value.asInt); document.formcheck.Price.value = newValue; } function LechonCALC(){ newValue = parseInt(document.formcheck.Lechon.value) * 6500; document.formcheck.LechonTOTAL.value = newValue; } function AmmenitiesCALC(){ newValue = parseInt(document.formcheck.Total.value) + 10000; document.formcheck.Total.value = …

Web Development javascript
Member Avatar for Shodow
0
188
Member Avatar for Samyx

Hello Everyone, I am having issues trying to display a grid on my page. I am not sure what I am doing wrong. I know the code is not very clean and efficient, I am just learning php and dojo. I want to display 2 graphs on a page and …

Web Development html-css javascript
Member Avatar for Samyx
0
218
Member Avatar for winbala5

hi all, am trying to add google chart to my application. i want a graph like the one attached. Below is the code which i am using to generate the GRAPH. i am able to generate for only 1 graph My question is how to pass value dynamically and to …

Web Development api google google-api json php
Member Avatar for pritaeas
0
242
Member Avatar for asif49

I have a regex which matches a string of length between 10 - 15, lower case alphabetic characters like so... str.replace(/[a-z]{10,15}/g,"replacement word")); ^^ The next step is I'd like to ignore any whitespace whilst matching. I've tried str.replace(/[a-z]{10,15}\s*/g,"replacement word")); and str.replace(/[a-z]{10,15}\s?/g,"replacement word")); But it still doesn't ignore whitespace when matching. …

Web Development javascript regex
Member Avatar for JJenZz
0
573
Member Avatar for davy_yg

Hello all, Cek this page: [image gallery](http://www.rustoleum-indonesia.com/aerosol-produk.php) That's static image gallery - and I am trying to create backend for it. If I upload new pictures to edit the existing pictures, they will have random name, then how does the computer now where to place each random name ? (since …

Web Development image php
Member Avatar for pixelsoul
0
225
Member Avatar for nevek

I have for example an objec room which has an atribute floor which is text. Let's say that `$room->floor = "hi i'm a floor"` my querry statement would be `"UPDATE room SET floor=$room->floor where id=room->id"` when I insert it with php into a mysql db it gives an error because …

Web Development php
Member Avatar for broj1
0
196
Member Avatar for deepak.fugo

Hi All, We have website on Shared hosting. I am a newbie. i have installed PHPUnit testing framework on the server. When i try to run a test case in command mode(phpunit --help), i am getting error as attached screenshot. Kindly help me in executing PHPUnit. Regards,

Web Development php
Member Avatar for ahmedhamdy
0
257
Member Avatar for arupface

This is below is an example of superclass/subclass construct : C:\>irb --simple-prompt >> class Parent >> @@x = 10 >> end => 10 >> class Child < Parent >> @@x = 12 >> end => 12 >> class Parent >> puts "@@X = #{@@x}" >> end @@X = 12 => …

Web Development ruby
Member Avatar for sepp2k
0
217
Member Avatar for confstu

Hi every body, i'm a newbie in javascript, so i need all your help i have a javascript like this: <script type="text/javascript"> function validate(target, e){ var id = e.dataTransfer.getData('div'); var clone = document.getElementById(id).cloneNode(true); var allValues = []; for (i=0; i<clone.length; i++) { if (clone[i].value != "") { allValues[i] = clone[i].value.toLowerCase(); …

Web Development javascript
Member Avatar for charles nitro
0
164
Member Avatar for dinhunzvi

i have the following tables in my database: CREATE TABLE `tblbrands` ( `brandid` tinyint(2) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(25) NOT NULL, PRIMARY KEY (`brandid`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8; CREATE TABLE `tblcars` ( `carid` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `brandid` tinyint(2) unsigned NOT NULL, `typeid` …

Web Development php
Member Avatar for pritaeas
0
2K
Member Avatar for MasterHacker110

I am learning javascript. I get them to work when I use them within HTML code. But I would like to make programs that i can run on my desktop with javascript without using HTML or IE. Is that posible becuase I always get an error when trying to run …

Web Development javascript
Member Avatar for AffineMesh
0
107
Member Avatar for janskey15

<?php include "dbConfig.php"; $sql_query = mysql_query("SELECT SubjectID, SubjectDesc, FROM tbl_subject"); ?> <select name="X" value="X"> <option value="Choose">Choose</option> <?php while($fetch = mysql_fetch_array($sql_query)) { ; ?> <option value="<?php $fetch['SubjectID'];?>" selected="selected"><?php echo $fetch['SubjectID']; ?></option> <?php } ?> </select> INSERT code <?php include "dbConfig.php"; $Y = $_POST["Y"]; $query="INSERT into tbl_subjectsenrolled(SubjectID) values('".mysql_real_escape_string($Y)."')"; ?> But I cannot …

Web Development mysql php
Member Avatar for janskey15
0
230
Member Avatar for suavedesign

How do I delay an animation in jquery? I have a <p> in to the page as soon as the page loads. I have another <p> that I want to slide in only after the first <p> finishes coming in, and then I want an image to move when that …

Web Development javascript javascript-jquery
Member Avatar for pixelsoul
0
116
Member Avatar for cokerz_written

Hy every body, i am a new people in here, so i am need all of your help, please.. i have the script ajax like this, <script type="text/javascript"> jQ(document).ready(function() { jQ().ajaxStart(function() { jQ('#loading').show(); jQ('#result').hide(); }).ajaxStop(function() { jQ('#loading').hide(); jQ('#result').fadeIn('slow'); }); jQ('#frm').submit(function() { var formData = new FormData($(this)[0]); jQ.ajax({ type: 'POST', url: …

Web Development file-system image javascript
Member Avatar for pixelsoul
0
270
Member Avatar for gaasha

I'm new to MVC4 programming. I want to populate a **DropDownList** from a table's field but don't know how to, although I searched for relevant material from Internet but couldn't get some workable info. There are 2 tables **Software** and **Category** (showing the type of S/w e.g. Anti-Virus or Graphics …

Web Development asp.net software-architecture
Member Avatar for LastMitch
0
315

The End.