52,566 Archived Topics
Remove Filter ![]() | |
I have a problem - I need some help. I am having trouble with some coding. I have created a drop down list with the months of the year. Next to this I have created a button. What I want to do is when the user selects a month from … Web Development javascript | |
Hello Daniweb posters. I have a code that is supposed to make a sign up sheet for a web page. Problem is, the code does not work. When I run the code it gives me: syntax error, unexpected T_PRINT in line 15. I know there is something wrong with the … Web Development php | |
I have the following html file [CODE]<!DOCTYPE hmtl> <html> <head> <title> Minimum Spec Test </title> <script src="Compatability.js"></script> <script type="text/javascript"> var can, ctx; var img = new Image(); function Init() { can = document.getElementById('canvas'); can.width = 100; can.height = 400; ctx = can.getContext('2d'); img.src = 'Images/_test.bmp'; ctx.drawImage(img, 0, 0); } </script> … Web Development html-css ios javascript | |
I have a page with a slideshow which doesn't look too great in IE8 or lower. Is there a way to display different content for these browsers? Web Development javascript | |
DW has written some js code for me and it works just like I want it to in FF but IE .... not so much. [CODE]<div id="menu"><p onclick="MM_openBrWindow('sitemap.php','SiteMap','width=640,height=480');return document.MM_return false"><a href="sitemap.php">Site Map</a></p> <p onclick="MM_openBrWindow('policy.php','Policy','width=640,height=480');return document.MM_returnValue"><a href="policy.php">Policy</a></p> <p onclick="MM_openBrWindow('send_mail03.cfm','EmalMe','width=300,height=370');return document.MM_returnValue"><a href="send_mail03.cfm">E-Mail Us</a></p></div> </div>[/CODE] The questions of course: Why not? and "What … Web Development javascript | |
I'm modifying a page that handles content addition. I've been tasked with allowing simple PDF file uploads, but can't figure it out. The PDF is to be posted, then uploaded and the title saved into a database field. All this functionality is to be contained within the one content addition … Web Development file-system pdf php | |
hi there! i would like to ask if what am i going to do to save in having multitasking function . here's my code below: can u suggest what to do wih this thing ? thanks <?php $server = 'localhost'; $user = 'root'; $password = ''; $database = 'access'; $con … Web Development php | |
(If you are familiar with Memcached, better) can take a look at the img. on the third column (named 'Value'), I need to put a 'button/link' that when clicked it will display/hide the content of the cell. In a sort of javascript 'toggle' function. (i'm not sure which to use: … Web Development caching-memcached javascript php | |
Hello, [[All sample links may not work after the thread is solved, I will keep them up as long as I can though]] I'm trying to make a graph work, which it does, not when CSS is present on a page though... In my setup I use graph.php to create … | |
I'm making a little script using jQuery to send a sentence to a textarea by clicking on the text. It does this fine however, if I edit the textarea to remove a sentence manually, I can no longer click on the sentences to send them to the textarea. Don't know … Web Development html-css javascript javascript-jquery | |
Hi. I am making a membership application in which users will need to login and then can make a reservation, edit their previous reservation, cancel etc, and in which admin will be able to add new users, edit all reservation etc. So I would like to ask you is php … Web Development php | |
This is my first time really dealing with C# i did this in VB with ASP but never with C#. What i need to do is take data that I enter into a textbox and save it to my SQL server and there is also a Image that needs to … | |
I'm having trouble sorting my column tables. When a title of a column is clicked, it is sorted alphabetically or by number smallest to biggest. I'm also having trouble formatting the date (Born and Died dates). Currently it looks like this YYYY-MM-DD. I need it to look like this MM-DD-YYYY. … Web Development php | |
Ok i am trying to create a simple program that will allow me to use an array with 8 numbers, the output form should show the numbers in their original order that the user inputs them, in numerical order, Highest number, lowest number and then the average number. If anyone … Web Development php | |
Hi All, I am trying to create a form using sessions so that the submit button is only submitted once in a two minute duration. I need the form to still complete the onclick action so that a calculation happens, but I only want the mail() function to send an … | |
[CODE]<?php $con = mysql_connect("bangla123.db.8390659.hostedresource.com","bangla123","Algnab123%"); if (!$con) { die('Could not connect: ' . mysql_error()); } if (mysql_query("CREATE DATABASE tryDB",$con)) { echo "Database created"; } else { echo "Error creating database: " . mysql_error(); } mysql_close($con); ?> [/CODE] ------------ When I run the code, i get error -"Error creating database:.... Pls advise. … | |
Hey everyone, I am fairly new to the programming world, but I am a quick learner. I am trying to make my "membership area" register.php work properly, but there seems to be a parsing error as follows here: "[B]Parse error: syntax error, unexpected T_VARIABLE in C:\Program Files (x86)\EasyPHP-5.3.8.1\www\register.php on line … Web Development php | |
Below is how the database is searched. [CODE] $query = "SELECT * FROM $tbl WHERE content LIKE \"%$var%\""; [/CODE] $var includes the term or phrase searched for. But using the "LIKE" in the query doesn't seem to ignore whitespace or hyphens or commas (like i want it to) E.g. if … Web Development php | |
Hi guys I tried to Google this but unfortunately I couldn't find any thing, Can you please let me know how I can populate a drop-down list from a csv file using php? For example let say I have a csv file(league.csv) like this: Man City,9,25 Man Utd,9,20 Chelsea,9,19 Newcastle,9,19 … Web Development php | |
At work, I was given a file with which to connect to the proxy which I can do from there but I have no idea how to do it from home. I tried going "under the hood" and setting up a proxy with a random www address but that didn't … Web Development php | |
I'm designing and implementing a PHP web application as part of final year university project and i was wondering if any of you could suggest any development methodologies that i could follow and your reasons for them, as i haven't ever created a full web application. I also need to … Web Development php | |
I get the following Error from the code below: Warning: require_once(JS/Extractor.php) [function.require-once]: failed to open stream: No such file or directory in C:\Users\gross.t\Desktop\choicegrid\jsextractor.php on line 12 Fatal error: require_once() [function.require]: Failed opening required 'JS/Extractor.php' (include_path='.;C:\Users\gross.t\Downloads\pear\;/library/') in C:\Users\gross.t\Desktop\choicegrid\jsextractor.php on line 12 [code]<?php $path = '/library/'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once … Web Development file-stream php | |
I am looking for a good tutorial on how to do a simple photo gallery. I want to photo gallery to transition by using arrows to go back and forth. I found a few tutorials but none that explain it in detail. I am familiar with jquery but not too … Web Development image javascript javascript-jquery | |
This code seems to work on a simpler level but not on the one I'm trying to use. It's for a website's search engine. First the result is gotten from the database like so: [CODE] $query = "select * from $tbl_name where name like \"%$var%\" OR text like \"%$var%\""; $numresults=mysql_query($query); … Web Development php | |
![]() | I have 3 tables. [CODE]product ----------------------------------------------- product_code | product_header ----------------------------------------------- 12345 | Wilson Pro-staff Grip plus Glove product_attribute --------------------------- product_code | attribute_id --------------------------- 12345 | 1 12345 | 2 product_attribute_types ----------------------------- attribute_id | attribute_name ----------------------------- 1 | Size 2 | Colour[/CODE] This is the output that I would like to … Web Development php postgresql |
So I have Microsoft SQL Server 2008 R2 installed and an instance set up with a database an user setup on that database with a password. I have installed PHP, and IIS and got PH working from the WWWROOT folder, but when tryng to connect to my database it is … Web Development coldfusion mysql php web-server | |
hi , I m newbee to dreamviewer CS4 and php.i have installed xampp and php my sql works fine. Now when i select a new PHP layout and insert<p>The time is now <?php echo date('H:i:s'); ?>.</p> in body section i don't get to see any date in live view.I have … Web Development php | |
I have attached an image to the post.I want my site to come up in the search results as such ...please advise me what i should do ? | |
how do i get total values in a row by grouping into diffrent categories. here is my code bt its getting oll totals in a row for now.. [CODE]<?php require_once('connect.php'); ?> <?php $query="Select Amountspent from Moneyout"; $result=mysql_query($query); $total=0; while($row=mysql_fetch_array($result)) { $total=$total + $row['Amountspent']; } echo "Total is:" . $total; ?>[/CODE] … Web Development php | |
I have two array. How to check different and correct the order in a new array? EG. Array_a 0 => 1 1 => 2 2 => 3 3 => 4 4 => 5 Array_b 0 => 1 1 => 2 2 => 3 3 => 3 4 => 5 You … Web Development php | |
I can add an existing item to the solution explorer manually. But is there a way to do this programmatically (i.e., at run time)? Web Development asp.net | |
I heard the best method to share session across multiple domains on same server is to use custom php session handler. (ie, domain name different like abc.com, xyz.com but single application.) But after i tried it, even custom php session handler that using SAME DATABASE ON 1 SERVER can't share … | |
![]() | Hello all community again ! I only want to know what is faster and better (logical, not writing or tabbing) between: IF...ELSE...IF...ELSE... IF...ELSEIF...ELSEIF...ELSE... For example: [CODE=PHP] $i=0; if($i>5){ echo '$i is greater than 5.'; }else{ if($i>0){ echo '$i is greater than 0 but less than 6.'; }else{ echo '$i is … Web Development php |
Hello Everyone, I`m a PHP developer, These days I`m thinking seriously about learning ruby , but I`m not sure if it gonna add to my knowledge , so i have few questions about it and hope that a ruby specialist will answer me 1- Do I need to learn ruby … | |
HAVE CLIENT-SIDE FORM COOKIE GET AND SET FUNCTIONS IN THE SECOND WINDOW DOCUMENT EXTERNAL JS.FILE OF A DUMY TEST SITE FOLDER ON MYCOMPUTER. IE8 THROWS 'SYNTAX ERROR' ON THE 'WINDOW.LOAD=FUNCTION, FIRST COOKIE FUNCTION HIGHLIGHTED'. CAN I ACTUALLY TEST COOKIES ON A TEST SITE ON MY COMPUTER WITHOUT THE SERVER (MYCOMPUTER) … Web Development client-server javascript | |
Hi....Friend i have to make this task...... create a time clock that display on the status bar and keep on changing every after 1 second. Kindly keep the format as given in the picture. i have created code but i dont know how to put on status bar... my code … Web Development javascript | |
Hey guys, I'm hoping this isn't anything complicated. I don't know any javascript, but I think it can be done with it. Basically what I need is on select option to change the value of another selection option. More specifically: when a user selects a time from the first option, … Web Development javascript | |
I searched daniweb, google, etc. All had multible code snippets but I couldnt get any to work.. Well my database is "wallet" and in the row is "id" and "amount" So I tried like [CODE]$result = mysql_query("SELECT amount FROM wallet WHERE id LIKE '%$id%'"); while ($row = mysql_fetch_assoc($result)) { $money … | |
Hello. I don't know if this is the right forum for this. I have resently downloaded a custom jQuery UI Pack, only using core and tab widget. On the examples in the index.html file, everything loads fine. Then I copy the files to my website directory, (all locally) and the … Web Development javascript javascript-jquery | |
![]() | Hello all Community ! My question is very simple: What is the difference between [ICODE]$_SESSION['id'][/ICODE] and [ICODE]$_SESSION[id][/ICODE] ? Both works the same ! What is better ? Does anyone know which is faster ? Thanks all ;) ! Web Development php ![]() |
this is my code and below are the notices that r shown in browser ..what can i do?? [CODE] FILE 1: new_user.php <?php require('header.php'); ?> <body> <?php require('sql_connect.php'); ?> <?php require('functions.php'); ?> <form method="POST" action="add_new_user.php"> Username: <input type="text" name="user_name" /></br> firstname: <input type="text" name="first_name" /></br> lastname: <input type="text" name="last_name" /></br> … Web Development php | |
Hi, i created a page with some radio buttons that each of them contains a certain number which i send them to action page for searching among the numbers that i inserted inside my table in data base. but the question is here that i wanna select with some different … Web Development php | |
I’m trying to create Web Application using ASP.Net via Visual Studio 2010. The Database that I use is Access, with connection Method OleDb When using the query “Update” or “Delete”, the programs shows no errors, but the data in Access does not change. While for query “Select” and “Insert”, the … Web Development asp.net microsoft-access open-source visual-studio | |
Hi, A little stuck here - i have a file containing info like this: Name: Some Name Email: [email]some@email.com[/email] I'm using file_get_contents to read the file and then i want to get the name. I have it like [CODE]preg_match('/Name:(.*?) Email:/',$filecont,$name);[/CODE] however it returns nothing. Maybe anyone has an idea how … Web Development php | |
Hi all, I'm decoding a JSON object into an array and then inserting it into a database, which informs markers on a google map. That step is working fine, but I'm now trying to insert code to (a) read whether the latitude value in the array is null, (b) send … Web Development google-api mysql php | |
What's the best place to use for a secure Payment System on my site? Like a very secure system besides Paypal. Because I tried Paypal and I don't want to pay through paypal. But rather pay through my own site. The payment is for my own ad system I am … Web Development php | |
i am new to php. i want to know how to logout a user when he/she is idle for sometime. Thanks in advance Web Development php | |
i have a problem deleting a data using checkbox please help me here's my code admin.php [CODE]<form id="form1" name="form1" method="post" action="deleteApplication.php"><table border='1' cellspacing='0' width='612'> <tr> <th bgcolor='green'><font color='white'>#</font></th> <th bgcolor='green'><font color='white'>Room No.</font></th> <th bgcolor='green'><font color='white'>Cust. Code</font></th> <th bgcolor='green'><font color='white'>Check In</font></th> <th bgcolor='green'><font color='white'>Check Out</font></th> <th bgcolor='green'><font color='white'>No of Rooms</font></th> <th … Web Development php | |
this is my first code in php. i am trying this off a tutorial i saw-- i am getting error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LEFT JOIN products.products_id=products_description.products_id' at line … Web Development php |
The End.