17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for P00dle

g'mornin peeps. I'm going for an interview tomorrow at a company that uses the ZEND framework. As such, I have been reading up on it, as well as MVC among other things. The question I'm asking is about the ZEND controller action. Could someone please point me to an example …

Web Development php
Member Avatar for P00dle
0
198
Member Avatar for Bazzaah

Hi I'm building a site that contains access to some mp3 files of people speaking English. I would like a media player that is able to handle a variable that results from a database search. I can use <a href etc> to link to the relevant file but would like …

Member Avatar for Bazzaah
0
108
Member Avatar for Sarama2030

just started out on php, kinda having problems configuring the language (php), the database server and the web server on windows 7. what could i not be doing right. I have edited apache's conf file to use php and stuff. One problem is that i have IIS running as the …

Web Development apache mysql php
Member Avatar for dottomm
0
171
Member Avatar for masocha

l am making an jax call and the data is coming back fine inserted into the specific div correctly. However my css is broken after the AJAX call. the h1 are too big some menu items disppear. See code below jQuery('#section').change(function() { jQuery('#loading') .bind('ajaxStart', function() { jQuery(this).show(); }) .bind('ajaxComplete', function() …

Web Development html-css javascript
Member Avatar for Amr87
0
1,000
Member Avatar for jpknoob

Hi, I have been trying to debug this error all day and am having problems. The script connects to the database and displays the results as as it should, however, when it loops, I get the error "Warning: mysql_fetch_array(): 3 is not a valid MySQL result resource". I tried to …

Web Development php
Member Avatar for jpknoob
0
86
Member Avatar for youvi

id name 1 A4_HUMAN 2 ABC3H_HUMAN 3 22P1_RAT 4 5HT1E_HUMAN Hello , See above shows a database table contains 2 fields id and name.. I need to search these values and display the names with a keyword entered by user. The key word may b a string or even a …

Web Development php
Member Avatar for metalix
0
137
Member Avatar for codemonkey88

Hi, I have been developing a cms site for a client, which uses the adodb package to update the database. I have been doing this as below; [CODE] $updateSQL = sprintf("UPDATE tblSections SET Content = '%s' , ContentTitle = '%s' ,UpdatedDate = '%s' WHERE SectionID = %s", $Content, $ContentTitle, date('Y-m-d …

Web Development client-server cms php
Member Avatar for codemonkey88
0
199
Member Avatar for abathurst

Hi, I am new to ASP.NET and i have been thrown into the deep end on a project, the person who created this code is no longer available. The website allows an Admin to login and edit, update or delete information in an SQL database referring to PDFs located on …

Web Development asp.net open-source pdf session sql
Member Avatar for abathurst
0
311
Member Avatar for Sydney123

Hello there I have a script for creating 3 dependant drop down menu Selection A in 1st drop Down returns Selection B in 2nd drop Down which returns Selection C in 3rd and final drop down To C I would like to attach a string of 3 value ( prices …

Web Development javascript
Member Avatar for Sydney123
0
113
Member Avatar for Geertc

Hello, I have a problem with htmlentities(). I 'm missing something here, but I don't know what it is. In my webpage, which is set to utf-8, the result of [CODE]echo htmlentities('éè')[/CODE] is [COLOR="Red"]éè[/COLOR]. Why isn't the result [COLOR="Red"]&eacute;&egrave;[/COLOR] ? Thing is : I want to put the name 'Hélène' …

Web Development html-css php
Member Avatar for Geertc
0
330
Member Avatar for umeshMCA

hi i have a php dropdownlistbox (select button of html) which having three values on is all and second is activated and third one is deactivated. i want when use select all then show all values of database and when user click on activated then show only activated values and …

Web Development php
Member Avatar for diafol
0
220
Member Avatar for Nfurman

Hello, My code is: [CODE] protected void Button1_Click(object sender, EventArgs e) { string EducatorName = tbEducatorName.ToString(); string Educatorfamilyname = tbEducatorFamilyname.ToString(); int Hisclass =Int32.Parse(ddlClasses.DataValueField.ToString()); SqlConnection conn = new SqlConnection(DBconn); SqlCommand cmd = new SqlCommand("AddNewEducator", conn); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "AddNewEducator"; cmd.Parameters.Add("@EducatorName", SqlDbType.VarChar).Value = EducatorName; cmd.Parameters.Add("@Educatorfamilyname", SqlDbType.VarChar).Value = Educatorfamilyname; cmd.Parameters.Add("@EducatorClass", SqlDbType.Int).Value …

Web Development asp.net
Member Avatar for Nfurman
0
104
Member Avatar for narekm

Hello there..While installing Joomla i am facing this problem...These are the requirements [CODE] Directive Recommended Actual Safe Mode Off Off Display Errors Off On File Uploads On On Magic Quotes Runtime Off Off Register Globals Off Off Output Buffering Off On Session Auto Start Off Off [/CODE] As you can …

Web Development apache php session
Member Avatar for narekm
0
175
Member Avatar for jpknoob

Hi all, i am having issues with my php and sql script. I have created a an update form that is populated with the database contents, however, when i edit the fields, the update script fails to update the database. The form looks like; [CODE] <form action="update-stock.php" method="post"> <input type="hidden" …

Web Development mysql php
Member Avatar for KamranArshad
0
147
Member Avatar for pallavibhoite

Plz frenz help me. I want to display timetable of college lectures using PHP/MySQL. I stored the information about lectures in Lectures_Info table. It has following fields: Subject_Name- name of subject, Lecture_Start-start timing of lecture(like 09:00), Lecture_Day-Day of lecture(like Monday,Tuesday). I attached image for the format of timetable. There are …

Web Development php
Member Avatar for pallavibhoite
0
2K
Member Avatar for Buppy

Hello, I have a script that prints out a lot of <tr>'s, each has a different id, let's say it's a number. What i am trying to get is when a user enters numbers in a certain textfield, named #idtext for example, it shows only those <tr>'s whose id numbers …

Web Development javascript javascript-jquery
Member Avatar for Buppy
0
219
Member Avatar for debasishgang7

I am trying to call a function repeatedly after a certain amount of time delay with the help of java script. [CODE]<html> <head> <script type="text/javascript" src="prototype.js"></script> <script> function sendRequest() { Something to do } </script> </head> <body> <script type="text/javascript"> setTimeout ( "sendRequest()", 2000 ); </script> </body> </html>[/CODE] If i use …

Web Development javascript
Member Avatar for debasishgang7
0
129
Member Avatar for youvi

what will be the output of below queries if $option='name' where 'name' is a coloumn name of a database table which contains the value "GHTY_bbbb" 1.LOCATE('_', '$option'); 2.SUBSTR('$option',0,LOCATE('_', '$option')); i need to fetch the value before "_" from "GHTY_bbbb".if any error in above query please provide me the correct query. …

Web Development php
Member Avatar for diafol
0
95
Member Avatar for youvi

SELECT name,SUBSTRING(name,1,LOCATE('_',name)-1) FROM `student` how to echo the substring??

Web Development php
Member Avatar for diafol
0
190
Member Avatar for dietdew12z

I tried searching for an answer, but I'm not sure how to word the question so that it fits into a search box. I found out a month or so ago that if you are accessing variable data like $_POST['user'] or after a mysql_fetch you can use $row['id'] but it …

Web Development php
Member Avatar for dietdew12z
0
149
Member Avatar for madgokuss4

Hi everybody, got a small ( possible large as it's driving me bonkers lol ) problem. I'm making a stock level checking script using php/mysql. I need to make it so that the script checks each item of stock in the database and if the level of an item is …

Web Development php
Member Avatar for madgokuss4
0
97
Member Avatar for mbarandao

i'm trying to redirect a successful login user to his/her specific directory in the root site. Could I request some guidance in this area?

Web Development php
Member Avatar for mbarandao
0
1K
Member Avatar for malashukla

i am creating a gridview at runtime like this [CODE]DataTable dt = new DataTable(); DataRow dr=null; if (gdvItem_Indent_List.Rows.Count == 0) { dt.Columns.Add("ItemType", System.Type.GetType("System.String")); dt.Columns.Add("Cost", System.Type.GetType("System.String")); dt.Columns.Add("Quantity", System.Type.GetType("System.String")); dr = dt.NewRow(); dr["ItemType"] = ddlItem.SelectedItem.Text; dr["Cost"] = txtEstimateCost.Text; dr["Quantity"] = txtReqQty.Text; dt.Rows.Add(dr); ViewState["ItemData"] = dt; } else { dt = (DataTable)ViewState["ItemData"]; dr …

Web Development asp.net
Member Avatar for pinkygirl
0
68
Member Avatar for Sydney123

Hi there I have used a script available on the internet for a multiple drop down box ( Country/State/City ). Once the selection is updated I would like 3 different set of result to show in box : Result could be value or text. Using the below script I am …

Web Development javascript
0
55
Member Avatar for Sydney123

Hi there I have used a script available on the internet for a multiple drop down box ( Country/State/City ). Once the selection is updated I would like 3 different set of result to show in box : Result could be value or text. Using the below script I am …

Web Development php
Member Avatar for Wraithmanilian
0
145
Member Avatar for YMCMb

Hey everyone, Im new to ASP.NET i have searched the web and i have come to a few threads which are close to what i am looking for, however they are only helpful to me to a certain extent. I have a grid in a form which is being populated …

Web Development asp.net
Member Avatar for YMCMb
0
203
Member Avatar for ggeoff

Hi I am using the PHP include statement to enable publication of a piece of news. The news is filed as "news.txt" and the user has access to a directory to upload the file or delete old news but no access to the code. If the file does not exist …

Web Development php
Member Avatar for diafol
0
212
Member Avatar for debasishgang7

I am using a XXS filter function to filter unwanted code.Here is my function xxs.php [CODE]<?php function clean($data) { // Fix &entity\n; $data = str_replace(array('&amp;','&lt;','&gt;'), array('&amp;amp;','&amp;lt;','&amp;gt;'), $data); $data = preg_replace('/(&#*\w+)[\x00-\x20]+;/u', '$1;', $data); $data = preg_replace('/(&#x*[0-9A-F]+);*/iu', '$1;', $data); $data = html_entity_decode($data, ENT_COMPAT, 'UTF-8'); // Remove any attribute starting with "on" or …

Web Development php vbscript xml
Member Avatar for debasishgang7
0
1K
Member Avatar for Sarama2030

i'm working on this project in asp.net in conjunction with vb.net.the thing is code behind is just not getting fired, well it used to but then it stopped. I'm using visual studio 2010 ultimate edition as my editor and of course IIS as my web server. I really don't get …

Member Avatar for Sarama2030
0
186
Member Avatar for sunny124

Hi guys, I am trying to display validation error messages when form validation fails. Currently it does display the error messages but then disappears straight away. How can I stop the page from refreshing when validation fails? I have return false in my code when validation fails but still having …

Member Avatar for sunny124
0
324
Member Avatar for disposable_zero

OK I'm pretty green at this so do bear with me. What I want to do is have an area where people can upload files to me. I found a script that I'm trying to make work and I've almost got it there but I'm having an issue. Everything actually …

Web Development file-system php
Member Avatar for disposable_zero
0
113
Member Avatar for penguino138

So i'm transferring all the files from my mom's website and on a very important javascript file, I'm getting an unknown error on line 9. Here's the code: [CODE] /** * @package Kinetic Template - RocketTheme * @version 1.5.3 March 18, 2010 * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) …

Web Development javascript legal
Member Avatar for penguino138
0
147
Member Avatar for thephpdev

I have no idea what's wrong, I googled but I couldn't find the answer :/ it's probably really obvious but i'm rather new to PSQL Statement: [CODE] INSERT INTO drop_users VALUES ('John_Bucky','John_Bucky','a83b3735814aa577651a55b7c838a6a0',02-04-2011_02:20:55,'object', DEFAULT,DEFAULT,13,DEFAULT,DEFAULT[/CODE] Thanks for your time! ~Josh

Web Development php postgresql
Member Avatar for thephpdev
0
93
Member Avatar for phpDave

Hey, header is working just fine in f.f but not in i.e. I.E. seems to clear the Query String up to index and redirect me to the index page. If I cancel out the header func. page seems to work . Here is some of the code. [CODE]if ($Result1) { …

Web Development php
Member Avatar for phpDave
0
115
Member Avatar for Buffalo101

Hello, I'm trying to understand a very simple example of using html + servlets using Eclipse EE. I have an [B]index.html [/B]: [code=html] <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Ze title!</title> </head> <body> <form action="MyServlet" method = post> <input type= text name …

Web Development html-css javascript
Member Avatar for Airshow
0
111
Member Avatar for youvi

hello, See "ABC4_HUMAN" is a database value.i need to search this value using a character say"A" or by a word say"ABC".But i need to check this value only in "ABC4" part of the value "ABC4_HUMAN". please provide me the query using "like" operator.. thanks

Web Development mysql php
Member Avatar for Stefano Mtangoo
0
100
Member Avatar for Bazzaah

Hello After some help please I have a website which links to a database. I would like to be able to echo the contents of the database onto a new page. The new page is generated with the following code; [CODE]echo '<tr><td align="left"><a href="word.php?w=' . $r['word'] . '">' . $r['word'] …

Web Development php
Member Avatar for Stefano Mtangoo
0
93
Member Avatar for professor123

can anyone help me, l have a laptop an a desktop and a crossover(network cable). l want to be able to connect the 2 and then use the laptop as a server from which l wil run my XAMPP AND THEN SET UP A PROJECT (e.g a website or any …

Web Development laptop php
Member Avatar for professor123
0
105
Member Avatar for ebanbury

Hello HOw do I format the output of my prices/numbers using number_format () In the code below I have the dynamic field from a recordset which shows the price. Currently the numbers are as such for example: 100000 and I would like them to be displayed as 100,000 or 1,000,000 …

Web Development php
Member Avatar for ebanbury
0
138
Member Avatar for eagled2

Hello. I am working on a permission system for a site I am creating. First I will explain what I am trying to do, then I will explain the problem I am having. I am saving the active permissions for a user at login. The permissions are saved in a …

Web Development php session
Member Avatar for eagled2
0
126
Member Avatar for cliffcc

How to cut and paste the folder? What is the code in php?

Web Development php
Member Avatar for cliffcc
0
1K
Member Avatar for rom.

hi there, I'm having trouble with my project, I can't wrap my head around the code. Any help would be greatly appreciated! in a database you have 2 tables. they look like the following.. table: workflow columns: id, title, content_id table: content columns: id, text list (echo) all the entries …

Web Development mysql php
Member Avatar for diafol
0
121
Member Avatar for raghujosh

I have a page on which I have 2 dropdowns. Both are similar. I have a piece of code that whill make a textbox appear if we select "list Box" as the option in the drop down. But for some reason, the first dropdown works fine, but for the second …

Web Development javascript
Member Avatar for raghujosh
0
2K
Member Avatar for joban.ali

Hi Everyone I just wanted to know how i can display the content of one of my database field in a list format. I have field called Ingredient, the data type of that field is Text, i tried using css but it just turns the whole content as 1 list, …

Web Development display php
Member Avatar for joban.ali
0
119
Member Avatar for TechySafi

[CODE]$data = "email@yahoo.com,go@gmail.com,example@example.com"; list($email1, $email2, $email3) = explode(",", $data); echo $email1; // email@yahoo.com echo $email2; // go@gmail.com [/CODE] Pretty perfect but my problem is I don't know how many email addresses will be inserted by a user. He can input just 1/2 or even 30/40. So the style of below …

Web Development php
Member Avatar for TechySafi
0
118
Member Avatar for mohansinhf

I am having records in a field (field_id) of a table (in mysql database), which is having ID stored per line, for example [B] 1 2 3 10 11 13[/B] above is one record, and I have many records similar to that. and, when I am writing the query [B]SELECT …

Web Development php
Member Avatar for mohansinhf
0
96
Member Avatar for jigneshdesai

Hello freinds, Recently i was interviewes in accenture and i was asked what the difference between tostring and convertostring. I think tostring checks for spaces and convertostring does not

Web Development asp.net c#
Member Avatar for Ramesh.KR
0
256
Member Avatar for ebanbury

OK I'm pretty sure this is an easy one. I've successfully made my list and checkbox fields sticky using selected=selected and checkbox=checkbox etc etc. I now have a very simple text field. What is going wrong is that the entire string within the value="" shows up as the initial value …

Web Development php
Member Avatar for Akash Saikia
0
387
Member Avatar for Sorcher

Hello! I am beating myself up here. I use [CODE]include "header";[/CODE] on all pages, at the top, the header contains everything within <header></header> on a html page. But should i use [CODE]session_start();[/CODE] inside the header or before i include header.php on all pages? The session on my website logs out …

Web Development php session
Member Avatar for diafol
0
312
Member Avatar for Tempest will

Hi all , below is a program i have made, and i need to know the code to compare password and password1 so they are the same value and the user hasn't made a mistake, but im not sure on how to do this, any ideas ? [CODE]<body> <table width="744" …

Web Development php
Member Avatar for joban.ali
0
1K

The End.