17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for eyeda

Anybody can help me with this?I would like to update the status of the user in the mysql database whether its disabled/enabled by inserting 0 or 1 through the edit page.

Web Development php
Member Avatar for eyeda
0
1K
Member Avatar for NardCake

Hello! On my registration form I ask for a username and I only want a letters,numbers and underscores(_) in the username. How would I go about checking that? Thanks for any help!

Web Development php
Member Avatar for phorce
0
169
Member Avatar for GraficRegret

I am trying to get my code working so that I can store the path of an uploaded picture onto a table so that I can call upon the uploaded file whenever I need it. So what happens on the web page is, a person enters information on a vehicle …

Web Development mysql php web-server
Member Avatar for diafol
0
182
Member Avatar for TIM_M_91

OK so I have two classes in the first class is where the database is handled, in the second class is where I want the output from my database select statment in be displayed on a label. How do I get the result to a label on Invoice.aspx? DBdatabase.cs public …

Web Development asp.net session sql
Member Avatar for TIM_M_91
0
184
Member Avatar for AndreRet

I have 3 select boxes, each one returns a different field from database i.e., in database - 2010 BMW 320i, record 2 2008 Aston Martin DB9 and so on. What I do is to first get user to select a year, then submit form so I can return all vehicles …

Web Development first-post php
Member Avatar for AndreRet
0
187
Member Avatar for gahhon

<The parameterized query '(@bid nvarchar(5),@rid nvarchar(4000),@total float,@duedate nvar' expects the parameter '@rid', which was not supplied. > The Error Was Occur when i doing this calling this function. private void setBill() { SqlCommand cmdBill = new SqlCommand("INSERT INTO Bill (BillID, RegistrationID, TotalFees, PaymentDueDate, Status) VALUES (@bid, @rid, @total, @duedate, @status)", …

Web Development asp.net
Member Avatar for gahhon
0
120
Member Avatar for riahc3

Hello I want to do a indexOf but of certain special characters such as variable.indexOf(''')==-1) variable.indexOf('/')==-1) variable.indexOf('')==-1) variable.indexOf('"')==-1) etc, etc. How can I do this?

Web Development javascript
Member Avatar for pritaeas
0
74
Member Avatar for HunainHafeez

how to redirect paypal sandbox to localhost (asp.net's ) after successful transaction ? is it possible ? silly question but may be ....................

Web Development asp.net
Member Avatar for kvprajapati
0
188
Member Avatar for diafol

Hi All, not the usual, "how can you help me" thread, but a heads-up on a templating engine I've been using for a while called RainTPL. A few users have posted threads of late asking about templates. I thought I'd give this one a plug, especially as Federico (the author) …

Web Development php
Member Avatar for rajppd
0
964
Member Avatar for Tinnin

Hi all! I'm putting a contact form together to receive emails. It is giving the appearance of sending the form data through to my email address (i.e the "thank you" message appears) but nothing is coming through. I'm not sure if I have incorrect html in my form or if …

Web Development php
Member Avatar for Tinnin
0
144
Member Avatar for Farhad.idrees

guys i have for buttons in html form...edit, back, submit, reset but the problem is how to go back to previous page....i m performing this using onlick event but not working... my code is.... <form method="post" action="" enctype="" name="Qform" onsubmit="return validateForm(this); "> <div class="centerform" > <div id="divbox"> <label id="label">Name : …

Web Development javascript
Member Avatar for Farhad.idrees
0
158
Member Avatar for TIM_M_91

Ok so I have a class called DBdatabase.cs which stored all my sql queryies, what I am trying to do is execute an update statement that updates the users password through the session however when I execute the statement nothing occurs what am I doing wrong? Also Please note that …

Web Development asp.net session sql
Member Avatar for TIM_M_91
0
99
Member Avatar for bimaljr

Hello, I have a website in Wordpress. Example: http://www.mysite.com Than I developed a new theme for the website and I have created a new directory on server for developement and testing only. The URL is http://www.mysite.com/newsite/ Now Google scanned my this testing website and added URL from it. So google …

Web Development php wordpress
Member Avatar for bimaljr
0
124
Member Avatar for cussel

>hi guys, how to get first and last (key and value) array multidimesional below? $data1 = array( array( '0'=>array( '7'=>'chelsea', '8'=>'everton', '9'=>'villa', '10'=>'liverpool' ), array( '23'=>'milan', '24'=>'inter', '25'=>'juventus', ), ), '1'=>array( array( '53'=>'madrid', '54'=>'barcelona', '55'=>'altetico', '56'=>'everton', ), array( '243'=>'milan', '244'=>'inter', '245'=>'juventus', ), ), '2'=>array( array( '523'=>'madrid', '524'=>'barcelona', '525'=>'altetico', '526'=>'everton', ), …

Web Development php
Member Avatar for diafol
0
386
Member Avatar for johndohmen1963

Hi hope someone can help me with the following $query3 ="SELECT * FROM narr_turnier_bambini_garde UNION SELECT * FROM narr_turnier_bambini_garde_ster WHERE id_turnier_jaar = ".$idturnierjaar." order by rang, meestepunten DESC"; The WHERE clause dosn't work what i want because it give me all the rows from both tables and column id_turnier_jaar is …

Web Development php
Member Avatar for johndohmen1963
0
172
Member Avatar for Tko_1

Hello im sry if i have any of this code wrong, im not very good at Javascript. so basically i have a ChgText() which works fine althou it replaces the whole field of my text area. how would i go about changing this code so i could have it just …

Web Development javascript
Member Avatar for Tko_1
0
144
Member Avatar for ehpratah

Hi All Just have a question I'm having difficulties in displaying my data in Desc..cant find where i need to put the DESC in my query this is the code function.php <?php function pagination($query, $per_page = 10,$page = 1, $url = '?'){ $query = "SELECT COUNT(*) as `timestamp` FROM {$query}"; …

Web Development display php
Member Avatar for ehpratah
0
176
Member Avatar for eman neercs

This is the second part of a script. It gets the EAN from the form in the first part. Where there are sales, it will show total number but if not I want to show a message to say "none" or "No Sales". Don't quite get the else/if errors. Could …

Web Development php
Member Avatar for urtrivedi
0
158
Member Avatar for stephen_UK

For reason I won't bore you with, I need to update an archive database periodically with typically blocks of 100-300 records. Each record has 6 visible fields in the database. Frequently 4 of the 6 fields have the same information in them for the whole block of data. For a …

Web Development php session
Member Avatar for stephen_UK
0
253
Member Avatar for HunainHafeez

i have an ajax Calender extender along with textbox in gridview, it works fine, when i select some date from calendar then it tranfers date to textbox and after clicking Update button in gridview , it sends date to database , Fine but when i don't select any thing from …

Web Development asp.net mssql
Member Avatar for JorgeM
1
268
Member Avatar for LastMitch

Hi I'm having issue of understand how to **echo** a variable when the `class` is `extended`. I have **2** files. This is my **index.php** file: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>OOP Example</title> <?php include("class.php"); ?> </head> <body> <?php $mitch = new person("Mitch Last"); echo "Mitch's full …

Web Development php
Member Avatar for LastMitch
4
307
Member Avatar for while(!success)

Hi guys, I'm defining my dropdownlist in my codebehind and it continues to crash when when I bind the dataset to the actual dropdownlist. here is the aspx file: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="_332_Final_Proj.WebForm1" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <%-- <link href="~/Content/StyleSheet1.css" rel="stylesheet" type="text/css" />--%> </head> …

Web Development asp.net dataset html-css
Member Avatar for pritaeas
0
4K
Member Avatar for hwoarang69

i am trying to store image in folder and 2nd part is store image name in database. this works fine but the problem is that no matter how many images u upload, there is only one image in folder name 0.jpg. $sql = mysql_query("SELECT * FROM item WHERE image_user_name = …

Web Development image php
Member Avatar for diafol
0
179
Member Avatar for gahhon

{ conOOC.Open(); SqlCommand cmdDisplay = new SqlCommand("SELECT * FROM [Course] WHERE ([CourseID] = @id)", conOOC); cmdDisplay.Parameters.AddWithValue("@id", ddlCourseList.SelectedValue); SqlDataReader dtrDisplay = cmdDisplay.ExecuteReader(); while (dtrDisplay.Read()) { GridView1.DataSource = dtrDisplay; GridView1.DataBind(); } this one is depends on user select which items on the dropdownlist, once they have selected should display the gridview, but …

Web Development asp.net
Member Avatar for k.d.m
0
86
Member Avatar for doha786

i'v 1 multidimensional array from where i just want to print where (parent==0) by counting. It suppose to provide me 2 value but when i write return method on line-32 it show me d 1st one & whn write on line-35 , it show me the last one. how can …

Web Development php
Member Avatar for rotten69
0
158
Member Avatar for HunainHafeez

<asp:TemplateField HeaderText="Interview Date"> <EditItemTemplate> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <ajax:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1"/> </EditItemTemplate> </asp:TemplateField> this gives me an error, when i click on EDIT button in gridview, even ajaxtools are installed and work when i use them simply, Could not find any resources appropriate for the specified culture or the neutral …

Web Development asp asp.net assembly javascript
Member Avatar for HunainHafeez
0
1K
Member Avatar for nnehadixit

hi friends, here is my problem i'm designing a page with no. of checkboxes but not able to insert its value in mysql... here is my php code: **<?php $host="host"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="packtest"; // Database name $tbl_name="test"; // Table name // …

Web Development html-amp html-css mysql php printer
Member Avatar for nnehadixit
0
308
Member Avatar for seanmc23

Hello, All ... I have an HTML file which contains pages of formated text, all within a <p> tag, which has an onclick call to a jscript function. This function gets mouse cursor position at the click event, then passes this position to elementFromPoint(pos.x,pos.y) to return my element object, which …

Web Development javascript
Member Avatar for Seyferx
1
2K
Member Avatar for HunainHafeez

i am having problem see, in gridview , i am displaying username, email and shortlist(checkbox), when i click on UPDATE button , then if checkbox has been ticked (selected) then it send email to person , (email address picked from same row) but i want to send interview time/date to …

Web Development asp.net client-server sql
Member Avatar for JorgeM
0
359
Member Avatar for bikertz

I am reading data from a mysql database and displaying it on a web page for the user to make changes. One of the values that I am getting from the database is to be displayed in a Select tag: Manufacturer: <select name="Manufacturer" tabindex="1" > <option></option> <option>Aprilia</option> <option>BMW</option> <option>Moto Guzzi</option> …

Web Development display mysql php
Member Avatar for bikertz
0
641
Member Avatar for hwoarang69

i am trying to store image in a folder and getting a error. it say undfine variable my clearly the variable is difined in html code(input type = file) Notice: Undefined index: image_file in C:\xampp\htdocs\E_COMMERCE\additem.php on line 82 line 82: move_uploaded_file($_FILES['image_file']['tmp_name'], "IMAGE/ITEMS/$image_name"); <input type ="file" name="image_file" id="image_file" class='file'/> //place image …

Web Development php
Member Avatar for Bob Hensley
0
213
Member Avatar for hwoarang69

<?php if(isset($_POST['additem_button'])) $sub_category_p = isset($_POST['sub_category']); if($main_category_p == "Choose..."){ $main_category_p = ""; } echo "$main_category_p"; ?> <select name = 'main_category'> <option value="Choose one">Choose...</option> <option value="Apparel">Apparel</option> <option value="Home Decor">Home Deco</option> <option value="Beauty">Beauty</option> </select> it doesnt echo out any thing. no matter which option i chlice in select.

Web Development php
Member Avatar for Bob Hensley
0
193
Member Avatar for hwoarang69

if(!$email_p) { $forgot_error .= "Error - Enter your email address"; } else if(preg_match( "/[a-zA-Z0-9-.+]+@[a-zA-Z0-9]+.[a-zA-Z]+/", $email_p) < 0) { $forgot_error .= "Invalid e-mail address"; } i want to make sure email that user enter is right format. but for some reason it never goes in else if statment. can some one …

Web Development php
Member Avatar for Bob Hensley
0
133
Member Avatar for mpc123

Hi I have been struggling with this for a while and cant find the answer, the code below shows my else if statement everything goes fine until using the else if statement and ' . $img . ' ends up being blank. It should be if field 4 is 0.00 …

Web Development php
Member Avatar for mpc123
0
111
Member Avatar for xbat

How would I change the folder path in this? or what would be the best way? `(file_exists ($this->jam.'.txt'))`

Web Development php
Member Avatar for xbat
0
169
Member Avatar for mpc123

Hi I am trying to join tables and fields and one of the tables had fields like field.field . So when I try to do a join it does not know the table field name as you end up with something like Table1.field.Name How do I get round this please …

Web Development php
Member Avatar for mpc123
0
116
Member Avatar for bops

Hi, I have quite a large CSV file (Around 20,000 rows with about 20 columns) that I am trying to manipulate. Initially I am looking for a way to get out the first 10 or so records after they have been sorted in ascending order on one of the numeric …

Web Development php
Member Avatar for bops
0
1K
Member Avatar for OsaMasw

Hello buddies , I have no Idea what is subquery, every time I tried to link two tables in one sql query I failed here is the scenario I want: in this pic I have posts with "**user_id**" only I need to show the username which stored on another tables …

Web Development mysql php sql
Member Avatar for simplypixie
0
945
Member Avatar for PierreJ

Hello Everybody, I just join today, and this is my first post. I know how pass and receive variables thru URL like [url]www.mysite.com/index.php?var1=ABC&var2=QWERTY[/url] This is OK but what i'd like to know if we can use something like this: [url]www.mysite.com?username[/url] or [url]www.mysite.com/username[/url] but username will change for every user. And …

Web Development php
Member Avatar for dw_user
0
3K
Member Avatar for xbat

Ok So I have seen a few things.. But is there anything that goes into depth more but sort of squared away... From what it looks like if you develop something in mysqli - it will be faster mysql pdo - works with a bunch of other databases.. I found …

Web Development api mysql php
Member Avatar for veedeoo
0
223
Member Avatar for HunainHafeez

i want to grab "DataValueField" of dropdownBox and want to use it in INSERT statement , so how ? i have already filled my Dropdownbox in grid view now want to get DataValueField and using it in insert statement , how ?

Web Development asp.net mssql
Member Avatar for JorgeM
0
208
Member Avatar for Farhad.idrees

Hi.. i used Jquery in order to add date time picker calender in my site succesfully.. i just want to decrease size of calender because its showing big calender according to my form.. here is code and snapshop url http://tinypic.com/r/2ajzymx/6 <!--Calender Start--> <link rel="stylesheet" href="htp://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" /> t<script src="http://code.jquery.com/jquery-1.8.2.js"></script> <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script> …

Web Development javascript
Member Avatar for code739
0
170
Member Avatar for hwoarang69

so i have two files index.php and footer.php. and i want to add a jquery script to my index.php. so i did this and it works fine: index.php <html> <body> <script type = "text/javascript" src = "JQUERY/jquery.js"></script> <?php include("include/footer.php"); ?> footer.php <script type = "text/javascript" src = "JQUERY/jquery.js"></script> </body> </html> …

Web Development javascript-jquery
Member Avatar for jstfsklh211
0
160
Member Avatar for hwoarang69

here is what iam trying to do. there is a textfield. which has a watermark in it(js code). so it will say "Enter Username". so user will enter username in it but if somethig go wrong than it should save the value in textfield(php code). <input type="text" name="username" id="login_username" class="field" …

Web Development php
Member Avatar for jstfsklh211
0
123
Member Avatar for gahhon

private void getStudentInformation() { SqlConnection conOOC = new SqlConnection(ConfigurationManager.ConnectionStrings["OlympiaOpenCollegeDatabaseConnection"].ConnectionString); SqlCommand cmdSelectStudent = new SqlCommand("SELECT l.LearnerID, l.Name, l.Email FROM Learner l, Registration r WHERE l.LearnerID = r.LearnerID AND r.RegistrationID = @registerID" , conOOC); SqlDataReader dtrStudent; conOOC.Open(); cmdSelectStudent.Parameters.AddWithValue("@registerID", "R001"); dtrStudent = cmdSelectStudent.ExecuteReader(); while (dtrStudent.Read()) { lblStudentID.Text = dtrStudent["l.LearnerID"].ToString();[Note: Error Occured] lblStudentName.Text = …

Web Development asp.net
Member Avatar for AleMonteiro
0
461
Member Avatar for Farhad.idrees

HI i have many fields in form....i want to check if anyfield is null so i want to do alert mesege also want to change the colour of text field....i have written a code but no error but not working anything...my code is for java scritpt function validateForm(Qform){ var i=0,Q= …

Web Development javascript
Member Avatar for Farhad.idrees
0
332
Member Avatar for coder91

Hi, I have code that increments values protected void IncrementOccur_Click(object sender, EventArgs e) { if (Page.IsValid) { //build object to insert occurrance Ad a = new Ad(); a.AdID = Convert.ToInt32(ddlAddtype.SelectedValue); a.AdRef = Session["SessAppRef"].ToString(); a.AdOcc = 1; try { //insert advert object into db AdManager.InsertAdOccRef(a); //rebind the gridview GridViewHistory.DataBind(); //reset the …

Web Development asp.net session
Member Avatar for coder91
0
351
Member Avatar for gahhon

I am trying to implements a Silverlight object into my ASP.NET Webform due to assignment requirement. so i've decide to implements photo into the webform, but i found a problem which is the JS runtime error.. but i don't where do i code wrong because i am follow the guideline …

Web Development asp.net
Member Avatar for gahhon
0
119
Member Avatar for gahhon

Assume that i have 2 .aspx page (From.aspx and To.aspx) and i have a hyperlink control inside the From.aspx which navigate to To.aspx and i used javascript to open a new window.. so now i have a Label inside From.aspx which have text = 1000. and i want pass it …

Web Development asp.net
Member Avatar for gahhon
0
172
Member Avatar for doha786

today 1st time i'm trying ot learn recursion funtion thru online tutorails but stuck at begining stage. i found below code but anything i give value its provide me output: 1 so, i need better explanation of that: function factorial($n){ if($n==0){ return 1; } return fact($n, 1); } function fact($i, …

Web Development php
Member Avatar for blocblue
0
91

The End.