52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for 007tron

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 …

Web Development display image php
Member Avatar for 007tron
0
210
Member Avatar for Unhnd_Exception

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
Member Avatar for kvprajapati
0
69
Member Avatar for amear

$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
Member Avatar for amear
0
114
Member Avatar for jonsan32

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
Member Avatar for jonsan32
0
263
Member Avatar for ace3df

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
Member Avatar for AleMonteiro
0
242
Member Avatar for Sorcher

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 …

Web Development image php
Member Avatar for Sorcher
0
89
Member Avatar for dougancil

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
Member Avatar for cvplay
0
123
Member Avatar for AngieS

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 …

Web Development mysql php
Member Avatar for diafol
0
112
Member Avatar for AbhishekBiswal

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
Member Avatar for cereal
0
3K
Member Avatar for no1uknow

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...

Web Development html-css php xml
Member Avatar for chrishea
0
3K
Member Avatar for kevin wood

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
Member Avatar for smithdp1
0
245
Member Avatar for alltech

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
Member Avatar for alltech
0
508
Member Avatar for zevo

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 …

Web Development html-css php
Member Avatar for pritaeas
0
356
Member Avatar for LRNPHP

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 …

Web Development mysql php
Member Avatar for LRNPHP
0
163
Member Avatar for petrakid

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 …

Web Development php seo
Member Avatar for petrakid
0
145
Member Avatar for abhi10kumar

It is possible send an email using Javascript.. If yes.. the how..?

Web Development email javascript
Member Avatar for touch_the_sky
0
349
Member Avatar for DarkBerzerk

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 …

Web Development mysql php
0
277
Member Avatar for elcubanoluis

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? …

Web Development cms mysql php
Member Avatar for pritaeas
0
103
Member Avatar for sam230

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

Web Development mysql php
Member Avatar for pritaeas
0
184
Member Avatar for DarkBerzerk

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

Web Development cpanel php
Member Avatar for DarkBerzerk
0
115
Member Avatar for AbhishekBiswal

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. …

Web Development cms mysql php
Member Avatar for urtrivedi
0
197
Member Avatar for eduard77

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
Member Avatar for eduard77
0
93
Member Avatar for mwenyenia07

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
Member Avatar for urtrivedi
0
110
Member Avatar for turt2live

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
Member Avatar for turt2live
0
304
Member Avatar for Aksel

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 &amp 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
Member Avatar for vibhaJ
0
103
Member Avatar for jabeen111

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
Member Avatar for vibhaJ
0
140
Member Avatar for jemz

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
Member Avatar for jemz
0
88
Member Avatar for davidXY

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. …

Web Development java php sql
Member Avatar for davidXY
0
146
Member Avatar for thomas.edison

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 …

Web Development apache oracle php
Member Avatar for thomas.edison
0
202
Member Avatar for mlhazan

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 …

Web Development php ui-ux
Member Avatar for mlhazan
0
324
Member Avatar for jonsan32

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 …

Member Avatar for jonsan32
0
149
Member Avatar for Who me?

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
Member Avatar for Who me?
0
163
Member Avatar for singharun

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
Member Avatar for arrgh
0
134
Member Avatar for jackisback13

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 …

Web Development apache java-jsp
Member Avatar for jackisback13
0
363
Member Avatar for Marshmallows

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
Member Avatar for jogesh_p
0
123
Member Avatar for jackparsana

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
Member Avatar for jackparsana
0
264
Member Avatar for zulfistyle

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?

Web Development image php
Member Avatar for pzuurveen
0
128
Member Avatar for gganeriwal

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
Member Avatar for limohire
0
711
Member Avatar for maydhyam

[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 …

Web Development mysql php
Member Avatar for shailendra2614
0
535
Member Avatar for abhi10kumar

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 .= …

Web Development android php
0
86
Member Avatar for rotten69

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, …

Web Development asp.net c#
Member Avatar for hericles
0
107
Member Avatar for ace3df

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
Member Avatar for vibhaJ
0
202
Member Avatar for bytelaunch

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 …

Web Development apache html-css php
Member Avatar for bytelaunch
0
129
Member Avatar for chiiqui

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 …

Web Development php session
Member Avatar for daryll1
0
3K
Member Avatar for khushhappy

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
Member Avatar for diafol
0
130
Member Avatar for freshfitz

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

Web Development asp.net sql
Member Avatar for pradeep_skiet
0
458
Member Avatar for avinashb3

[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; …

Web Development asp asp.net pdf
Member Avatar for avinashb3
0
707
Member Avatar for eduard77

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
Member Avatar for ko ko
0
178
Member Avatar for rimilbadal

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
Member Avatar for diafol
0
910
Member Avatar for extemer

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
Member Avatar for diafol
0
102

The End.