52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Tiago_1

Hello, I have a simple HTML table generated using Mysql and PHP: type region platform price $/h m3.xlarge ap-northeast-1 windows 0.980 hs1.8xlarge ap-northeast-1 rhel 5.810 hi1.4xlarge ap-northeast-1 rhel 3.960 m1.medium ap-northeast-1 windows 0.230 cg1.4xlarge ap-northeast-1 rhel 4.450 cc2.8xlarge ap-northeast-1 rhel 3.100 c1.xlarge ap-northeast-1 rhel 0.855 c1.medium ap-northeast-1 rhel 0.254 m2.4xlarge …

Web Development first-post php
Member Avatar for Alibi Ghazi
0
259
Member Avatar for chrisschristou

hello dears daniweb friend i'm trying to get total price in php with the below code but i get only the shipping price when i request echo total what is wrong in my code ??? <form name="valide" method="POST" action="<?php echo $editFormAction; ?>"> <label for="Sub total"></label> <label for="shipping">Sub total</label><input name="subtotal2" type="text" …

Web Development php
Member Avatar for chrisschristou
0
253
Member Avatar for levesque123456

I am trying to make a calculator to calculate your age in dog years, the following is the code I have so far, minus the html portion of it <?php if (!isset($_POST['your_age']) ) { header("Location: dog_form.html"); exit; } if ($_POST['your_age'] == "your_age") { $result = ($_POST['your_age'] *7; if ($_POST['your_age'] >= …

Web Development php
Member Avatar for diafol
0
368
Member Avatar for phaneendrahari

I am trying to create a form like the one we ask questions in, but with image & video Upload facility. I am making Admin Support pages for a CMS. When the admin uploads an image, the name of the uploaded file can be seen in the textarea and the …

Web Development cms
Member Avatar for phaneendrahari
0
190
Member Avatar for geoamins2

Dear friends i have developed a report using php/html/css. i have included @media print css style using div tag for page break because i want to print on different pages. each and everyting is working fine but only problem is delaying during printing..the printer print one page and sleep for …

Web Development html-css php printer
Member Avatar for diafol
0
481
Member Avatar for rhodoscoder

<?php // post_add.php if( isset ($_POST['title']) && ($_POST['body']) && !empty($_POST) ){ require 'connection.php'; $stmt = $conn->prepare('INSERT INTO posts (title,body) VALUES (:title, :body)'); $stmt->bindValue(':title', $_POST['title']); $stmt->bindValue(':body', $_POST['body']); $stmt->execute(); echo 'Entry posted. <a href="post_view.php?id='.$conn->lastInsertId().'">View</a>'; }else if(empty($_POST['title']) || empty($_POST['body']) ){ echo "no values entered"; } ?> As my code is , empty fields …

Web Development php
Member Avatar for Eagle.Avik
0
179
Member Avatar for lillorme

<?php require_once('connections/careergroup.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . …

Web Development php
Member Avatar for phaneendrahari
0
280
Member Avatar for HunainHafeez

Like i heard that string is immutable mean cannot be changed once created so i tried: String name = "Hunain"; Console.Write("String_replaced="+ name.Replace('i', 'y') + "\n"); according to someone, string.Replace('','') throws a new object and doesn't modify existing string but it did like in above example, neither i stored it in …

Web Development asp.net
Member Avatar for Nguyễn Đình Đại
0
210
Member Avatar for MasterHacker110

I am trying to let my website create a cookie on the user's system so that it will know if the user is logged in or out. But it doesnt seem to work. Here is my javascript cookie code: function createCookies() { // Creates a cookie on the user's computer …

Web Development html-css javascript
Member Avatar for MasterHacker110
0
266
Member Avatar for tqmd1

Dear Sir, Please help me to locate errors in following coedes <html> <head> <title>PHP</title> </head> <body> <?php echo "Your name is:"." $_GET['text1'] </br>; echo "Your city is:"." $_GET['text2'];</br> echo Your mobile is:"." $_GET['text3']; ?> </body> </html>

Web Development
Member Avatar for tqmd1
0
64
Member Avatar for Asif Naveed

hi i am new in the development field i want a little guide line about the WYSIWYG editor i have website and i want to integrate a wix html 5 type http://www.wix.com/ editor in it i try to edit the tinymce editor but i does not found it flexible as …

Web Development html-css php
Member Avatar for diafol
0
414
Member Avatar for 9tontruck

/php/FrontController.php namespace FrontController; class FrontController { public static function add($a, $b) { return $a+$b; } } /project/index.php use FrontController; echo FrontController::add(4,5); error message: Warning: The use statement with non-compound name 'FrontController' has no effect in C:\wamp\www\project\index.php Fatal error: Class 'FrontController' not found in C:\wamp\www\project\index.php I want to use namesapces instead …

Web Development php
Member Avatar for 9tontruck
0
146
Member Avatar for kcrazy

Ive been coding in PHP for over a year now. I was thinking to learn a PHP Framework. After googling around, i found few top frameworks such as Zend, CakePHP, CodeIgniter and Symfony. Still, im not able to choose between these. Can anyone please suggest me the best one ? …

Web Development php php-codeigniter
Member Avatar for jkon
0
443
Member Avatar for Shari_1

Hello. I'm trying to print out some information using JSon. However, I'm not getting the numbers I expect. Can anyone see what I'm doing wrong? Let me tell you about my code. Price is supposed to hold the price for a product. Variable out is my output. The function getBill …

Web Development javascript json
Member Avatar for Shari_1
0
218
Member Avatar for jonsan32

I'm trying to get this script to work. I want an image displayed based on the current holidays throughout the year. Any help would be great. Thanks a ton! <script type="text/javascript"> function H(){ var s=new Date(); var isHalloween= (s.getMonth()==9 && s.getDate()>26) || (s.getMonth()==10 && s.getDate()<3); var isXmas= (s.getMonth()==9 && s.getDate()>26) …

Web Development display image javascript
Member Avatar for jonsan32
0
285
Member Avatar for HunainHafeez

connection pooling in asp.net 8 minutes ago|LINK i searched and read many posts on google about CONNECTION POOLING, it says that it's an temporary memory to keep all then database connections and are used when requests are made to use it but i couldn't figure out its exact meaning like …

Web Development asp asp.net c#
Member Avatar for HunainHafeez
0
376
Member Avatar for gahhon

<system.web> <customErrors mode="On" defaultRedirect="/ErrorPages/404.aspx" redirectMode="ResponseRedirect"> <error statusCode="404" redirect="/ErrorPages/404.aspx"/> <error statusCode="401" redirect="/ErrorPages/401.aspx"/> </customErrors> </system.web> Inside my web.config i have thise configuration, but will them redirect to specifiy statusCode rather than doing in code behind. Let's said the user is not allowed to go into the Manager side, will this automatically redirect …

Web Development asp.net
Member Avatar for JorgeM
0
154
Member Avatar for castajiz_2

Hi guys. for several weeks i can t make my mind whether to go and learn php or should i stick with my C# knowledge and learn ASP.net. I ve started to programming in C# 2 years ago, learned sql and databases and learned html css when i was still …

Member Avatar for JorgeM
0
136
Member Avatar for mherz

Hi! I need some help on this. I have the checkbox name chkitems: here's the data: <asp:CheckBoxList runat="server" ID="chkitems" Font-Names="Tahoma" Font-Size="Smaller" RepeatColumns="3" RepeatDirection="Horizontal"> <asp:ListItem Value="1">Item 1</asp:ListItem> <asp:ListItem Value="2">Item 2</asp:ListItem> <asp:ListItem Value="3">Item 3</asp:ListItem> <asp:ListItem Value="4">Item 4</asp:ListItem> <asp:ListItem Value="5">Item 5</asp:ListItem> </asp:CheckBoxList> Below on this script is the button name "cmdSelectedItems". What I …

Web Development asp asp.net
Member Avatar for gahhon
0
211
Member Avatar for MasterHacker110

I am making a website that will keep online records of the users gaming data. But my problem comes in here: The user can create an account, if they dont have one, or login to an existing one. <a href="login.aspx">Login</a>&nbsp;&nbsp;&nbsp;<a href="" id="loginstate"></a> Now my link tag with the id "loginstate" …

Web Development gaming javascript
Member Avatar for JorgeM
0
253
Member Avatar for bobgodwin

I've been looking for the answer to this problem for a while. I'm using nyroModal in gallery to show php pages. but the popup doesn't resize the first time it loads. I use this link: <a href="galtest.php" class="nyroModal cursor" rel="gal"><img src="img/gallery/thumbs/OldMiami.jpg" class="Tips1" title="In the Backyard Of The Old Miami (Detroit, …

Web Development javascript
Member Avatar for JavaScprit
0
548
Member Avatar for profmuluka

1. A List Apart 2. Smashing Magazine 3. 456 Berea Street 4. Meyer Web 5. Simple Bits 6. Pearsonified 7. Tutorial Blog 8. CSS Beauty 9. Snook.ca 10. Bartelme Design 11. The Man in Blue 12. Andy Budd 13. Particle Tree 14. Warpspire 15. Brian Gardner 16. Sitepoint Design Blog …

Web Development web-design
Member Avatar for JamesCraft
0
231
Member Avatar for jelly46

Hello I have got a small piece of code from thefacebook developers page. It does not work inIE, it sends back an error, I have cleared the caching and loggin into facebook and nothing. Here is the code: <a href="#" id="fb-btn-2013" onclick=" window.open( 'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href), 'facebook-share-dialog', 'width=1028,height=768'); return false;"><img src="../../Content/Images/facebook-button.png" alt="Share …

Web Development caching javascript
Member Avatar for jelly46
0
324
Member Avatar for HunainHafeez

i developed a website in php i did it 90% but the problem is that if i have 4 PDF files in website and via search box i enter a text and then it finds that text for me in all 4 odf files or display a message that "No …

Web Development pdf php
Member Avatar for Julsy
0
171
Member Avatar for fheppell

I'm looking for a way to ensure that zero cookies are created by session, is there any way to do so? The session does not need to be overly secure, it is mainly being used to transfer basic and non-sensetive data inbetween pages. This is on a dedicated ubuntu box …

Web Development php session ubuntu
Member Avatar for fheppell
0
177
Member Avatar for rrocket

I have been trying to use [code=javascript]<script language="javascript" type="text/javascript"> function check_length() { var x = document.getElementById("tbDescription").value; alert(x); } </script>[/code] to get the value of this text box [code=asp]<asp:TextBox ID="tbDescription" runat="server" Height="78px" TextMode="MultiLine" MaxLength="10" Width="363px" ValidationGroup="quickQuote" onkeypress="check_length()" CausesValidation="true"></asp:TextBox> <asp:RequiredFieldValidator ID="rfvDescription" runat="server" ControlToValidate="tbDescription" Display="none" ErrorMessage="You must give a description of your shipment." …

Web Development asp javascript
Member Avatar for ranadheer_1
0
2K
Member Avatar for Burhan_1

0 down vote favorite In new google map there are several travel mode like driving, bicycling, walking and transit but they also added fly mode also. I can choose fly mode in new google map but i cant get fly travel mode in google maps v3 api. I want to …

Member Avatar for Burhan_1
0
952
Member Avatar for rhodoscoder

I found this code online and i want to understand it, i have read the php documentation but i have found out that the php programming community offers better explanations PHP Code: function mysql_safe_query($query) { $args = array_slice(func_get_args(),1); $args = array_map('mysql_safe_string',$args); return mysql_query(vsprintf($query,$args)); } I figure the function isn't a …

Web Development php
Member Avatar for rhodoscoder
0
212
Member Avatar for TIM_M_91

Ok so for my register.php page I want to use https however the code that I am using makes my whole site use https how do I make it so only my register page uses https? Code I'm using: if(!isset($_SERVER['HTTPS'])) { header("location: https://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);

Web Development php
Member Avatar for LastMitch
0
145
Member Avatar for gabby.hunter.50

I am completely new to JavaScript. I do not understand it, even after reading numerous sources of information about it. I am stumpt on a question and really need help. Everything JavaScript is so unfamiliar. Here is what I need: Write a custom error handling JavaScript™ function called processErrors that …

Web Development javascript
Member Avatar for LastMitch
0
266
Member Avatar for JeanPhilippe

Hi, I built a new wordpress website for one of my client but some old URL are still showing in google. Those URL doesn't return a 404, they actually redirect to the good pages. I explain : The website is www.vetreseau.com. One of the page is www.vetreseau.com/veterinaire/. The old website …

Web Development google wordpress xml
Member Avatar for LastMitch
0
184
Member Avatar for brianjoe

Hi all Im having a struggle here. I know very basic Jquery, and are reading up on on the YouTube API, but I cant seem to find how to do this. I downloaded a script for a custom YouTube player, and everything is good. I modified it to my needs. …

Web Development api javascript streaming-service
Member Avatar for LastMitch
0
403
Member Avatar for Kleon

Hi guys, i need help with modal popup, i have already create modal pop up, but what i want is that tha modal page to show up just for 5 seconds than automatically to be removed. Heres My code... <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for Kleon
0
487
Member Avatar for brandon66

I have an array like so: $array = array(value1,value2,value3,value4,value5,value6,value7,value8,value9,value10,value11,value12); What i need to do is insert the array value into a database row one would have value1,value2,value3,value4 row two would have value5,value6,value7,value8 row three would have value9,value10,value11,value12 I was thinking i would need a for loop. Can anyone help on …

Web Development php
Member Avatar for broj1
0
162
Member Avatar for everton.retweets

This is driving me nuts... I am new to wordpress plugin development... I have got the basic plugin developed. Added my admin menus... What I am trying to do is add a banner image to each options page inside the plugin dashbaord. i'v tried the usual ../images/imagename.png and ./imagename.png but …

Web Development image php wordpress
Member Avatar for everton.retweets
0
178
Member Avatar for lillorme

<?php require_once('connections/careergroup.php'); ?> <html> <head> <title> <?php echo $first_name; ?> <?php echo $lastname; ?>s Profile</title> </head> <body> <?php // Check for a form submission if (isset($_GET["username"])){ $email = $_GET['username']; mysql_connect ("$hostname_careergroup", "$username_careergroup", "$password_careergroup") or die ("Could not connect to the server"); mysql_select_db("careergroup") or die ("That database could not be found"); …

Web Development php
Member Avatar for lillorme
0
453
Member Avatar for allifields

Hi, so I have my own website and run cyberduck as my ftp for uploading files. Now, in one of my classes we have to create another website with mySQL as the database and my group wants to use my server for creating the website. I'm not really sure how …

Web Development client-server
Member Avatar for JorgeM
0
219
Member Avatar for cussel

hi all, i'm difficult to get values array condition: 1. if value only one get values 2. if value same then get value with index or key most high 3. if value same and key most high get all example: $data = Array(Array ("1" => "12306") , Array ("0" => …

Web Development php
Member Avatar for cmps
0
359
Member Avatar for gahhon

public static void Confirmation(string message) { // Cleans the message to allow single quotation marks string cleanMessage = message.Replace("'", "\'"); string script = "<script type=\"text/javascript\">var confirmation=this.document.getElementById('hfConfirmation'); if(confirm('" + cleanMessage + "'))confirmation.value='Yes' else return confirmation.value='No';</script>"; // Gets the executing web page Page page = HttpContext.Current.CurrentHandler as Page; // Checks if the …

Web Development asp asp.net javascript
Member Avatar for gahhon
0
326
Member Avatar for profmuluka

1. You need a text editor i suggest notepad++ ( http://notepad-plus-plus.org/ ) 2. You need a color picker i sugest pixie by Nattyware ( http://www.nattyware.com/pixie.php ) 3. Learn how to code at w3chools.com i suggest you start with the html tutorial (http://www.w3schools.com/html/ ) and the css tutorial at ( http://www.w3schools.com/css/ …

Web Development html-css web-design
Member Avatar for minitauros
0
196
Member Avatar for kyle937

does anyone know how to make a website that has a background that changes every time you go to the home page just like the tumblr home page.

Web Development html-css
Member Avatar for profmuluka
0
570
Member Avatar for NextCom

I'm using jQuery contains to show records in a page that contains information that matches a search field. This functions works very well, a bit too good actually... The challenge is that it also searches for matching words in SELECT elements that is inside the table column. $(this).find('td:nth-child(2)').each(function () { …

Web Development javascript javascript-jquery
Member Avatar for paulkd
0
460
Member Avatar for azapovjednik

hello all I am a beginner... I want to move a wordpress site from a local computer to live server... live server: plesk parallels I followed some tutorials and it says: you must create a new mySql database on server... ok I went to parallels plesk panel and I created …

Web Development mysql php wordpress
Member Avatar for azapovjednik
0
1K
Member Avatar for trishfernan

Hi, I am delevloping an ebay website. I need to develop the following as explained in the attachment. Just need some tutorial to learn and start developing the system. Please see link [Click Here](http://i1190.photobucket.com/albums/z452/trishfernan/Explanation-iconchange_zps5f958690.png)

Web Development javascript javascript-jquery
Member Avatar for minitauros
0
138
Member Avatar for el macho

hi guys, i try write this java code in php using php java bridge: http://www.lucenetutorial.com/lucene-in-5-minutes.html when i found this line: IndexReader reader = DirectoryReader.open(index); i dont get it how to write it in php. i've tried but error result. when it be like this: Query q = new QueryParser(Version.LUCENE_40, "content", …

Web Development java php
Member Avatar for LastMitch
0
2K
Member Avatar for abhi10kumar

I am using marquee.js for moving images; Its working fine on local server and on static page. But when I include into my .php page (using loop) it is hanging and giving below error **A script on this page may be busy, or it may have stopped responding. You can …

Web Development javascript
Member Avatar for LastMitch
0
184
Member Avatar for Moderns

Hello, I have a project hosted on a live server has a domain like: www.abc.com On live domain: I am unable to set cookies in IE (7, 8, 9, 10) - as it is explained in the code below - (cookies are enabled on the IE browser), but able to …

Web Development api php
Member Avatar for LastMitch
0
211
Member Avatar for davy_yg

Hello, I have tried to create login page with CI. This is the codes that I have: views/login.php <html> <link href="<?php echo $logincss; ?>" rel="stylesheet" type="text/css" media="screen"> <div id="logoadmin"></div> <div id="loginbox"> <img src="<?php echo $logo2; ?>" width="150"> <br><br> <div id="username"> <br><br> <div id="position"> <?php echo form_open('clogin/process'); echo form_label('Username:&nbsp&nbsp', 'username'); $dataUsername …

Web Development html-css php session
Member Avatar for davy_yg
0
228
Member Avatar for HunainHafeez

difference between try...catch and try....finally ? in asp.net(C#) like when i want to catch error like 1/0 then i put code in try block and put exception object in catch block like respone.write("ERROR:"+ ex.Message) but advisors told me that it isn't a good practice to put catch always, it absorbs …

Web Development asp.net
Member Avatar for JorgeM
0
173
Member Avatar for pwolf

I am working towards the goal of a social site, however, being a beginner, I have many questions I need to answer before getting anywhere! One of these is in regards to embedable scripts/ web apps/ widgets. I would like to allow the users of the site to upload web …

Member Avatar for pwolf
0
537

The End.