52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for LaughingOtter

Hi! Long time no post, mostly because I've had to put the mobile coding aside for my real job. Plus some home brewing. And lots of pinball. I have run into a problem. I am developing an application where an Excel spreadsheet (or tab-delimited text file) can be read in …

Web Development php
Member Avatar for LaughingOtter
0
528
Member Avatar for nishi.ahmed2

how i can implement php code in my blogspot website name [text free](http://text-free.blogspot.com/). how is is it possible? i want add little programme in my blogspot site

Web Development php
Member Avatar for diafol
0
334
Member Avatar for ferdinandmucos

How do I Change the select option to check boxes in the following code: foreach($qas as $k=>$v) { echo "<input id='text' style='width:40%' type='text' value='".$v['question']."' name='questions[]' >"; echo "<select name='selected_answers[]'>"; foreach($v['answers'] as $answer){ echo "<option value='".$answer."'>".$answer."</option>"; } echo "</select>"; echo "<br/><br/>"; }

Web Development php
Member Avatar for ferdinandmucos
0
245
Member Avatar for daniel.pareja.315

Hi all, would like to convert this javaScript code versatile so it will be able to extend various inputs of a form. var instance = 0; function moreFields() { // Check if there isn't more than 3 fields if(instance != 3) { instance++; // Create a child var clone = …

Web Development javascript
Member Avatar for daniel.pareja.315
0
155
Member Avatar for davy_yg

Hi, How to revise the php code so that it could fits the subject for e-mail? Thanks. <?php require_once('recaptchalib.php'); $name = strip_tags(@$_POST['name']); $email = str_replace(" ", "", strip_tags(@$_POST['email'])); $phone = str_replace(" ", "", strip_tags(@$_POST['phone'])); $message = strip_tags(@$_POST['message']); if (@$_POST['submit']) { if ($name&&$email&&$phone&&$message) { if (is_numeric($phone)) { $privatekey = "6LfjvdcSAAAAAHNcKjYO5DhTNefxYZHYcfhtrvGC"; $resp …

Web Development email php
Member Avatar for davy_yg
0
115
Member Avatar for ferdinandmucos

Having a text file: $string = '1) The most important feature of spiral model is: requirement analysis. risk management. quality management. configuration management 2) The worst type of coupling is: Data coupling. control coupling. stamp coupling. content coupling 3) One of the fault base testing techniques is: unit testing. beta …

Member Avatar for ferdinandmucos
0
952
Member Avatar for Carpetfizz

Hello! I'm trying to pass a variable from one .php file to another, through the use of a global variable. However, whenever I make a variable "global", the page does not load. Here is the snippet of code that is causing the problem. If more context is required, let me …

Web Development html-css php
Member Avatar for LastMitch
0
255
Member Avatar for erum

i have follwoing code in jquery function CallService3() { $.ajax({ type: "POST", url: "MyService.asmx/Comments", // data: "{ 'loginid': " +"'"+ $("#txt_login").val()+"'" + ", 'pass': " + "'" + $("#txt_pass").val()+"'" + "}", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: OnSuccess3, error: OnError1 }); } function OnSuccess3(data, status) { if(data.d.length > …

Member Avatar for LastMitch
0
208
Member Avatar for riahc3

Hello Im having problems setting a cookie in PHP (using the Magento platform). The page is at: http://example.com/step1 When I click on a link here, a iframe opens up. This iframe opens up and is located at: http://example.com/somewhereelse/index.html I check a checkbox or I dont. If I check it, a …

Web Development ecommerce php
Member Avatar for LastMitch
0
242
Member Avatar for ivanichi

i have problem about while loop. this my code, error_reporting(E_ALL ^ (E_NOTICE | E_WARNING)); function multiexplode ($delimiters,$string) { $ready = str_replace($delimiters, $delimiters[0], $string); $launch = explode($delimiters[0], $ready); return $launch; } function my_replace($srch, $replace, $subject, $skip=1){ $subject = explode($srch, $subject.' ', $skip+1); $subject[$skip] = str_replace($srch, $replace, $subject[$skip]); while (($tmp = array_pop($subject)) …

Web Development php
Member Avatar for ivanichi
0
578
Member Avatar for dhani09

I'm trying to create something like a breadcrumb based on what is selected from a drop down list. For example if a user selects accessories from a list and then goes on to select from another drop down list scarfs. I want to be able to show: You selected accessories …

Web Development php
Member Avatar for diafol
0
200
Member Avatar for ferdinandmucos

The two arrays does not compare and compute by adding one for every similar and 0 if otherwise I don't know what is wrong with the codes, but to me is seems fine. What might be the problem? <html> <head> <title>Chosen answers</title> </head> <body> <pre> <?php //Posting of the chosen …

Web Development php
Member Avatar for diafol
0
168
Member Avatar for Tewhano

I am working on an assignment from the book ‘New Perspectives: HTML, CSS and DHTML’ and I am unable to get the code to work. This is an online class and this book is not a desirable choice for this type of class. Basically I am to write code to …

Web Development display html-css image javascript
Member Avatar for radhakrishna.p
0
423
Member Avatar for simon.evans.7739

Hi everyone I'm having a very annoying problem that I can't seem to find an answer to. I have a rather simple web app that basically retrieves some data from a database. I'm using Visual Studio 2010 Pro. I've developed the app and deployed it to my web server and …

Web Development asp.net visual-studio web-server
Member Avatar for annaharris
0
2K
Member Avatar for jethaya

here is the full page code sorry its bit long but i have no clue where i went wrong all i get when i run this is the page with its background and an empty text area basicly i am trying to get the info from a table in my …

Web Development display html-css php
Member Avatar for jethaya
0
338
Member Avatar for blivori

I am trying to search through a JSON file and display only the result matching the input form. When I click the 'Search' button, nothing happens. How can I resolve this? This is the code: <div id="search"> <form name="input" action="search()" method="get"> Search: <input id = "searchField" type="text" name="search"> <input type="button" …

Member Avatar for theHop
0
178
Member Avatar for daniel36

I need a link in my project sothat if anybody click on that link ,he remain on same page and the link opened in new tab.for example i have a link <a href="http://www.google.com">google</a> on page mypage.php .when anybody click on google than he will remain on mypage.php and a new …

Web Development php
Member Avatar for daniel36
0
148
Member Avatar for davy_yg

Hi, When I try to save the form I wonder why location and description remains empty. I already fill the form with the necessary information. input_image.php <?php include('../includes/koneksi.php'); $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $productname = isset($_POST['productname']) ? $_POST['productname'] : ''; $location …

Web Development php
Member Avatar for LastMitch
0
136
Member Avatar for riahc3

Hello Lets say in the localStorage object I have the following: Apple = red Potato = brown Gum = blue And I want to search thru it for the word Potato and then get its value (brown). How could I do this? Im thinking: for (var i=0;i<localStorage.length();i++) { if (localStorage[i]=="Potato") …

Web Development apple javascript
Member Avatar for imBaCodes
0
139
Member Avatar for Squidge

I have a very simple class for date display: class timing { public $today; public $year; function __construct() { date_default_timezone_set('GMT'); } function now() { return $this->today = date("D j M Y"); } function year() { return $this->year = date("Y"); } } I am pulling in using: $x = new timing(); …

Web Development php
Member Avatar for Squidge
0
117
Member Avatar for GlenRogers

Hi, I need to have a form with multiple image and description fields, say 15. So if 15 are filled in then it adds then it adds the images to 2 dirs(thumb and images) and saves the image pathname and the descriptions to the 2 mysql tables. I have this …

Web Development image php
Member Avatar for diafol
0
212
Member Avatar for dbalas

I am developing an application for a client. What i need is, send updates with changed records to clients where the email that needs to be used is extracted from the database. What is weird is that i cant send it to all email addresses... Note that i dont have …

Web Development html-css php
Member Avatar for dbalas
0
160
Member Avatar for mbarandao

Hi all: I'm trying to pull from a table all values of a specific row (accountids) and would like to iterate through each query result while perform a specified task with each value. Example: The following q-- $get_acctids="select accountid from company_info"; $result = mysql_query($get_acctids) or die(mysql_error()); while($row = mysql_fetch_array($result)){ $id_num= …

Web Development mysql php
Member Avatar for pritaeas
0
268
Member Avatar for Angle90

Hello Everyone, I need your help, can you please tell me how to create a text field for file upload with HTML ? I presently have this code in my form for file upload to the webserver; `<input name="userfile" type="file" size="50">`, this allows someone to browse file from their computer …

Web Development file-system php
Member Avatar for cereal
0
5K
Member Avatar for Buppy

Hi, I know it's possible to add actions for elements that are not in DOM yet, like $(element).live('event',function() { //code here }); Is there any way to execute the code without the event, or give it an event like 'exists' ? Like, when object is added, the function executes automatically, …

Web Development javascript javascript-jquery
Member Avatar for kela_wala
0
248
Member Avatar for eburlea

Hi all. I need to fix a bug in a code, it is not displaying properly (it appears in the upper-left corner and when I try to click on it, the page reloads). I cannot figure it out myself. Please help. <div class="btn_center" style="padding: 0 0 10px;"> <fieldset> <div class="edit_entry …

Web Development javascript perl
Member Avatar for eburlea
0
207
Member Avatar for bikashjit

I want a search engine for my website. Just take one simple example, of dictionary websites like http://dictionary.reference.com when you search any word it searches that word and show you the meaning. just like that, my search engine will search my blog topic and also show me my blog. How …

Web Development seo
Member Avatar for kittyshen2013
0
179
Member Avatar for <M/>

Hi, I can not create a database in the phpmyadmin. How do I enable the privilidges so I can create a database? ![a1f9ac111e8c5f99ec073858a8c29eef](/attachments/large/3/a1f9ac111e8c5f99ec073858a8c29eef.png "a1f9ac111e8c5f99ec073858a8c29eef") ![a1f9ac111e8c5f99ec073858a8c29eef](/attachments/large/3/a1f9ac111e8c5f99ec073858a8c29eef.png "a1f9ac111e8c5f99ec073858a8c29eef")

Web Development php
Member Avatar for <M/>
0
735
Member Avatar for sandeepek

I am trying to make a website which support mp3 downloading. I don't have any idea with this. I just tried like uploading image , in that I can store mp3 files into database and from there I can move that file into specified folder. I don't know here I …

Web Development php
Member Avatar for sandeepek
0
228
Member Avatar for nisbusiness

Creating a website is a great way to take your business to a higher level and get tremendous success in the online business world. But all your desires prove futile when you make a grave mistake in choosing a right host to create your websites as per your requirements. There …

Member Avatar for <M/>
0
249
Member Avatar for nisbusiness
Member Avatar for ero100@live.com

HI, HE IS MY FORM, I WOULD LIKE TO THE PHP CODE TO : DISPLY A MESSAGE IF THE ONE FIELD OR OTHER IS EMPTY, [code=html]<form id="form1" name="form1" method="post" action="form.php"> <label> NAME: <input type="text" name="name" id="name" /> </label> <p> Address: <label> <input type="text" name="address" id="address" /> </label> </p> </form>[/code] THANK …

Web Development php
Member Avatar for diafol
0
245
Member Avatar for nisbusiness

To what extent does a cloud hosting help expanding a business or any kind of website and how. Heard that it works even better than a dedicated web hosting services. Share your experience and thoughts too on this topic. Thanks in advance.

Web Development
Member Avatar for pritaeas
0
117
Member Avatar for javacle

Hi guyz, i'm working on a site, and i need some help on a php code for advanced file reading. I need to implement a php code that will intelligently read the contents of a file. When users upload the required type of file to my website, it will read …

Web Development file-system pdf php
Member Avatar for veedeoo
0
200
Member Avatar for ferdinandmucos

I have this text file that contain questions and their respective four multiple answers, when I try to display them in html form, the diplay only contains three multiple answers and not four. this are the codes: Text file: $string = 1) The most important feature of spiral model is: …

Member Avatar for paulkd
0
201
Member Avatar for ivanichi

Assuming i have $a='1024,1025,0000|1020,0000|'; $b='1024,1025,0000,1020,0000,'; i want replace commas (,) in $b with (|) so that $b is equal to $a like this $b='1024,1025,0000|1020,0000|'; if i use $ob=str_replace("0000,","0000|",$b); echo $ob; output works : 1024,1025,0000|1020,0000| But, how to make it with PHP where did i put that this refers to the …

Web Development php
Member Avatar for ivanichi
0
257
Member Avatar for OsaMasw

hello there thanks for help mke in many questions, I've learened a lot from this great community I have question about creating visitor counter,daily,monthly,yearly I've created a counter depending on IP address but all my costomer are in the same IP so this counter will not be accurate, So I …

Web Development php session
Member Avatar for OsaMasw
0
3K
Member Avatar for Carpetfizz

Hello! I have PHP and mySQL set up on a server, and everything works fine. I am able to connect to the SQL database successfully, etc. However, I want to set it up so that a user enters their "ID" in an input box. Then, the php script will return …

Web Development mysql php sql
Member Avatar for diafol
0
184
Member Avatar for Squidge

Hi All, I am using pritaeas found here: http://www.daniweb.com/web-development/php/code/430455/configurable-table-class I am pulling in the data and my brain has taken a vacation. I am using $arr = $dsn->getRecord('memeber', array('user_id' => 2)); But cannot for the life of me pull the data out. I get duplication as well from the data: …

Web Development php
Member Avatar for pritaeas
0
150
Member Avatar for PhilEaton

Here is the code: var Circle = function( radius ) { var _radius = radius, _area = function() { return Math.PI * _radius * _radius; }, _perimeter = function() { return 2 * Math.PI * _radius; }; this.radius = _radius; this.area = "Area" + _area(); this.perimeter = "Perimeter" + _perimeter(); …

Web Development javascript web-design
Member Avatar for PhilEaton
0
164
Member Avatar for mattster

Hi folks, I am aware this is a problem that many people have, but I am yet to find an answer... I have a 10x10 grid generated using a html `<table>`, each cell has an id reffering to its location (ie. #15 - row 1, colmn 5). All I need …

Member Avatar for LastMitch
0
365
Member Avatar for menukadevinda

[Click Here](http://demos.telerik.com/aspnet-mvc/razor/grid/hierarchyajax) Hi, I have a problem , can anybody explain what this code really mean... .ClientEvents(events => events.OnRowDataBound("orders_onRowDataBound")) .DetailView(ordersDetailView => ordersDetailView.ClientTemplate( Html.Telerik().Grid<OrderDetailsViewModel>() .Name("OrderDetails_<#= OrderID #>") .Columns(columns => { columns.Bound(od => od.ProductName).Width(233); columns.Bound(od => od.Quantity).Width(200); columns.Bound(od => od.UnitPrice).Width(200); columns.Bound(od => od.Discount); }) .DataBinding(dataBinding => dataBinding.Ajax() .Select("_OrderDetailsForOrderHierarchyAjax", "Grid", new { orderID …

Web Development asp.net
Member Avatar for LastMitch
0
112
Member Avatar for Xufyan

Hello, I am having trouble fetching content from a web-page, actually i wanted to fetch all the inner text from div name 'displaybody' but my code doesn't seems working, it is fetching all the content of the page and after 4 page successfully fetched i get an error, [CODE][B]Fatal error: …

Web Development php regex
Member Avatar for LastMitch
0
188
Member Avatar for sathishbabu.boopathy

In my app, im using a small form created dynamically by a jquery to upload files to server. This is working perfectly in FF and chrome. the issue is that im getting $_FILES as empty to my upload php. The file im trying to upload is a Zip file which …

Web Development file-system html-css php
Member Avatar for LastMitch
0
352
Member Avatar for OsaMasw

Hello guys today when i checked my script I noticed my sessions are not protected, when user log in his **username** stored in session variable lets call it $_SESSION['user'], and I use this session variable in many function ex. when uploading a file the name of user taken from session …

Web Development php session
Member Avatar for LastMitch
0
207
Member Avatar for nacedo

I have this chunk of jQuery that is doing strange behavior. When I load the page, my list is slided Up (completely folded) wich make sense. But I have to double click each parent to slide them down, which is not the normal behavior. I think this line is the …

Web Development javascript javascript-jquery
Member Avatar for nacedo
0
1K
Member Avatar for davy_yg

image_gallery <?php $i=0; while ($data = mysql_fetch_array($result)){ $result2=($i%2)?'#DFA09D':'white'; echo "<tr bgcolor='$result2'>"; echo '<td>'.$data['image'].'</td>'; echo '<td>'.$data['path'].'</td>'; echo '<td>'.<img src="photos/image".$i>.'</td>'; echo '<td><a href="admin.php?mode=delete&id='.$data['id'].'">Hapus</a> |<a href="input_image.php?id='.$data['id'].'">Edit</a></td>'; echo '</tr>'; $i++; } ?> What is this: Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\Bread\administrator\image_gallery.php on line 153 line: 153 echo '<td>'.<img src="photos/image".$i>.'</td>';

Web Development image php
Member Avatar for Squidge
0
104
Member Avatar for leandros.ioannou

Hi i have an issue using top to bottom plugin, while it works, the problem is that the image is visible only on top and while i scroll down the image stays top. Below is the code: <html> <head> <style> #main { float:left; width:500px; background:#c9c; } #sidebar { position: fixed; …

Web Development javascript javascript-jquery
Member Avatar for leandros.ioannou
0
340
Member Avatar for gurkirts

echo enter the any no. read n fact=1 for(i=1;i<=b;i ) do fact=fact*i done echo factorial is fact

Web Development audio file-system
Member Avatar for <M/>
0
278
Member Avatar for Angle90

Hello Again, Can you please tell how to create a serverside self extracting zip file. I really need this for my project. Thank you in advance and I am really grateful for all your helps.

Web Development php
Member Avatar for TonyG_cyprus
0
289

The End.