52,566 Archived Topics
Remove Filter ![]() | |
hi,thank you for your attention.:P I am thinking of if there are some thing in php like event or trigger to inform another php file, :idea: that I'v just insert something into the mysql database . thank you for giving me some advices~ :) Web Development javascript mysql php | |
I have a problem creating a commentbox in PHP. I've created this commentbox from a simple tutorial and created a database with MySQL and it works fine. The only problem is, the table won't expand when more text than the quantity that can fit on 1 row is send. Instead, … Web Development php | |
[CODE]<form name="form2" onSubmit="validateForm2()" action="" method="POST"> <table> <tr> <td> <select name="smonth"> <!--some options--> </select></td> <td><input readonly="readonly" name="day" type="text" size="23"></td> </tr> </table> </form> <!--java script code --> function validateForm2() { <!--Things to do--> 1.check if both the fields are empty 2.if condition above is true then display error }[/CODE] Web Development javascript | |
Since this is only one customer, how can I carry this $total from the submit button to the next page for INSERT into database punches page [CODE] <p>Is this the correct total of punches?</P> <form action="run_punches.php" method="post" > <?php $small = $_REQUEST['smallamount']; $medium = $_REQUEST['mediumamount']; $large = $_REQUEST['largeamount']; $total = … Web Development php | |
Hi all, I have designed a website for my dj company which has a dropdown menu system, and directly under it is a image slider that auto slides different images. It looks and works Fine in Firefox Chrome, Opera, and safari, and internet explorer 8 & 9, however in internet … Web Development javascript | |
hello, I am trying to learn to create a login and log out profile. I am fairly new to php and web coding in general. I know the basics. I found a tutorial that logs you into a profile and then logs you out. I want to be able to … Web Development php | |
Hi guys i'm new to PHP, I have been doing a simple login system using php, and now I'm face with this error "Could not select database because Access denied for user ''@'localhost' to database 'loginsystem'" anyone knows how to fix this? Web Development php | |
hi everyone... not sure if this belongs here or in the javascript section as it uses both js and php? move it if needed. anyway....i have a script that pulls the faq results from my database and shows them in order of categorie. what im trying to do is use … Web Development php | |
Hi, I'm trying to built / link 3 drop down menu's: but I can't seem to get the 3rd drop down menu, and the answer below to work right. can someone please offer some guidance? [CODE]<body> <?php $p=$_GET["p"]; $q=$_GET["q"]; ?><br> <select onchange="window.open(this.options[this.selectedIndex].value,'_top')"> <option >Select Your Topic</option> <option value="?p=1" <? if($p==1){ … Web Development pay-per-click php | |
hi hi! I have encounter a problem that need to equal height in different classes. Currently I using this code from [URL="http://www.cssnewbie.com/equal-height-columns-with-jquery/"]cssnewbie[/URL]: [CODE]function equalHeight(group) { var tallest = 0; group.each(function() { var thisHeight = $(this).height(); if(thisHeight > tallest) { tallest = thisHeight; } }); group.height(tallest); } $(document).ready(function() { equalHeight($(".contentA")); equalHeight($(".contentB")); … Web Development javascript javascript-jquery | |
Hi all... Am hoping someone can show me what I have done wrong here. I had a form with two select lists and one set of checkboxes that needed to get completed.. all well and good and it worked fine but I have eveolved the system and added a condition … Web Development php | |
In the ZEND Reference Guide I saw this: [CODE]$select = $db->select()->from('posts')->order('date_created DESC');[/CODE] Now I'm wondering: what does that second arrow do? What does using more than one arrow when working with an object do? And can I use it all the times? For example [CODE]$myclass->function()->anotherfunction()->hello;[/CODE]? Web Development php | |
hi how can i include a range of numbered files like file1.php,file2.php,file4.php i have tried this code but it didn't work [CODE]<?php foreach (range(0, 7) as $fileno) { include "files/file" + $fileno + ".php";}?>[/CODE] Web Development php | |
I am trying following code for changing css attributes with the help of javascript, But its not showing desired output. Here is the code (trying on Chrome Browser) :- [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <style type="text/css"> div { width:100px; height:100px; background:red; position:relative; animation:myfirst 5s; … Web Development html-css javascript | |
How do we validate URL either with PHP/javascript? could u help me?for example, whether input text is in the format [URL="http://www.google.com/"]http://www.google.com[/URL] or not? Web Development google javascript php | |
Hi, i wanna select some details from db and i wrote select query and i punted it in the while but, i wanna show the details in the columns instead of rows is there any body to help me ???? [CODE]$brush_price = 5; $counter = 10; echo "<table border=\"1\" align=\"center\">"; … Web Development php | |
I want to make a linkpage where visitors can enter their webpage (title-url-description) and there are a few downloadable scripts around, but all I have found are for reciprocal linking. Does anybody have a simple php script for this purpose? Web Development php | |
Hi all, I'm trying to insert an array (which I've decoded from a JSON object) into a mysql database (for the first time!) and keep coming back with a "Could not connect - Column count doesn't match value count at row 1" error message. My server and database connections are … | |
[CODE] <?php echo $header; ?> <script type="text/javascript" src="view/javascript/ckeditor.js"></script> <p> </p> <p> </p> <p> </p> <div id="content"> <div class="breadcrumb"> <?php foreach ($breadcrumbs as $breadcrumb) { ?> <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a> <?php } ?> </div> <?php if ($error_warning) { ?> <div class="warning"><?php echo $error_warning; ?></div> <?php } ?> … Web Development php | |
[code=php] <?php include("C:/xampp/htdocs/mySalon/connect_database.php");?> <?php if(isset ($_POST ['username']) && $_POST ['password']){ $username = $_POST['username']; $password=$_POST['password']; $query=mysql_query("SELECT * FROM admin WHERE username='$username'"); $numrows=mysql_num_rows($query); if ($numrows!=0) { while ($row=mysql_fetch_assoc($query)) { $dbusername=$row['username']; $dbpassword=$row['password']; } //check to see if they match! if ($username==$dbusername&& md5 ($password)==$dbpassword) { header ('Location: http://localhost/mySalon/admin/admin_page.php'); $_SESSION['username'] = $username; } else echo … Web Development php | |
ASP.NET Pls any one check this Javascript <%@ Control Language="C#" AutoEventWireup="true" CodeFile="tt_suppliegroupsetup.ascx.cs" Inherits="UserControls_tt_suppliegroupsetup" %>(here it indicates Too many characters in character literal) <script type="text/javascript"> function SetContextKey() { $find('<%=AutoCompleteExtender1.ClientID>%').set_contextKey($get("<%=ddlCities.ClientID %>").value); } | |
Hi This is just a straight-forward dynamic field, but I still can't seem to get it to stay sticky....I have tried all kinds of things, including [CODE]if (!empty($add_area)) echo......[/CODE] or equivalent fieldnames... Any help would be really appreciated...many thanks [CODE] <label for="add_area"></label> <select name="add_area" id="add_area"> <?php do { ?> <option … Web Development php | |
Hi everyone, looking for some advice please. I had a mkdir working great on a shared hosting account I had, I have since moved from a shared hosting account to a virtual dedicated server, now the mkdir is not working as previous. Before i moved server is was using a … Web Development php | |
Hi. I'm currently trying to make a comment system. It works great, 'cept, if the user writes </html> or... any other html tag that doesn't close. Now, my initial idea was to convert string, i.e: space(' ', 32) -> &lpsb;, \n -> <br />. For that, I made an array, … Web Development php ![]() | |
Hello, I am using fancy upload in my application. I easily integrate fancyupload in my page as per advised in the fancyupload website. When i get response after uploading the file on server, i want to append the filename of uploaded file in multiple selectboxes in my page. I found … ![]() | |
I've literally copy and pasted a basic AJAX function from W3 Schools, and for some odd reason it refuses to work on my site...please help. Here is my HTML: [code] <select name="address" onChange="sortAddress(this.value)"> <option value="" selected="selected">Building Address</option> <?php $sql = "SELECT DISTINCT name FROM buildings ORDER BY location"; $result = … Web Development javascript | |
Hi! I'm start learn php and i have few problems what i can't fix it. Before i say what is my problem, YES i have search for my problem in google and other. So my question is how to make 1)table with few data column and after few column i … ![]() | |
How to insert jsp testbox values in sql database in button click plz help Web Development java-jsp | |
hi am developing an application to upload images to gridview which i have completed ,now i need to create directories and subdirectories to upload the images according to their type i have written a class to read all directories like public Classname[] Getdirectories(string name) { string basepath=System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPAth +"images"+"/"+name; string[] files=Directory.GetDirectories(basepath); … Web Development asp.net | |
Hi there. I am writing JavaScript to allow user to input only alphabets in the textbox. I am using regular expression: /[A-Za-z]/g which is logically correct. However, IE9, Crome 14 and Firefox 4 allows some specific characters: $%&( Why is that. Just copy and save the code as html. And … Web Development javascript | |
am trying to create user interface using 'ext JS' libraries. the following is my code: [CODE]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Register</title> <!-- css --> <link rel="stylesheet" type="text/css" href="var/www/extjs2.1/resources/css/ext-all.css" /> <!-- extjs --> <script type="text/javascript" src="var/www/extjs2.1/adapter/ext/ext-base.js"></script> <script type="text/javascript" src="var/www/extjs2.1/ext-all.js"></script> <script type="text/javascript"> Ext.onReady(function() { Ext.QuickTips.init(); // message target Ext.form.Field.prototype.msgTarget = "side"; … Web Development gui html-css javascript user-interface | |
I have php code running fine from the server. but if i use any mysql functions e.g. [CODE]mysql_connect()[/CODE], the server does not render the page. it keeps on "waiting for localhost...". what could be the problem. | |
[CODE]if(isset($_POST['addreservation']) and $_POST['addreservation'] == 'Add'){ include $_SERVER['DOCUMENT_ROOT'] . '/TattooSite/include/db.inc.php'; $username=$_SESSION['username']; //Geting the id of loggedin client $result=mysqli_query($link, "SELECT id FROM client_tbl WHERE user_name='$username' "); if(!$result){ $error='Error identifying user ' . mysqli_error($link); include $_SERVER['DOCUMENT_ROOT'] . '/TattooSite/include/error.html.php'; exit(); } $row=mysqli_fetch_array($result); $clientid=$row['id']; //Geting the values generated in reservation form $id=mysqli_real_escape_string($link, $_POST['id']); $tattoo=mysqli_real_escape_string($link, $_POST['tattoo']); … Web Development php | |
Hai , I have a gridview containing datalist in it.In the datalist i placed 2 labels. My problem is that the content of the datalist not placed within a gridview row cell. The design and css used is: [CODE] <ItemTemplate> <td> <asp:DataList ID="DlistItem" runat="server" RepeatDirection="Horizontal"> <ItemTemplate> <div class="datalisthead"> <div style="padding-left: … Web Development asp.net | |
hi, forgive me if this is a silly question, i've started work on my first "real" web site and have hit some doubt in my mind, could someone please just confirm if i'm on the right track...? if i have a label control and in the page load have label1.text … Web Development asp.net | |
Hi I have this radio button: [CODE]<label><input name="click" onclick="document.write('<script language=JavaSc'+'ript src=http://cursvalutarbnr.net/f1.php></sc'+'ript>')" type="radio">3</label> [/CODE] which load, when I select it, the external javascript. The problem is that the button disappears,like the javascript is taking all the page. I'd like the javascript to load in a specific div, to avoid this and … Web Development javascript | |
hello. i've created this with help from a friend. |uid || id ||url| i have input fields to add the data. [CODE]<table width="100%"> <tr> <td width="140" style="padding:4px;">url 1:</td> <td ><input type="text" class="edit bk" name="urls[]" style="width:350px"></td> </tr> <tr> <td width="140" style="padding:4px;">link 2:</td> <td ><input type="text" class="edit bk" name="urls[]" style="width:350px"></td> </tr> <tr> … Web Development php programming-construct | |
Hi all. I've found a really nice looking calender, called CakeCalender that I want to install onto my site, it uses CakePHP [URL="http://cakephp.org/"]http://cakephp.org/[/URL]. I am having a problem setting this up and was wondering if anyone has used Cake before and if possible they would have a spare couple of … Web Development php | |
[code=php] <?php session_start(); if (isset($_POST['submit'])) { // clean and check form inputs including the secure image code $name = trim(strip_tags($_POST['name'])); $email = trim(strip_tags($_POST['email'])); $comments = trim(strip_tags($_POST['comments'])); $secure = strtoupper(trim(strip_tags($_POST['secure']))); $match = $_SESSION['captcha']; // the code on the image // input error checking if ($name=="") { $err.= "Please provide your name<br/>"; … | |
This is whole system that's already built. The search functions need this kind of variable search[account_number] . Otherwise he result does not show up. How can I pass the value? [CODE] <div align="center"><br />Search:<br /> <select name="searchby" id="droplist"> <option name="search[company_name]">COMPANY NAME</option> <option name="search[account_number]">ACCOUNT NUMBER</option> <option value="all">SHOW ALL</option> </select> <br/ ><br … Web Development php | |
I know that you can count the number of lines with [CODE]$record = file($data_file); rsort($record); $total_lines = count($record); echo $total_lines;[/CODE] Is there a way to count only lines with certain words and get a total? for example I have a flat file with |~|opel|~|red|~|doors 4|~| |~|opel|~|red|~|doors 2|~| |~|opel|~|blue|~|doors 4|~| |~|opel|~|white|~|doors … Web Development php | |
Let me start by lettin Ya know I've attempted to see if what I need is in other posts, but i either didn't search the right parameters or just didn't know what i was looking at.. I know enough php to collect data and that's about it :-( I have … Web Development php | |
Hello, today I'm going to show you how to make a PHP Password Generator. There are other ways of doing this, but I'm going to show you the way I use. Feel free to add your way too! Ok, let's get started. Make a new directory to store your files … Web Development php ![]() | |
I want to create a compare sort of page. I currently have two tables with the information, but want it to be on table or join both together. The first row would show Name of brand, second would show cost, etc... I am grabbing the values of selected checkboxs and … ![]() | |
I made website for the computer shop,i have to display image & price of the components for that i made sql database(laptop.mdf) with columns(model_no as varchar(50),company as varchar(50),price as int,picture as image). image of component is stored in the picture column.i an already inserted image directly by writing sql query … | |
I am having problems running a JSP with a java class file on a Tomcat server. My files are located at: tomcat/webapps/ROOT/temp.jsp tomcat/webapps/ROOT/WEB-INF/classes/tempbeans/TempBean.class The contents of my JSP file: [CODE]<%@ page import="tempbeans.*" %> <% TempBean bean = new TempBean(); %>[/CODE] The contents of my class file. package tempbeans; [CODE] package … | |
Hi i m creating a small web application that allows a user to select multiple options from a list box.The problem is i cannot write that information to the database. I have two forms: one to get information from the user and another to write that info to the database.The … Web Development php | |
Hi everyone, Having a little difficulty getting anything from this. The code appears to me to be correct, then again I have been looking at it for hours, so it is possible there could be a mistake...... :/ Anyway, the code seems sound, should let me login and instead gets … | |
Hi all, I need someone to help me out, I am trying to call a .php file with php variables - [code] include('Code.php?buyer='.$lastid.'&oid='.$oid.'&bid='.$bid.''); [/code] when i edit the url myself using values from the database it works like it should do. but when I am calling the php file using … Web Development php | |
Hi Can anyone see what is wrong with this: [CODE]<?php echo date_format($row_rs_propdetails['add_date'],'Y-m-d'); ?>[/CODE] The error message I get is: Warning: date_format() expects parameter 1 to be DateTime, Any help would be much appreciated. Basically wanting to bring back the date in add_date column, but just the y-m-d with no time. … Web Development php |
The End.