52,566 Archived Topics
Remove Filter ![]() | |
[code] mysql_query("UPDATE hostip SET time = '".date("d/m/y h:m:s")."' WHERE ipaddress = '".$ip."'"); [/code] Whats the problem in this query.... Its giving me syntax error... Web Development php | |
Hi guys..Good Day! I just want a little help why my dynamic image from mySQL database will not display in firefox but with IE it will. Ive created a table to hold the image where i only save the image path which was located in the server folder img. This … | |
this is a page of code on a Apache Tomcat server the error i get is the following : Eror :licenta\upload\Tulips.jpg (The system cannot find the path specified) project path is : ROOT\licenta [CODE]<%@ page import="java.io.*" %> <%@ page import="java.lang.*" %> <%@ page import="java.sql.*" %> <%@ page import="java.util.*" %> <%@ … Web Development apache file-system java-jsp | |
[CODE] <?php $tags = $_POST["search-tags"]; $age = $_POST["search-age"]; $rating = $_POST["search-rating"]; $city = $_POST["search-city"]; $state = $_POST["search-state"]; if (!$tags = "") { $tags = " WHERE `tags`='$tags'"; } if (!$age = "") { $age = " WHERE `age`='$age'"; } if (!$rating = "") { $rating = " WHERE `rating`='$rating'"; } … Web Development data-structure mysql php ![]() | |
Hello, I have done a PHP project and on my localhost it is working perfectly but when I uploaded it on my webspace the CMS part of my website did not work as it is supposed to. The strange thing is that the client side of the website is working … | |
I'm trying to create a tiles matching (memory) game. I'm a beginner and I'm confused how exactly to start on creating one dimensional array for sessions. The tiles should be at least 30 with text values. When the user select first tile (reveal the text) and then user select second … Web Development php | |
hi, what is the best password encryption to use on a website with mysql backend? i have used md5 and sha1 in the past however which is best? crypt? ◦RJINDAEL ? what is best to use? they wont be recovering the password only sent a new password if forgotten. so … Web Development apache client-server cpanel encryption php | |
Here is my code, I dont receive any error, but Im unable to set cookie Tried using of OB_START too. Thanks in Advance. [CODE]<?php include ("../includes/dbcon_.php"); $login_chk_sql = mysql_query("SELECT * FROM TCustomer WHERE UsrName = '$_POST[lusername]' AND LoginPwd = '$_POST[lpassword]'"); $login_row = mysql_fetch_array($login_chk_sql); if ($login_row['IsLoginActivated'] == "N") { header( 'Location: … Web Development php | |
Hi Guys, Another puzzle for someone to try and crack... I have two divs inside the <body> that basically act as two versions of the same page. I need PHP to call one based on a variable retrieved from a database. As it stands, this is what I have... [CODE] … | |
Im really stumped on trying to format user input. I have an input box where users enter data separated by commas. Then I explode it: [CODE] $data = $_POST['data']; $words = explode(',', $data); [/CODE] then I'm analyzing each word. Everything works perfectly when you enter the data correctly. However, if … ![]() | |
The best way to describe my problem is with an example... Consider, [CODE] $content = "This is a string <kjfkldsjf> <jslkdjfksd>"; [/CODE] What I want to do is clear everything in between the <...> tags no matter how long the length of text in between the left and right arrows … | |
Hi there heres the script [url]http://www.dynamicdrive.com/dynamicindex3/leaves.htm[/url] it works fine in IE but doesnt work at all in Firefox, can anyone tell me how I can get it working in firefox. Best Regards Monit Web Development javascript | |
I need a php code for company house XML gateway.... can any one send me... I need it tooo much .. plz help | |
I have what will, I'm sure, turn out to be a very simple calculation but I'm drawing a blank... Too many years since High School I think What I have is a table that maintains positions and these positions are stacked, with each successive row containing twice as many positions … Web Development php | |
Hi I am using Lytebox v3.22 and I am trying to find a way to add a link on the popup. At present the link only appears on the thumbs page and is only dimly visible when a popup image is selected. I am using document.write. Although clicking on any … Web Development image javascript seo | |
I have got everything right and my project is compiling. But I am experiencing problem with servlets, when I right click on a servlet and click on run in netbeans then I get following two error: 1) Class "Servlet1" neither has a main method not it a servlet specified in … Web Development java-jsp java-netbeans | |
I am using master page a header(user control).I am using one dropdownlist in content page and a button in header .i need two form tags run @ server that is not possible. I am accessing the value from of textbox on header through public property, I need this value for … Web Development asp.net | |
Hi. I have an AJAX code which sends requests to multiple .php files in the server. All the files (that I send request) are using the same Db class and I think using sigleton pattern will help me out. But now I doubt that everytime I send request it creates … Web Development php | |
Hey. Im wondering how I would style the bottom row in a while loop. Can someone please help. How do I find the highest count and then if statement on my posts div. [CODE] <?php $query="select * from posts order by id desc"; $result = mysql_query($query); $i = 0; while($row=mysql_fetch_array($result)) … Web Development php | |
I have a form with a text field where some text is entered and is sent across using the GET method. But instead of a traditional submit button I'm using an image and I want that to do the function of the submit button. A simple <a href="file.php"><img src="image"></img></a> can … Web Development php | |
Hey everyone, So I've looked and tried to figure out how to get the user to "log in" before accessing a page. However I've seen where you send the user to the log in page if he or she has not log in but what about if the person has … Web Development php | |
hi Is this possible to send a request to servlet from socket client? I use request.getInputStream method to get client request. I got an error HTTP/1.1 400 Bad Request Server:Apache-Coyoyte/1.1 Transfer Encoding:chunked Date:Fri,04 Nov 2011 Connection:close How can I achieve my task?? Web Development apache client-server java-jsp | |
Hello I am having trouble running a form validation this is what I need to do:" Create a Web page that meets these specifications: 1. Revisit the grade average calculation program. Name the file validgrade.html. You will validate each of the grades to make sure it is present and that … Web Development javascript web-browser | |
Learning about asp.net slowly, but surely. I have a question for those much more experienced than I. How do I make one of the items in my checkboxlist automatically selected upon page load? The items in my checkboxlist come from a SQL DB and I want one of the fields … | |
![]() | i have this code here (simplified it a bit for this but you get the idea!) and i have assigned the name field of a select tag with a value of a variable so that when i click the Update button i can use _POST[name_var] to get the value of … ![]() |
I have a basic page which has a PHP form. It creates a record and uploads a picture. When they user clicks submit, I need it to display a "loading" notice of some description. I was using this: [CODE]<script type="text/javascript"> var ray={ ajax:function(st) { this.show('load'); }, show:function(el) { this.getID(el).style.display=''; }, … Web Development javascript | |
Hello guys, im using javascripts in my index page. For navigation hovering, slideshow and the other one is for displaying inline content in a form of a lightbox. But the problem is they cant seem to work together. i have to remove the inline content JavaScript for the slideshow and … Web Development javascript | |
Hi have to pass the values in the first five text box's to the second five text box's,nearly have it [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <script> function transfer() { var myArray = []; var txtBoxs1 … Web Development javascript | |
Hi there. I have a simple textarea tag built and also a very simple script which inserts the text of the text value into textarea . Please copy and paste that to understand what I mean . And when you submit send button the new inserted line pushes all others … Web Development javascript json | |
This is homework and I need help if someone is willing to help. I cannot get the 2 getElementById functions to work and I am a beginner so I am sure it is something simple but I have not been able to fix it. I need to click on the … Web Development html-css javascript | |
I have a problem making a select tag in php code dynamic. I'm creating a website (homework) using php and connecting to an oracle database which has all the info needed. Each agency has a list of vehicules. I created a select option tag for agencies and for vehicules. I … | |
Hi Guys! I have a category name and a post_title in different table. i fetch all category and the post_title in my index let say my category name is "sport" then my post_title is all about sport now proceed to the code i used the query of inner join for … Web Development php | |
Hi there. I am developing an application in which I am using AJAX and PHP. Lets say from my initial.php files I am making request via AJAX to ajaxResponse.php file where I execute some code and interact with MySQL .Since I am handling with dtabase I am using my written … Web Development php | |
I have a page it is working fine but header function is not redirecting onto another page, it stuck. When I enter the url then its works.. Here is my code.. I changed my server recently [CODE] <?php include "../dbconnect/cnn_mysql.php"; if($_POST) { $doneurl=''; if(array_key_exists('doneurl',$_POST)) $doneurl=$_POST["doneurl"]; else $doneurl=$_SERVER['HTTP_REFERER']; if(true)//$doneurl=="") $doneurl="mykpojobs.php"; // … Web Development php | |
Can anyone help me how to load an external page into a <div> tag? I've search the internet and still no answers.. please give me an example.. I have not started a thing yet... Web Development javascript ![]() | |
Hello everyone.. How to print web page in PHP without Header and footer when print button is clicked by user Thanks in advance Web Development php | |
Hi, i am trying to create my login script for my website, however when i enter my details it does not do anything, it just goes to the same screen. I have used the same script roughly as i used for another website of mine, but i cannot figure this … | |
I have a Java Script loop which will be polling if any child windows are closed. The code is working fine in all versions of IE in the local system. But when we invoke the application via CITRIX and IE6 then we are getting the PERMISSION DENIED error. and the … Web Development javascript | |
How to add sub menus that should appear on mouse click and should disappear on mouse click. [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Blurry Menu</title> <style type="text/css"> body { background: #1a1a1a url(bg.jpg); } #blur { position: relative; top: 50px; … Web Development html-css javascript | |
Hey everyone, What i'm doing is building a step through form that will basically store relational keys between databases. I begin by storing Information about the individual asking about the program, I then want to query the table this was stored in to get the Unique ID that is being … Web Development asp.net | |
I have an application that I modified from [url]http://offbeatmammal.com/upload_resize.aspx[/url] Can someone show me how to convert the vbscript UPDATE Query at the end to a DOT NET????? [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <%@ Page Trace="False" Language="vb" aspcompat="true" debug="true" validateRequest="false"%> <%@ Import Namespace=System.Drawing %> <%@ … | |
I have this script that is supposed to check if a number the user guesses is the same as the randomly generated number. Problem is that the random number generated at the start of the program keeps on changing everytime I click on the "Check if I'm right" button, the … Web Development html-css javascript perl | |
Hi guys I have some questions about this code: This is a contact form “template”, but I’m totally nob on this matter and I want to know how I can activate the button of send to send all the info to my email address and also how can I change … Web Development javascript | |
Hi everyone, I'm a beginner in working with PHP and I'm stuck with an annoying problem. With the help of a tutorial I've made a pagination for database results that works great. Now I'm trying to adapt the code and use the same pagination for a search-page on my website, … | |
Hi There; I have a problem during connection to a MS-SQL server. I copy the code there: [url]http://www.webcheatsheet.com/PHP/connect_mssql_database.php[/url] [CODE] <?php $myServer = "localhost"; $myUser = "Murat"; $myDB = "examples"; //Point 1 //connection to the database $dbhandle = mssql_connect($myServer, $myUser) or die("Couldn't connect to SQL Server on $myServer"); //Point 2 //select … | |
Hi i have a foreach loop, but it is just showing everything in one long line, so I wanted to put it in a table like this <table> <tr> <td>data1</td> <td>data2</td> <td>data3</td> </tr> <tr> <td>data4</td> <td>data5</td> <td>data5</td> </tr> </table> here is my loop: [CODE]<?php foreach( $products as $product ) { … Web Development php programming-construct | |
Hi, I insert into database with Submit button in same page. After clicking submit, i want whole page to be refreshed. How can i do it? Code is below and where can i add something to refresh after insert. Thanks [code] <form name="form1" method="post" action=""> ..... <input type="submit" name="Submit" value="Add" … Web Development javascript php | |
Hey Everyone, hope all good. i have a problem with some php that is not randomly selecting an ip. I will try to explain my problem below. I have a state form [CODE] <select name="State"> <option value="0" selected="selected">Select a State</option> <option value="AL">Alabama</option> <option value="AK">Alaska</option> <option value="AZ">Arizona</option> <option value="AR">Arkansas</option> etc..... </select>[/CODE] … | |
i posted on this earlier and with forum help get my function code to work as I want when I test it. But when I insert it into the php document I only get errors. The function is: [CODE] <?php function fix_it($name) { $name=ucwords(strtolower($name)); echo $name; } ?>[/CODE] The document … Web Development php |
The End.