52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for matt.clark.228

I have on my website: index.php members/login.php members/redirect.php What i am trying to do is i have login point to redirect passing the login info from login.php. in redirect.php I want it to set all of the session variables that i will need everywhere else in the site, however, using: …

Web Development php session
Member Avatar for smantscheff
0
129
Member Avatar for VanHackman

Hello, I need some help. I have a MySql DB, and some fields have Japanese values. DB collate is set to: utf8_general_ci When I check for a specific register with PhpMyAdmin, values with japanese characters display ok, but when I try to get the same register to show it using …

Web Development html-css mysql php
Member Avatar for smantscheff
0
2K
Member Avatar for dhairyaguptha

<html> <body> <div align="center"> <form name="imageTest"> <input type="file" name="myImage" size="30"/> <input type="button" value="Preview!" onClick="previewImage(document.imageTest.myImage,'replaceMe')"/><br> <img src="MyImg.jpg" name="replaceMe" id="replaceMe"/> </form> </div> </body> </html> <script language="javascript"> var imgRe = /^.+\.(jpg|jpeg|gif|png)$/i; function previewImage(pathField, previewName) { var path = pathField.value; if (path.search(imgRe) != -1) { //document[previewName].src = document.imageTest.myImage.value; document.getElementById("replaceMe").src = document.imageTest.myImage.value; } else { …

Web Development javascript
Member Avatar for Agarsia
0
170
Member Avatar for rajeev_vlal

hey....frens can you help me. ..!! my frens and i were thinking if we should use grid view to get and display the blogs from the database...or if there is any other suggestion for us to do to get better result pliz do reply....help needed...

Web Development asp
Member Avatar for danceo0
0
89
Member Avatar for Brianbc

[CODE]<?php /* +-----------------+------------------------------------------------------------+ | Class | setup | | Author | Brian Onang'o | | Version | 1.0 | | Last Modified | 10:16 AM 10/2/2010 GMT+3 | +-----------------+------------------------------------------------------------+ | This program is free software; you can redistribute it and/or | | modify it under the terms of the GNU …

Web Development mysql php
Member Avatar for Brianbc
0
239
Member Avatar for TheIdiot

I keep getting a syntax error in this code and I need a new set of eyes to show me what I am doing wrong. It is coming back and saying that I have an unexpected } on line 36. [CODE]<?php require_once("config.php"); //Connect to mysql server $link = mysql_connect(DB_HOST, DB_USER, …

Web Development php
Member Avatar for TheIdiot
0
153
Member Avatar for emily-bcot

Hi, My application is on the shared Hosting.I've encrypted my Connection String programmatically to make it secure. However, the hacker still is able to decrypt the encrpted Connection String adding scripts into the DB. Just wondering if there is a way to solve this problem? Many thanks !!!

Web Development asp.net
Member Avatar for kvprajapati
0
117
Member Avatar for erum

i m getting an error related to ajax see an image .although file is running on local but not on server any urgent reply is hghly appreciated !!

Web Development javascript
Member Avatar for erum
0
68
Member Avatar for LizAE

Hi! Just a quick question: I am using "Website Tonight" to redo a site for my boss. He wants a "floating TOC" on one page. So, when you scroll down the ridiculously long page, the categories on the righthand side move with you. (I wouldn't mind that, but I'd prefer …

Member Avatar for LizAE
0
188
Member Avatar for ptara1

I'm trying to search a mysql table column for a number. However when I enter a number into the search form I get told that no query has been entered. Here is my code. Database connection information left out on purpose. [CODE] <?php if(isset($_POST['submit'])){ if(isset($_GET['go'])){ if(preg_match("/^[ a-zA-Z]+/", $_POST['search'])){ $search=$_POST['search']; $db=mysql_connect …

Web Development mysql php seo
Member Avatar for smantscheff
0
79
Member Avatar for TheIdiot

I am wanting to create an online attendance sheet that would allow users to log on and use check boxes or option buttons for twelve weeks corresponding to wk1, wk2, wk3, etc... I have no problem retrieving the members of the group (records from db) but do not know how …

Web Development mysql php
Member Avatar for shdwmage
0
128
Member Avatar for Imratzio

Hey everyone I was hoping if you can help me fix errors on a admin login form im using. Heres the code [CODE]<?php session_start();//works with session cookies, helps have persistant data i.e. if user is not logged in there will be no session variable if(isset($_SESSION["manager"])){//if it does not set session …

Web Development html-css php session
Member Avatar for Imratzio
0
226
Member Avatar for dschuett

Hi all! I am working on making a dashboard for the inventory of our trucks. I'm having some problems with figuring out how to calculate the percentage of the total SUM of trucks per MAKE without running two different queries. You can see below what I have working this far, …

Web Development php
Member Avatar for diafol
0
165
Member Avatar for elson.james

Hi everyone, I'm having a problem on passing values from my combo box. Let me show you first my code. I have 2 files [B]test.php and view.php. [/B] This is what's [B]inside the test.php[/B] [CODE] while($row = mysql_fetch_array($strSQL)){ $data .= "<tr>"; $data .= "<td>"; $data .= "<input type='checkbox' class='memberchk' name='membersID[]' …

Web Development php
Member Avatar for sudeepjd
0
161
Member Avatar for jmcgranahan

I have searched and search for a simple solution to my problem but alas, I have had no luck, so I am turning to this forum for assistance. If you are familiar with Google Gadgets and AJAX, then this question is for you. I am trying to create a Google …

Web Development google javascript seo xml
0
204
Member Avatar for puvi

hiii ppl of the forum.. I have this date field in the form, i managed to get the calender script work, when i select the date, it appears properly in the text field, but on cliking submit, it gets stored as 0000-00-00 in the database. any idea frens what is …

Web Development javascript
Member Avatar for puvi
0
97
Member Avatar for ditty

Hi i have a news table. I am using the query "select * from news_table where news_id in(8,3,6,1)". This query is working properly. But the problem is i need to return the rows in the same order what we give in the 'in' clause. ie, first record with news_id 8 …

Web Development mysql php
Member Avatar for mahavir123
0
90
Member Avatar for thijscream

hey, it has been a couple of months since i have been here, and let's get strait to the point. someone told me you can change the page title of a dynamic link with the .htaccess file. for example i have a page. [url]http://www.mywebsite.com/page.php?id=1[/url] i include this page for different …

Web Development apache php
Member Avatar for smantscheff
0
2K
Member Avatar for sea

Does anyone have an example of how to disable PHP Safe Mode for a specific directory? My PHP is configured as an Apache module. Thank you

Web Development apache php
Member Avatar for karmafunk
0
1K
Member Avatar for veledrom

Hi, How does a barcode reader stores barcode data? I heared that it stores as simple txt file. Let's say I've scanned 5 barcodes. Does it create 5 individual txt files with info in them or Does it create only one txt file and store information related to the all …

Web Development php
Member Avatar for pritaeas
0
91
Member Avatar for styleest

Hi all, Please i need a javascript that displays a calender with only date without time so that the user chooses the date. Thanks in anticipation

Web Development javascript
Member Avatar for styleest
0
65
Member Avatar for benjaminFowl87

The easy slider found here. [url]http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider[/url] I have it set to slide automatically and continuously however when you click previous or next and leave it, the scrolling will stop. Has anyone implemented something to make it so that the sliding continues or know of a way to do it. Any …

Web Development javascript javascript-jquery
Member Avatar for benjaminFowl87
0
351
Member Avatar for ricvik

Hi, I have implemented an Ajax object - a div containing another ASP file which can be updated dynamically. This ASP page has a number of checkboxes. Is it possible to use JS (or any other tool) to check the checkbox status (i.e. like javascript's [CODE]if (field.checked)[/CODE]) from the containing …

Web Development javascript
Member Avatar for ricvik
0
193
Member Avatar for fluffybunny69

Hi guys, I am new to javascript so thought I's post here for some advice. I'm trying to complete a simple keyword search where the keyword is forwarded on the end of a url. I have this working-(ish), but at the moment it's doing this: 1. Add keyword and hit …

Web Development javascript
Member Avatar for fluffybunny69
0
175
Member Avatar for jackparsana

I have a Problem regarding wordpress Redirect. I have panel in Right-side in this there is one form page. its for contact mailing. In this form i have submit button. when i click on the submit button i want to get the thanks page on the left side body contain. …

Web Development http-protocol php wordpress
Member Avatar for jackparsana
0
197
Member Avatar for rohit b k

hi guys, My project is based on online shopping so admin is the of the users of our s/w we want to provide an option of storing images of newly introduced products along with all details through a form.. and when customer logs in he should be able to view …

Web Development php
Member Avatar for smantscheff
0
100
Member Avatar for Silenta

Am trying to get a php script working. I have done a few reviews and corrected a few errors but it doesnt seem to work properly still. Its a quote script and instead of picking up a random quote its picking up all of them. I have tried amending the …

Web Development php
Member Avatar for Javvy
0
104
Member Avatar for ridzii

hi i have a species database (php/mysql) with more then 1000 species in it. each species has multiple localities. i want to show these localities on a map for each species. is it possible to directly pull the data from the database and plot these points. i want to know …

Web Development php
Member Avatar for pritaeas
0
154
Member Avatar for sancti

hi all, I am developing a web application. I have written one function in .aspx file. Now i want to call that function from the .aspx.cs file. How can I do this? Can anybody help me regarding this? thanks in advance

Web Development asp.net
Member Avatar for guptanitesh1988
0
2K
Member Avatar for McLaren

Have no idea how such simple thing can not work :( [CODE]<form action = "<?php echo base_url()?>admin_/groups/preview" target = ""> <strong>Pavadinimas: </strong><br> <input type="text" name="title" /><br><br> <strong>Tekstas: </strong><br> <textarea name = "text" cols = "90" rows = "90"></textarea><br> <input class = "save" type="button" name="submit" value = "IÅ¡saugoti"/> <input class = …

Web Development php
Member Avatar for McLaren
0
282
Member Avatar for umamahesh2020

[CODE]Server Error in '/' Application. Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object …

Web Development asp.net xml
Member Avatar for umamahesh2020
0
138
Member Avatar for bjeffries

I know there a quite a few of these on google but, either im not searching correctly, or they dont do what I want. I feel what I want is very simple, but I know pretty much nothing about javascript. I want to create a loop through the entire linking …

Web Development javascript
Member Avatar for Javvy
0
198
Member Avatar for jmwmulle

I'm an amateur web developer trying to move toward more professional coding practices, and I'm making my first site that makes extensive use of ajax. I've used the xmlHttpRequest object on a few occasions, for which simply creating functions as I needed them were adequate. But the site I am …

Web Development javascript oop xml
Member Avatar for jmwmulle
0
236
Member Avatar for ebanbury

Hello I am trying to create a one-field search form with fields that match fields in a database, carry out a search for records which match the word put in the search button, and show the results in a table on the same page. I have got myself a bit …

Web Development php
Member Avatar for Javvy
0
255
Member Avatar for brightline

I am using Enterprise Library 4.1(October 2008) and I am trying to use DBCommandWrapper but I can't find it I had added the following references: [code=asp.net]Imports System.Data Imports Microsoft.Practices.EnterpriseLibrary.Data Imports Microsoft.Practices.EnterpriseLibrary.Data.Sql[/code] I wrote the following code: [code=asp.net]Dim db As Database = DatabaseFactory.CreateDatabase() Dim objDBCommandWrapper As DBCommandWrapper = db.GetStoredProcCommandWrapper(sqlCommand)[/code] but when …

Web Development asp.net
Member Avatar for gtaalbi
0
176
Member Avatar for MagicMedia

I'm creating a forum like this one and I need to display my topics by last post. I want to create it so that the topic gets bumped back to the top whenever someone adds a new reply, like most forums including this one. I have a timestamp on both …

Web Development mysql php
Member Avatar for MagicMedia
0
159
Member Avatar for ujjval dave

hey, i have problem with paging,i need to use two tables to fetch data. i am submitting my developed code. i hope some body will help me. [CODE] mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("dummy1") or die(mysql_error()); $START=$_GET['start']; if(!$START) { $START=0; } $data = mysql_query("SELECT * FROM scrapmsg ORDER BY date …

Web Development php
Member Avatar for diafol
0
98
Member Avatar for shivarocks

Hello Friends... I am new to jsp and i need to edit a .doc file present in a server using jsp! i tried googling and i got to know about "apache poi". this is working great for opening a doc file and also for writing a doc file but my …

Web Development apache java-jsp
Member Avatar for shivarocks
0
501
Member Avatar for stultuske

for the moment, I'm working on a project where I have to apply filtering as used on one table (using the jQuery datatables plugin) to a next table (which is using the picnet.table.filter plugin). now, I have been able to retrieve the values used to filter from the original table, …

Web Development javascript javascript-jquery
Member Avatar for johnsteve.bravo
0
254
Member Avatar for andrewliu

I have an [B]ajax-register.php[/B] [CODE]include("connection.php"); if($_POST) { //form data $fname = mysql_real_escape_string($_POST['fname']); $lname = mysql_real_escape_string($_POST['lname']); $password = md5(mysql_real_escape_string($_POST['password'])); $confimPass = md5(mysql_real_escape_string($_POST['confirmPass'])); $email = mysql_real_escape_string($_POST['email']); $confirmEmail = mysql_real_escape_string($_POST['confirmEmail']); $dob = mysql_real_escape_string($_POST['dob']); // database $queryreg = ("INSERT INTO users (fname,lname,password,email,dob) VALUES ('$fname','$lname','$password','$email','$dob'"); mysql_query($queryreg) or die(mysql_error()); }[/CODE] Then I have my [B]register.php[/B] with …

Web Development javascript mysql
Member Avatar for johnsteve.bravo
0
239
Member Avatar for kischi

Hi, I'm kind of new to AJAX, but heard this might be the way to go for what I wanna do. I wan't to create a link, and when a user presses the link it's creating another text box underneath with some text in. so ofcourse there'll be multiple link …

Web Development javascript
Member Avatar for johnsteve.bravo
0
158
Member Avatar for robinthomas

Can anyone help me to find some questions for php practical interview test ? I need some question in the following pattern . 1) what is the output of the following program ? 2) Some tough multiple choice questions 3) Write a PHP program to ......

Web Development php
Member Avatar for mschroeder
0
194
Member Avatar for al2henry

I have created an .xml file with 2 items linking to 2 announcements/news stories on the Conservation News page that I intend to update frequently in the near future. This .xml file has been validated. I would like visitors to the page to be so entranced with the range of …

Web Development xml
Member Avatar for al2henry
0
267
Member Avatar for mdminternet

Hi guys, I'm not great with PHP and the guy I normally work with who does know a thing or too about it is on holiday. Currently, I'm having problems using a contact form mailer which returns the following error when it is sent. Warning: session_start() [function.session-start]: Cannot send session …

Web Development php session
Member Avatar for ko ko
0
203
Member Avatar for tcollins412

i am writing code and i keep getting the error: mysql_fetch_array: supplied arguement is not a valid mysql resource. here is the code: [CODE] <?php include"dbconnect.php"; $item=$_POST['item']; $query3="SELECT * FROM selling WHERE name LIKE %item% AND state='$state' LIMIT 0,30"; $result3 = mysql_query($query3); while($item = mysql_fetch_array($result3)){ echo "<img src='$item[pic]' alt='pic'><a style='color: …

Web Development mysql php
Member Avatar for ko ko
0
109
Member Avatar for ryathegr8

hi em doing BS.Software engineering, as its my last semester and want to take Final year project. em just confuse of what to take. i want to do something for my university but as i gone through my university systems they are hell complex. can anybudy suggest me. i want …

Web Development asp.net engineering
Member Avatar for ryathegr8
0
162
Member Avatar for fluffybunny69

Searched hours online to no avail. This should be fairly easy for anyone experience with PHP (aka not me!) All i'm trying to do is create a text search box and send button. 1. Users will add a keyword and click send. 2. Link to an external website that loads …

Web Development php seo
Member Avatar for ko ko
0
226
Member Avatar for designalex

Hi,i have a small problem with the following... a users posts a vehicle to the database, the form allows for posting with 3 images. when i display the form using a while loop i need to display the images, my problem is that i want to check 3 images 0r …

Web Development image php
Member Avatar for designalex
0
213
Member Avatar for raghujosh

I am developing an application wherein I have a JSP page with clickable links to all the 26 alphabets. In my database, I have data starting with all the alphabets. The way, I have(want to) structure the application is something like this. I click a alphabetical link, say A, it …

Web Development data-structure java-jsp
Member Avatar for raghujosh
0
295
Member Avatar for jakizak

I've seen over the last few days many people on the internet and various forums asking for how this is done. Now there is plenty of posts out there that explain how to do this. However I have yet to find one that explains how you work it into a …

Web Development mysql perl php
Member Avatar for jakizak
0
160

The End.