52,566 Archived Topics
Remove Filter ![]() | |
hi all I have the code below, and I am getting this error: The image "http://127.0.0.1/newsite/thumbnailgenerator.php" cannot be displayed because it contains errors. think this should be correct, what could the problem be? please help if you can. thanks :) [CODE] <?php header('Content-type: image/jpg'); function create_thumb_nail($array_image) { if (isset($array_image['image'])){ $image … | |
![]() | Can someone please explain what the differences are between: Page_PreInit Page_PreLoad Page_PreRend Page_Init Page_Load And if some of these are not raised when doing a httpWebRequest as opposed to going to a web page on a browser. Many Thanks, Unhnd Web Development asp asp.net web-browser |
$result = mysql_query("SELECT * FROM rooms"); while($row = mysql_fetch_array($result)) { mysql_query("insert into chat (name,text,date,chat_id) values('$_SESSION[username]','$_POST[text]','$date','$row[id]')"); } can i do that without repeat the mysql_query code? Web Development php | |
Trying to use a <body id=""> tag to simulate a hover event on any given image of my navbar. Is it possible? Could a "swap image" script work? I'm willing to place the images in an "li,ul" list if need be. Any advice on this or any other aspect of … Web Development javascript | |
I posted this in PHP but I was wrong. Am new in web making sooooo. :D Here is the code: [code=php] <form name="form" id="form"> <div align="center"> <select name="jumpMenu" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)"> <option value="#" selected="selected">Episode List</option> <option value="episode001.php">Episode 01</option> <option value="episode002.php">Episode 02</option> <option value="episode003.php">Episode 03</option> <option value="episode004.php">Episode 04</option> <option value="episode005.php">Episode 05</option> <option … Web Development javascript | |
It outputs blank for some reason, here is my current code. [CODE]<table> <?php $puserid = $anothervalue; echo public_Images($puserid); ?> </table>[/CODE] [CODE]function public_Images($puserid){ $sql = "SELECT * FROM `ue-userfile` WHERE userid = '$puserid' AND albumname ='Public' ORDER BY date DESC"; $result = mysql_query($sql); $count = 0; while($row = mysql_fetch_array($result)){ if ($count … | |
I have a web page in which there is a textbox that asks my users to enter a start date. What I'm trying to do from there is that no matter what the end date is, my page will calculated that from the text box, store it as a variable … Web Development asp.net dataset open-source | |
Ok, I feel like I'm so close, but could use some help. I am trying to retrieve data from mySQL database via use of a form with checkboxes. This form is working somewhat except that it is only pulling one selection, not all that are selected. Can someone look at … ![]() | |
But the problem is: There a File names "includes" which includes the php files which have been included in some of the php files outside of it. But I want to lock/ make it inaccessible for users. Is it possible that the users can't access the folder/directory but the php … Web Development apache php web-server | |
Has anyone found a good way to create powerpoint files on the fly. I'd like to go straight from PHP but creating from an HTML or XML doc is fine too... Also I'm totally Linux so COM Objects on Windows is out... thanks for any help... | |
this code will delete all the files from a directory on the server. be careful when using this as it will delete everything in the directory so use it wisely or make sure you have backups if it is implemented on the wrong directory. it works by searching for all … Web Development php | |
Have a website that i am developing [url]http://www.wheels4rent.net[/url] and need help with PHP. when the dates etc and location is entered i have a deep link into another site and i have done this with PHP. This displays cars etc and prices. However i want to have a "book" button … Web Development php | |
Hello everybody, i need help from you guys.. I want to split text line into 2-3 lines and put it on image using GD. I know how to write text on image with GD, but i don't know how to split text to get the last line.. Here is what … | |
Hi There, I have 2 tables, one with dst codes and one with fees. I want to match the fees with the dst code. I've been trying a for loop but it's not working 100%. What is the best way of matching dst code with the corresponding fee? If TABLE … | |
I have a large text string which is queried from a database. It can be several thousand words long. As of right now, when the search is run, it pulls all of the text and then prints the first 150 characters: [code] echo '<span class="line3">'. strip_tags(truncateText($sermontext, 150)) .'</span>'; [/code] The … | |
It is possible send an email using Javascript.. If yes.. the how..? Web Development email javascript | |
i have table in the database for login system [CODE]CREATE TABLE users ( username varchar(30) primary key, password varchar(32), userid varchar(32), userlevel tinyint(1) unsigned not null, email varchar(50), timestamp int(11) unsigned not null ); [/CODE] already have cart for things that doesnt need shipping, but its with JavaScript, [url]http://lasthunter.freehostia.com/rated-online/conf_files/js/simpleCart.js[/url] but … | |
I have never worked with mysql. I need to design a few pages for a website that allows certain people to log into the page and be able to update or change the info manually without having to use any html editing software are any programs. How is this done? … | |
i have a date column where dates are saved in varchar format like this 17-03-2011 :: 11:19:48 i want to find last date through query.. please help thanks | |
i need simple shopping cart (without shipping fee and those things) but with/without cPanel and registration form with MySQL to save members data, any suggestions? :D | |
What I am upto: I am tryin' to develop a Blog CMS. There is a Database named blog in which there's a table named posts. The posts table has these fields: post_id, post_title, post_url, post_time, post_category, post_desc, post_username. Here, post_username is the username of the user who posted this post. … | |
I am analyzing a code and I receive the next error Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\wamp\www\AktiveKB\admin\includes\classes\class.auth.php on line 175 I am new in php and I don't know how to handle this error Web Development php | |
hi i want an idea/code that can call a controller method from a javascript function inside a view. am using codeIgniter 1.7.2. what i wanted to achieve is to load details of a client by entering his account number and press enter key to load the details. hope you will … Web Development javascript php php-codeigniter | |
Hello, I am making an online gallery for a friend and have this (partially listed) folder structure. root/index.php root/inc/gallery.inc.php root/inc/setup.inc.php root/inc/includes.inc.php Gallery.inc.php has various functions in it (Get image, album, etc), setup.inc.php has config variables (for my friend's ease of access, contains SQL stuff and date formats), here is what … Web Development php | |
Hi :) I have a page where users can enter youtube url's within bbtags such as: [Youtube ]youtube-url-here[ /youtube] However...I'm having some problems when the url contains the & sign..as this seems to cut off the string at this point. I've read somewhere that one have to use urlencode these … Web Development php | |
how can i appear confirm message box when row are delete (are you sure to delete this record) in php?? [CODE]echo '<td><a href="teachers_delete.php?Course_Id=' . $row['Course_Id'] .'" ><img src="images/delete.gif" /></a></td>';[/CODE] Web Development javascript php | |
Hi can you help me please,how to make a Message just like in this in the daniweb that have text formatting, attachment, wrap code tags...and etc...i have no idea on this.can you help me please. Web Development javascript | |
Hey, I am very new to php. I have a PHP script (modified from [url]http://woogley.net/misc/Highscore/)that[/url] I call from a my Java code to access a database in order to read/write records. The SELECT part of it was perfect. However, i can't write to the database when I try to UPDATE. … | |
Hello, I know this kind of questions sound silly most of the times, but still I need to ask it. I am planning to get a web application done, for my business usage; it should be able to handle a huge DB scenario ( think of retailers DB ), support … | |
I am working on a pagination.From the index page it goes with a variable .For an example: [CODE]viewproduct_by_category.php?categoryid=1[/CODE] the value 1 comes from database.So the error is ,first time the page shows up all the images that has the categoryid =1 but second time when ever I press next page … | |
How would I get started? This site is the perfect example: [url]http://applereviews.com/[/url] This site also has one: [url]http://energycell.co.uk/[/url] Could I just use their js and css and place it on my site? [CODE] <link rel="stylesheet" href="http://applereviews.com/wp-content/themes/apple-reviews/style.css" type="text/css" media="screen" /> <!-- jQuery --> <script type="text/javascript" src="http://applereviews.com/wp-content/themes/apple-reviews/js/jquery-1.3.2.min.js"></script> <!-- jQuery Functions --> <script … Web Development apple apple-hardware html-css iphone javascript javascript-jquery mac-hardware mac-software | |
![]() | How can I use a variable to create another variable so that the output is not the content of the new variable but the php code for the new variable? For example: If variable $a = "house" and the name of the final variable is $b, then how do I … Web Development php ![]() |
Hi, I am developing a small E-commerce site, but at one point i need your precious help. I want to print the order directly when the order will placed without clicking any print option. Any help will be appreciated. Thanks in advance. Regards, Arun Web Development coldfusion | |
I am trying to deploy a simple struts application using jsp and am getting the following error when i try to deploy [ICODE] HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Exception in … | |
I have created a python script that gets and returns the size of files with given start&end date params. I have written function for a check box that when clicked it displays a hidden field. In this hidden field I would like the size of the files to be displayed. … Web Development javascript javascript-jquery | |
hi, i have one chat project. i m totally noob in that. in that server and client scripts... how can i test or run in my browser. i use vs2010 and mssql 2008. please help me.. thanks in advance jack Web Development asp asp.net client-server mssql | |
Dear Friends! i send image using email function and it cant show on the receiver side?? i used html script inside the massage body to send images. whats the solution? | |
Hi, I have positioned my images in PHP. Now what I am looking to do is add some animations: 1. try to drag a image from the mouse on the page 2. make the image dissapear and a new image in the same location after say 15sec 3. give the … Web Development php | |
[B]Good Morning, I have a CSV file with thousands of rows of data, and I want to have this data uploaded into a table in a MySQL database. I also want an area where the file could be selected from the computer for the data to be uploaded. Could this … | |
I am sending mail after a user enter his/her email. In email message there is link which will be opened by user. The anchor tag is working fine in Gmail but not in Yahoo Mail/Indiatimes Mail. Here is the code block: [CODE] { $emailurl="3gmobile.co.in/phone_details.php?id=".$_REQUEST['id']."&model=".$_REQUEST['model']."&redirect=1"; $headers = "From: Donotreply@domain.co.in\r\n"; $headers .= … | |
Hey everyone, I looked around if anyone has the same error. there are people who have had this error, but I couldn't really get to the point that what causes this error to occur. I thought the data types in my table are the reason and I changed them. But, … | |
Am Super new to php so please be nice. :D Here is the code: [code=php] <form name="form" id="form"> <div align="center"> <select name="jumpMenu" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)"> <option value="#" selected="selected">Episode List</option> <option value="episode001.php">Episode 01</option> <option value="episode002.php">Episode 02</option> <option value="episode003.php">Episode 03</option> <option value="episode004.php">Episode 04</option> <option value="episode005.php">Episode 05</option> <option value="episode006.php">Episode 06</option> <option value="episode007.php">Episode 07</option> <option … Web Development php | |
Hey everyone, I've set up a dev environment on my Mac, and I'm noticing some strange things that I haven't seen before. When making a request to [url]http://localhost/test[/url], If I have a file in the site folder named [LIST] [*]test.jpg [*]test.html [*]test.php [*]test.xml [/LIST] then Apache will fetch the first … | |
How to send the session data in one page to another? here's my code because I am going to bill out all of the orders and Name and ID of the current user logged int , the PHP code [CODE]<?php session_start(); include("Connection.php"); if (isset($_POST['submit'])) { $name = $_POST['customerName']; mysql_query("INSERT INTO … | |
I want to show distinct Year in my currenttime database field which is actually timestamp by structure. I want to show years like :- 2013, 2012, 2011 and so on . but the problem , the result of my query gives me 10-09-2013 12:11:17 10-09-2012 12:11:14 10-09-2011 12:11:17 which i … Web Development php ![]() | |
I can't find a tutorial anywhere on how to search a sql database using a textbox and a button in asp.net any help. I'm coding in C# Sql database has a customers table I want to display firstname and lastname by searching cust_no | |
[CODE] public static void ServeAsPDF(System.Web.UI.Page webPage, Boolean download, String FileName) { try { string htmlString = GetHtmlForPage(webPage); webPage.Response.Buffer = true; webPage.Response.Clear(); webPage.Response.ContentType = "application/vnd.ms-word"; //application/octet-stream webPage.Response.ContentEncoding = System.Text.UnicodeEncoding.UTF8; webPage.Response.Charset = "UTF-8"; webPage.Response.AddHeader("Content-Disposition:", "attachment; filename="+ FileName +""); webPage.Response.AddHeader("cache-control", "must-revalidate"); webPage.Response.Write("<html xmlns:v='urn:schemas-microsoft-com:vml' xmlns:o='urn:schemas-microsoft-com:office:office' xmlns:w='urn:schemas-microsoft-com:office:word' xmlns:m='http://schemas.microsoft.com/office/2004/12/omml' xmlns='http://www.w3.org/TR/REC-html40'>"); webPage.Response.Write("<head>"); webPage.Response.Write("<title>PF FUND</title>"); webPage.Response.Write("<META HTTP-EQUIV='Content-Type' CONTENT='text/html; … | |
I know programming but I am pretty new in php. I am studying now some script and I cannot pass a config file. could anyone help me configuring a site. the root folder is in d:/situri/agptg and the server folder is in d:/wamp/www/agptg and server address is http/localhost/agptg. And here … Web Development php | |
i have a webpage form which have different no of textbox. i have to send this data to a sql database but i dont want to use the $_post or $_get command infact i don't want to send my data to other php page so i basically want a [B]php … Web Development javascript php ![]() | |
hello friends i am upto software for the school management system and i have completed student info form and class and subject form.now i am stuck in fee section i want to use head and subhead concept that is based on charts of acount.can you people clear me that thing … Web Development php ![]() |
The End.