17,029 Solved Topics

Remove Filter
Member Avatar for
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 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 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 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 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 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 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 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 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 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 fenixZ

Hi guys, I am experienced in PHP or at least until today I was thinking so. I am not sure what is it all about exactly. In my opinion the following code should not echo anything BUT IT DOES. [CODE] $cache = 'all'; if($cache == 0) { echo 'Execute something'; …

Web Development php
Member Avatar for fenixZ
0
130
Member Avatar for WhYuLoOkIn

Having trouble with a simple database command I keep getting the error invalid column name and I cant seem to figure it out. Please help me figure out some possible problems Thanks. [CODE=VB] Dim ConnString As String ConnString = "Data Source=.\SQLEXPRESS;AttachDbFilename= C:\inetpub\wwwroot\KiKoGraphics\App_Data\aspnetdb.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" Dim sqlConn As New SqlConnection(ConnString) …

Web Development asp.net open-source
Member Avatar for jasminvictoria
0
342
Member Avatar for GrinShady

Hi Guys. I'm still a php newbie. In our class, we have just discussed creating PHP functions. As expected, we were given some exercises. Unfortunately I was not able to make my self-made function. There were actually two files, namely; functions.php and max_of_3.php the 'functions.php' is where the function is …

Web Development php
Member Avatar for GrinShady
0
127
Member Avatar for mshdpotato

I'm completely new to PHP and I'm using dreamweaver. I'll be displaying a list of names but I want its background to stretch as long as the list of names. Something like the middle portion of this site - [url]http://library-online.org.uk[/url] I can't really describe it well and I don't know …

Web Development php
Member Avatar for diafol
0
128
Member Avatar for anand01

Hi all I need to send form data to email .. Can any one share some sample code .. Thanks in advance

Web Development email java-jsp
Member Avatar for anand01
0
80
Member Avatar for wenbnet

I m getting this three warning when i m opening my website. [B]Can any one explain me what is this errors and how it comes[/B] any help will be very much appreciated. Warning: require(Non-permanent posts) [function.require]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\kcd.co.in\httpdocs\index.php on line 17 …

Web Development file-stream php
Member Avatar for wenbnet
0
146
Member Avatar for eduard77

I have this function and when I load the page in the browser I keep on receiving an error that the last'}' shouldn't be there and I don't know why because everything seems right to me. Anyone could tell me where could be the problem? [CODE] function PageCompTopRated($w,$h) { global …

Web Development php
Member Avatar for karthik_ppts
0
75
Member Avatar for tapuwa2002

Hi guys Is there a way, where i can get two values from a option tag. I have form that needs to have values for it to display e.g My form looks like the following. [CODE] <form method="post" name="frmone" action="Result.cfm" enctype="multipart/form-data"> <select name="selvalues" id="selvalues" class="input_style-1" id="selvalues" style="height:19px"> <option value="1">Select Result</option> …

Web Development coldfusion
Member Avatar for tapuwa2002
0
155
Member Avatar for GeoffC

Example 1 The button is a blob of colour (.jpg) with text over the top. I want two things to happen: first, when the cursor is rolled over the .jpg and then the text, I want the text to change colour. This works ok. Second, I want to link to …

Web Development javascript
Member Avatar for AffineMesh
0
190
Member Avatar for vampshay

how to change the value of a button? for example "Add" then change to "Edit"? tnx.

Web Development php
Member Avatar for vampshay
0
91
Member Avatar for dwlamb

Good day, I am getting an error on a log-in script: mysql_query(): 4 is not a valid MySQL-Link resource I've done some research on this and followed such advice as: [LIST] [*]ensuring the mysql connection is closed after the results have been returned [*]testing any sql strings I define in …

Web Development ide mysql php session
Member Avatar for Zexsz
0
181
Member Avatar for Zexsz

I have a webpage that builds an html table if there is any data in a mySQL table. That works fine, the html table is populated with data from the mySQL table. My problem is when there is data it populates the html table but lists the first mySQL table …

Web Development php sql
Member Avatar for Zexsz
0
255
Member Avatar for tanhc

Hi there, I am a newbie to MSSQL. I apologise first as I know that my question might have been asked by others elsewhere but unfortunately I couldn't find it. I will really appreciate if someone can shed some light into my question. I have two tables with the following …

Web Development asp.net mssql
Member Avatar for poojaabora
0
137
Member Avatar for jakizak

I am having trouble returning things from this function. Below is the function. [CODE] function switchframeAQUA(v) { if (v == "0") { document.getElementById("picframe").src = "/frames/cod-liver-oil_pic.html"; document.getElementById("blurbframe").src = "/frames/cod-liver-oil_blurb.html"; } else if (v == "1") { document.getElementById("picframe").src = "/frames/fish-oil_pic.html"; document.getElementById("blurbframe").src = "/frames/fish-oil_blurb.html"; } else if (v == "2") { } else …

Web Development javascript
Member Avatar for Airshow
0
120
Member Avatar for kaizokupuffball

Hi! I am currently building a "social" website where people can send messages to eachother. When they are on their profile page they have this menu, one of the items are "Inbox". This is where the user can send personal messages to other users by typing the other users name, …

Web Development php
Member Avatar for kaizokupuffball
0
151
Member Avatar for vlowe

Hi, I cant get my around this.. I want to store some config details in config.php like so.. [CODE] $conf['audio'] = "play"; $conf['email'] = "send"; .. .. .. [/CODE] how can i use a form to edit the variables by writing to the file. The form will have the option …

Web Development audio php
Member Avatar for diafol
0
141
Member Avatar for vizz

I am not getting how to display stored database in MLM format? I have attached problem and desired answer images Database fields are : id new_id, name I want to display all members under member 1 all or one of that may be having member under itself.

Web Development display php
Member Avatar for ravikc
0
163
Member Avatar for ibivobarn

OK, first off let me say that I know that javascript is a client side language and that php is a server side language. I've read that you can't assign javascript variables to php variables too. But I'm still absolutely stumped as to WHY my code below doesn't work. Perhaps …

Web Development client-server javascript php
Member Avatar for ibivobarn
0
388
Member Avatar for vlowe

Im still trying to work this one out but what i would like to do is send an email if an alert is present. but not resend the email on every page refresh where the alert is still present. so i was thinking of using something like $_SESSION['sent_time'] to record …

Web Development email php session
Member Avatar for karthik_ppts
0
231
Member Avatar for Muralidharan.E

I am new for struts framework. using eclipse i want to create small web application with struts2 framework. All struts lib jar files(common-logging,freemarker,ognl,struts2-core,xwork-core) i have included web-inf lib directory. And exactly i have followed this [URL="http://viralpatel.net/blogs/2009/12/tutorial-create-struts-2-application-eclipse-example.html"]link [/URL]procedure to practice. but i am getting HTTP status 404 error. please give me …

Web Development java-jsp
Member Avatar for Muralidharan.E
0
85
Member Avatar for vibhaJ

Hi Friends, I am working on php from builder, where user can add text-box, text-area, chekbox, radio-button etc field using jQuery. Now i am ready with html code of form. Next step is to save each attributes(i.e. name, optionstags, label, title, tooltip, class etc) in mysql database. How can i …

Web Development javascript-jquery php
Member Avatar for vibhaJ
0
213
Member Avatar for decade

can somebody or someone teach me how to deal this warning: Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting …

Web Development php
Member Avatar for decade
0
142
Member Avatar for umeshMCA

hi i am a new user of asp.net, i would like to know when user open mysite it will display a image for somethime like 20sec till that there should be a gif image also show which showing uploading website like buffring in utv bideo gif. and after timeout it …

Web Development asp.net image
Member Avatar for umeshMCA
0
203
Member Avatar for manish250

Hi all I am calling a function from my servlet but getting following exception SEVERE: Servlet.service() for servlet In_Servlet threw exception javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at …

Web Development apache java-jsp
Member Avatar for javaAddict
0
229
Member Avatar for gotboots

Hi I have started this code but i cant get it to work. new to javascript, but not sure how it works. im trying to make an alert for a text box "rrp" that alerts when it is less than the list price, therefore stopping an incorrect price being lodged. …

Web Development javascript
Member Avatar for extemer
0
2K
Member Avatar for saucy6969

Hi there, I am trying to create a socialbar using either Wibiya or Bumpin. Both looked great in Google Chrome. Bumpin's wont stay static in IE or Firefox which inturn covers the footer. I wrote their tech support for help...no response. Wibiya's went completely haywire in IE...split bits and pieces …

Web Development social-media
0
141
Member Avatar for aecha

Hi! I am new here. I am new in php too.. Can somebody help me in solve this error? I can go to the page that but cannot call the data from the database. This is my code: [CODE]<?php $con = mysql_connect("localhost","root","root"); if (!$con) { die('Could not connect: ' . …

Web Development php
Member Avatar for karthik_ppts
0
131
Member Avatar for asif49

So I found a small flaw in the comment system I've made. When someone presses enter while typing a comment and puts in a new line, it doesn't show when the comment is gotten from the mysql database. I don't have any "if (new line within comment, add newline to …

Web Development php
Member Avatar for asif49
0
88
Member Avatar for alpa shah

hi... I am alpa.. :-| .plz suggest me online project topic based on JSP language...

Web Development java-jsp
Member Avatar for Ezzaral
0
97
Member Avatar for babbu

Is is possible to create excel file with multiple workseets using response.setContentType.?

Web Development java-jsp
Member Avatar for masijade
0
72
Member Avatar for mith_cool

I simply want to forward a request of one servlet to another servlet. Authentication Servlet gets a request from a jsp page and thus authenctication servlet passes the request to another Addtocart servlet. AuthenticationServlet Code: [CODE] RequestDispatcher rd= request.getRequestDispatcher("/Addtocart"); rd.forward(request, response); response.sendRedirect("Addtocart"); [/CODE] Addtocart servlet code: [CODE] String pid = …

Web Development java-jsp
Member Avatar for Rameshwar Soni
0
122
Member Avatar for kaizokupuffball

Hi! I am animating on click, and when i click the element a box fades in, but i got a problem. Inside my div tag i fetch user info from a database, now if i try to click a member named Test i get the info from the Test user, …

Web Development javascript javascript-jquery
Member Avatar for kaizokupuffball
0
186
Member Avatar for shujat132

Hello seniors, How are you? Well I need you help I am new student of php. Now I am trying to make user login system so that user can login through their password and user name. But I’m receiving this error. “ Fatal error: Cannot redeclare loggedin() (previously declared in …

Web Development php
Member Avatar for shujat132
0
226
Member Avatar for rakwel10

Hi! I believe you can help me... I need a code that can check user information. e.g. user fillout the input field with his idnum. Once the user goes to the next field, information from mysql db will appear showing the name of the person. In that way, the idnum …

Web Development php
Member Avatar for rakwel10
0
200
Member Avatar for sewanti

Hello, I am having the same problem. getting the message: Parse error: syntax error, unexpected $end in C:\wamp\www\World_Database.php on line 79 I am an absolute beginner. Could someone please help me sort this? thanks a ton in advance. Here is my code. [CODE]<html><head><title>World Database</title></head> <body> <?php include"file:///D|/PHPMySQL/connect_info.php"; $linkID1 = mysql_connect($dbhost, …

Web Development php
Member Avatar for diafol
0
135
Member Avatar for miriam159

Hi I have implemented an iframe that contains several links to other pages. I can't change the content of the iframe because it's on another server. Here you can see an example of the code for one link in the iframe: [CODE] <a href="javascript: void(0);" onclick="openUrl('http://www.streambeam.org');" title="">Link 1</a> [/CODE] Now …

Web Development javascript
Member Avatar for AleMonteiro
0
3K

The End.