52,566 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
![]() | 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 ![]() |
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 | |
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 … ![]() | |
<?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 | |
<?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 | |
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 | |
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 | |
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 | |
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 … ![]() | |
/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 | |
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 | |
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 | |
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 | |
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 … | |
<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 | |
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 … Web Development asp asp.net html-css open-source php visual-basic | |
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 … | |
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> <a href="" id="loginstate"></a> Now my link tag with the id "loginstate" … Web Development gaming javascript | |
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 | |
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 | |
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 | |
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 … | |
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 … | |
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 | |
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 … Web Development google-api javascript javascript-jquery seo | |
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 | |
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 ![]() | |
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 ![]() | |
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 … ![]() | |
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 ![]() | |
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 … Web Development asp asp.net html-css javascript-jquery | |
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 | |
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 … | |
<?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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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", … ![]() | |
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 ![]() | |
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 … ![]() | |
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:  ', 'username'); $dataUsername … | |
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 | |
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 … Web Development app-store cybersecurity javascript social-media |
The End.