17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for QWaz

Hi, I am a php newbie. The site is a sports site, and contains information on about 10 teams. However each team has it's own admin section. I would like to have 1 general login page that lets a user access the database that relates to their team. I don't …

Web Development php
Member Avatar for QWaz
0
96
Member Avatar for Waher

I am using Wampserver for my Windows Apache-PHP-MySQL stack. The file accessed has a header that defines it as utf-8, meta tag in HTML also defines it as utf-8. My best guess so far is that it has something to do with Apache. Searching through Google was of little help …

Web Development apache php
Member Avatar for nav33n
0
295
Member Avatar for cjay175

Hi there, I am having some issues with getting a variable from an onclick event with javascript. [CODE] $('#preview_logo').append('<img src="'+fileObj.filePath+'" height="100px" hspace="5" /> '+fileObj.name+' uploaded.<a href="javascript:;" id="dele_image" onclick="del_image('+fileObj.filePath+','+fileObj.name+');">Upload Different Image</a><br>');[/CODE] This is for uploadify script for previewing an image that is uploaded, it creates the link fine, but won't trigger …

Web Development javascript
Member Avatar for Airshow
0
6K
Member Avatar for jamshed ahmed

how to use javascirpt for client side to transfter the values suppose when i enter 2 in textbox1 then in thextbox2 it should show 4 how is it possible because there is no keypress event is there in asp.net texbox control please help

Web Development asp.net
Member Avatar for jamshed ahmed
0
114
Member Avatar for AkhJ

Hello All, Greetings of the day! I am new to PHP & working on a project. What my senior had asked to do is to , creat a drop down menu. I did the same. And just below of drop down menu there is a Text Box, where user can …

Web Development php
Member Avatar for colweb
0
119
Member Avatar for udayasankark

Hai all, how to have default button in a content page. currently if i hit enter ket my master page search getting fire. i also place my master page in panel. for content for also i placed the button inside panel and set panel default button. but still my master …

Web Development asp.net gui
Member Avatar for awaishafeez86
0
269
Member Avatar for dougancil

I'm trying to write code for a page using VB and as I'm new to this, I'm needing some assistance. I have a button on a web page for uploading a .csv file but I also want that button to function as taking people to a destination page as well. …

Web Development asp.net
Member Avatar for jbrock31
0
81
Member Avatar for dottomm

hello and thank you in advance to anyone who can help me with this problem. I've scoured the internetz for a while trying to find a solution to what must be a common question, but I can't find anything that relates to what I am trying to do. I have …

Web Development mysql php
Member Avatar for dottomm
0
167
Member Avatar for leeZA1

Hi, i have a database which stores admin account details when an administrator selects to view all acounts is there any way of changing the password do they cannot read them all??

Web Development php
Member Avatar for leeZA1
0
80
Member Avatar for Ycefire

Hi there, I'm havin a session with value of ID. I need to create a query for GridView to show only values linked with user mentioned in session. So my question is if theres any way how to modify my code which isnt working. [code] <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DbConnStr …

Web Development asp.net session sql
Member Avatar for Ycefire
0
112
Member Avatar for chunalt787

I have the following php code: [CODE]$query = "INSERT INTO flashcards VALUES (null, '".$_POST['front0']."', '".$_POST['back0']."', ".$link.", ".$details.", NOW()); INSERT INTO bundleflashcardlink VALUES (null, ".$flashcardbundleid.", LAST_INSERT_ID());"; $result = mysql_query($query);[/CODE] which gives me the following error: [CODE]DB Connection error: You have an error in your SQL syntax; check the manual that corresponds …

Web Development mysql php
Member Avatar for chunalt787
0
124
Member Avatar for kardklub

this is what i have so far [CODE]<?php require "backend/functions.php"; dbconn(); $errmsg = ""; // get the .pdf #################### this is me getting my pdf############### $gotten = @mysql_query("select * from pdf order by pid desc limit 1"); $row = @mysql_fetch_assoc($gotten); $fileatt = $row[imgdata]; ################################################################ #but with this lines 27 28 …

Web Development email pdf php
Member Avatar for kardklub
0
141
Member Avatar for peter_budo

I have little bizarre problem. Working in Java web development we have project that we use plenty of templates from Velocity. Where one template can refresh section of it self and display one or more templates. My problems is that in parent template I have to pop up window with …

Web Development javascript javascript-jquery
Member Avatar for Donall
0
123
Member Avatar for Encrypted

Alright, so I've got this dynamic form. My problem is.. the name could be anything between "1" to "100000" depending on what the output of a script is and which parts of the output the user chooses to select. What would you do to get all of the values from …

Web Development php
Member Avatar for Encrypted
0
110
Member Avatar for danjoe15

The Catch section is always executed even if the Try section has been executed. I am trying to send the user to one page if the delete worked properly and a different page if the delete did not work because of relationships between tables: [CODE] Protected Sub btnDeleteBuilding_Click(ByVal sender As …

Web Development asp.net session
Member Avatar for danjoe15
0
105
Member Avatar for tbelczak

I have way too many hours into this and I feel as though it is due to a configuration difference somewhere between the two servers. Here is code for two simple scripts: [B]TEST1.PHP[/B] [code=php] <?php session_start(); $cart[0] = array('item_number' => '12345', 'qty' => '5'); $_SESSION['cart'] = serialize($cart); header('Location: test2.php'); exit(); …

Web Development php session
Member Avatar for tbelczak
0
222
Member Avatar for EvilOrange

i have this code: [CODE] var current; startOff = $('#all').offset(), offString = "{top :"+ startOff.top +", left :"+ startOff.left + "}"; current.css(offString); [/CODE] When "offString" is alerted its fine - eg {top: 123, left: 342} BUT it doesn't seem to like it, but when the alerted output is added into …

Member Avatar for EvilOrange
0
99
Member Avatar for Tekkno

[code=php] $results = mysql_query("SELECT column1, column2, date, time FROM table ORDER BY RAND() LIMIT 1"); $row_table = mysql_fetch_assoc($results); [/code] For some odd reason this does not return data, however if I change it to: [code=php] $results = mysql_query("SELECT column1, column2, date, time FROM table ORDER BY RAND() LIMIT 2"); $row_table …

Web Development php
Member Avatar for diafol
0
202
Member Avatar for bjeffries

Well at least I think my troubles are with the get variable. I know my code is amateur I am very new to PHP and trying to learn as much as I can. So I am trying to create a photo gallery any having trouble with getting my get variable …

Web Development php
Member Avatar for bjeffries
0
349
Member Avatar for jpknoob

I'm trying to create a form that updates stock in mysql database. I have created the forms to upload new stcok and they work fine. However, i'm including a link that will take the user to an update php that will then update the required fields, but i can't seem …

Web Development mysql php
Member Avatar for diafol
0
99
Member Avatar for azegurb

hi all i have a problem with file content copying. i have index.php and there are codes in it. i would like to create [COLOR="red"]indexa.php[/COLOR] and append[COLOR="red"] index.php [/COLOR]file contents to newly created [COLOR="red"]indexa.php [/COLOR]file thanks beforehands here is my file [CODE]<?php // This function shows your form function form(){ …

Web Development file-system php
Member Avatar for azegurb
0
1K
Member Avatar for xylude

I have an if statement that is always evaluating true even if none of the conditions are true. It goes like this: if(condition1 || condition2 || condidion3) { //do stuff } For whatever reason even if none of the 3 conditions are actually true, it just runs anyway. Is there …

Web Development php
Member Avatar for theighost
0
114
Member Avatar for kristo5747

Greetings! I created this form that works like a charm, captures data in my db and sends email. Suppose user Joe hits the RESET button before he clicks SUBMIT, all fields are reset. If Joe hits the RESET button AFTER he clicked SUBMIT (e.g. to make a new submission)...nothing gets …

Web Development javascript pdf php
Member Avatar for kristo5747
0
122
Member Avatar for fiaolle

Hi I'm trying to set a property in the User Control. I see that the property is set when I'm debugging. But when I'm using the property in a method in the User Control the property is set to 0 everytime. I don't understand why. Here is the code I'm …

Web Development asp.net
Member Avatar for reach_yousuf
0
211
Member Avatar for Ycefire

Hi there, I'm a beginner in ASP.NET with VB and I'm stuck on problem with a SQL query. I'd like to ask you for advice what does my page or config file miss. thats how my form looks like [CODE] <form id="form1" runat="server"> <div style="margin: 0 auto; width: 180px;"> <asp:Label …

Member Avatar for Ycefire
0
805
Member Avatar for peter_budo

I running my little blog on Tomcat 6 server. My hosting company allows me to set up multiple sub domains. I was trying to do for last few hours, but no luck. Having started with [code=xml] <Engine name="Catalina" defaultHost="mydomain.co.uk"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> <Host name="mydomain.co.uk" appBase="/home/user/public_html" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>www.mydomain.co.uk</Alias> …

Web Development apache java-jsp web-server xml
Member Avatar for peter_budo
0
1K
Member Avatar for suryarao

hi, in my application i am using a music player for playing the audio (premiumbeat.com) royalty music player. Which is working fine when audio file placed directly. But in my application the audio file comes from the other page in a query string how can i write the code for …

Web Development asp asp.net audio javascript
Member Avatar for kvprajapati
0
563
Member Avatar for fiaolle

Hi I want to make my own login box to popup when I click a button Is there a way to do that? I don't want a whole page for the loging in part. I just want something like the msgbox, but with two textboxes and two buttons for login …

Web Development asp.net
Member Avatar for kvprajapati
0
75
Member Avatar for filch

I am having a hell of a time with a form, which is built dynamically from PHP. The form is constructed first by calling a page called gala-tix.php, This page holds a bunch of javascript functions, the form code and it also calls an include called dwt.php. dwt.php has a …

Web Development php
Member Avatar for colweb
0
163
Member Avatar for benqus

Hello again! I need your help again, people! =) So here's my problem: This line replaces only the first "\n" spec. character in my textarea, and this way everything's screwed up... I'm sending the replaced content of the textarea through AJAX to the server, in a GET method. I've tried …

Web Development javascript
Member Avatar for benqus
0
165
Member Avatar for raul15791

Hi, I have a problem here. I have a project running on localhost. Whenever I made some changes on a .aspx file, the changes can be seen immediately when I access my localhost. But when I made changes in aspx.vb file, the localhost still showing old info. * I have …

Web Development asp.net publishing web-browser
Member Avatar for raul15791
0
1K
Member Avatar for benqus

Dear Dudes! =) If anybody has a complete list of php methods separate in a file, please share it with me! I really need a txt file containing all of the PHP methods. It goes for my diploma work also... =) Ex: [CODE] for(){} //new line if(){} //new line switch(){} …

Web Development business-entrepreneurship php
Member Avatar for benqus
0
149
Member Avatar for michael_r

hi i have got a simple table in my database like this: [B]from[/B]|[B]to[/B] bangalore | delhi chennai | mumbai i am using two drop down list to display this data. here is my code: [CODE]<select name="From"> <?php while($row = mysql_fetch_row($result)) { ?> <option value="<?php echo $row[0];?>"><?php echo $row[0];?></option> <?php }?> …

Web Development php
Member Avatar for diafol
0
160
Member Avatar for lordtrini

I am trying to display the results of a query in the form of a table. this it the PHP that i am using below. The problem is that the headings of the table repeats. I really don't want that... I am also trying to get a border around the …

Web Development display php
Member Avatar for lordtrini
0
341
Member Avatar for fxm

This method invocation txt.match(/\[.*\]/g) works exactly as intended - it returns an array of matches [anytext1],[anytext2],[anytext3] I don't need the brackets, so out of curiosity I tried this tweak txt.match(/\[.*(?=\])/g) which - somewhat to my surprise I must admit - does exactly what I was hoping it would do and …

Web Development javascript
Member Avatar for fxm
0
95
Member Avatar for Arsench

Hello world, I’m trying something very simple but can’t get the result. I have table from I’m selecting a value which exist, then I want to display the value on the other page, but can’t get the result. Here is the code. The first page is active.php where goes the …

Web Development display php
Member Avatar for Arsench
0
116
Member Avatar for nccsbim071

hi, i have a website where i provicde a link. On clicking the link a controller action method is called to generate a zip file after creation of zip file is done, i show the link to download the zip file by replacing the link to create a zip with …

Member Avatar for nccsbim071
0
291
Member Avatar for star_lavender

How to use while loop to loop a set of radio button groups? I have several questions that retrieve from database and each question has five different ratings named 1, 2, 3, 4 and 5. I create radio button group for the rating and using while to loop them. I …

Web Development php
Member Avatar for star_lavender
0
3K
Member Avatar for Encrypted

Anyone know what I'm doing wrong here? I'm trying to get this code to work so that if a directory exists.. the mkdir() function is bypassed (so i dont get an error) but it seems that no matter what I throw in my is_dir() function it always hops down to …

Web Development php
Member Avatar for Encrypted
0
129
Member Avatar for leeZA1

I have a problem, if someone can help great!! Every time the form is submitted to delete the stabletitle it says successful even when the title entered is not in the database, if its not in the database it should say unsucessful, can someone see what is wrong with my …

Web Development php
Member Avatar for diafol
0
87
Member Avatar for Linlin

Hello! I have more or less zero knowledge about coding in PHP. The most I've done is includes, to help me maintaining my sites more efficiently. I hope I will not offend anyone with this question. Anyhow, towards my issue. I have one table containing several fields, with information such …

Web Development display image php
Member Avatar for almostbob
0
229
Member Avatar for sniigg

Hi all, I am creating a checkbox dynamically on page load. [code] using (SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["SimplifyNew"].ToString())) { SqlCommand cmd = new SqlCommand("usp_selectModifiedResults", conn); cmd.CommandType = CommandType.StoredProcedure; conn.Open(); SqlDataReader reader1 = cmd.ExecuteReader(); while( reader1.Read()) { System.Web.UI.HtmlControls.HtmlGenericControl DivCheck = new System.Web.UI.HtmlControls.HtmlGenericControl("DIV"); DivCheck.Style.Add("float","left"); CheckBox cb = new CheckBox(); DivCheck.Controls.Add(cb); bradbandPanelTarget.Controls.Add(DivCheck); cb.ID …

Web Development asp.net
Member Avatar for reach_yousuf
0
279
Member Avatar for keval_hack

Alright, I do little experience with programming with HTML/PHP The thing I need is an script that will log the visiting persons IP address AND his country of origin in any way; so the admin (me) can see it and confirm he/she has done whatever I want him to do. …

Web Development php
Member Avatar for keval_hack
0
157
Member Avatar for michael_r

hi every one this is my first post in any forum i have got an error while inserting a row to mysql this is my code: $query = "INSERT INTO flight(date,from,to,depart_time_hr,depart_time_min,arr_time_hr,arr_time_min) VALUES('$_POST[date]','$_POST[from2]','$_POST[to2]','$_POST[hours1]','$_POST[minutes1]','$_POST[hours2]','$_POST[minutes2]')"; the error shown is: 1064 You have an error in your SQL syntax; check the manual that corresponds …

Web Development php
Member Avatar for michael_r
0
157
Member Avatar for twilitegxa

I have a checkboxlist and I need to know how I can send the values of all checked items to a text file. I already have other controls on the form sending their values to my text file, but I don't know how to get the values of the checked …

Web Development asp.net
0
74
Member Avatar for mrcniceguy

i`m having this problem after whenever include or require is Used. help please i dont know how to solve this. Fatal error: Cannot redeclare validateemail() (previously declared in C:\wamp\www\kislat\functions\functions.php:3) in C:\wamp\www\kislat\functions\functions.php on line 26 [code=php] <?php session_start(); require "config.php"; $user=$_SESSION['user']; $id=$_SESSION['id']; if(!session_is_registered('user')){ header("Location: checklogin.php"); exit; } define('INCLUDE_CHECK',1); require"functions/functions.php"; require"includes/functions.php"; //$user=$_POST['user']; …

Web Development php regex
Member Avatar for mrcniceguy
0
832
Member Avatar for amby

Hi, I have a javascript object which is converted from json to java script object. i want to display its values like after each key value pair, i want to insert new line. but i dont know exactly how to do that. below is my code, please take a look …

Member Avatar for amby
0
253
Member Avatar for f_atencia

Hi all, I have an XML File: staff_record> <staff> <username>user1</username> <password>password1</password> </staff> <staff> <username>user2</username> <password>password2</password> </staff> <staff> <username>user3</username> <password>password3</password> </staff> </staff_record> I have a form (login.html) and I need to use an ASP page (login.asp) to redirect the user to home.asp when they have successfully logged in, based on the …

Web Development asp html-css xml
0
91
Member Avatar for preetg

hi everyone........... i want to send sms from my wesite to moblie phone.....i dont knw how i do it?nd i dont have any guidance of experts.............. plz guide how can i do this....... i read tutorial for this .....now i knw i need http protocol but how ?????????:-/:icon_question:

Web Development http-protocol php
Member Avatar for uniqueseo
0
111
Member Avatar for jeetudaljit
Member Avatar for shahpraneel
0
6K

The End.