52,566 Archived Topics
Remove Filter ![]() | |
I need to print from a PHP program directly to a printer on the user's computer (if there is one). I've used JS page print, but this is somewhat clumsy. | |
[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> <script type="text/javascript"> function buttonPress(str) { alert(str); } </script> </head> <?php session_start(); error_reporting(E_ALL ^ E_NOTICE); include "dbconfig.php"; $id=$_SESSION["valid_user"]; ?> <body> <form name="Item Search" method="post" action="search.php"> Item Search:<br> <label> <input name="swords" type="text" size="30" maxlength="30"> … Web Development client-server javascript php | |
Hi to all, am having problem doing this. i want to show a link and not a button.when the link is clicked,then the <form></form> content is echoed for the user to make a choice,this should not open a new window,all this should take place on the same page.another problem i … Web Development php | |
hi im working on a project for a friend to modified an existing website with a google map api.the site has some menu that link to a specified cluster on the google map and i want to add some more menu and link it to a marker on the map … Web Development api google google-api php seo | |
Dear All, I wish to print my records of following code in table format echo "LOAN NO = $title<br>" ; echo "NAME = $title1 <br>" ; echo "ADDRESS = $title2 <br>" ; echo "AREA OFFICE CODE = $title3 <br>" ; echo "LINK AO = $title4 <br>" ; echo "APPLICATION NO. … Web Development php | |
[ICODE]it won't show any error but after clicking the update it show the previous data again[/ICODE] [CODE]protected void gvdatatable_RowUpdating(object sender, GridViewUpdateEventArgs e) { try { GridViewRow row = (GridViewRow)gvdatatablle.Rows[e.RowIndex]; Label lbl = (Label)row.FindControl("lblid"); TextBox txt1 = (TextBox)row.FindControl("txtpassword"); TextBox txt2 = (TextBox)row.FindControl("txtconpassword"); TextBox txt3 = (TextBox)row.FindControl("txtemail"); gvdatatablle.EditIndex = -1; SqlConnection con … Web Development asp.net | |
Hi all, I am trying to create quiz dynamically. I want user to add more and more ques in a quiz and then finally submit the form. Here is a code that I am trying [CODE]<div align="center"> <table id=repeat> <tr> <td width="155"><font color="#FF9933">Question</font></td> <td width="377" align="left"> <p align="center"><textarea rows="4" name="S1" … Web Development javascript | |
Hello gurus I am making a website for my friend. In the website i have included a contact us page in which a potential client would send an email. heres the address of the page if it helps, SNIP, it is constantly changing cause i am trying new techniques but … Web Development asp.net client-server email visual-basic | |
Hi All, I'm sorta stuck on this one. Hopefully some of you folks can help me out... My question in a nutshell: Is there a way to have PHP extract all of the files from an archive without preserving the directory structure? Extra Info: A site I'm working on allows … Web Development php | |
So ultimately my goal is this: I have a table of info (from mySQL database) being displayed on my page, btracker.php. On this page is a pulldown menu for the month and the year (I need both to work but for now I'm [I]just trying to solve the [B]month[/B][/I]). [CODE=html] … Web Development php | |
Can someone tel me the code to put a dropdown box showing default values as shown below using script ..i,e by enclosing them in document.write in script <CODE> <SELECT NAME="choice" > <OPTION VALUE="1">one </OPTION > <OPTION VALUE="2">two </OPTION > <OPTION SELECTED VALUE=" 5 "> 5 </OPTION> </SELECT> </CODE> Web Development javascript | |
Hi, I am trying to download data using a dataset, but I keep getting the error "Failed to enable constraints" On Debug, I get the suggestion 'Relax or turn off constraints in your dataset" refers to "aRow.EmployeeID" my dataset has this query: [CODE]select isnull(c.Answer,'') Answer,isnull(b.Comment,'') Comment from Questions a left … | |
[code] <ul id="verticalmenu" class="glossymenu"> <li><a href="http://www.javascriptkit.com/">JavaScript Kit</a></li> <li><a href="http://www.javascriptkit.com/cutpastejava.shtml" >Free JavaScripts</a></li> <li><a href="http://www.javascriptkit.com/">JavaScript Tutorials</a></li> <li><a href="#">References</a> <ul> <li><a href="http://www.javascriptkit.com/jsref/">JavaScript Reference</a></li> <li><a href="http://www.javascriptkit.com/domref/">DOM Reference</a></li> <li><a href="http://www.javascriptkit.com/dhtmltutors/cssreference.shtml">CSS Reference</a></li> </ul> </li> <li><a href="http://www.javascriptkit.com/cutpastejava.shtml" >DHTML/ CSS Tutorials</a></li> <li><a href="http://www.javascriptkit.com/howto/">web Design Tutorials</a></li> <li><a href="#" >Helpful Resources</a> <ul> <li><a href="http://www.dynamicdrive.com">Dynamic HTML</a></li> <li><a href="http://www.codingforums.com">Coding Forums</a></li> <li><a href="http://www.cssdrive.com">CSS … Web Development asp.net html-css web-design | |
hello :) I just want to ask a favor regarding the code on how to Update the edited data from the gridview. thanks. here's the code. [ICODE]<%@ Page Language="VB"%> <%--AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default"--%> <%@ Import Namespace="System.Data.Oledb" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> Private Sub Page_Load() Dim … Web Development asp.net open-source visual-studio | |
What is the purpose/point of [B]echo[/B], [B]endif[/B], and [B]return[/B]? Also, whilst on this subject, why should I enclose values in [B]" "[/B] when enclosing them in [B]' '[/B] works just as well? I know [B]echo[/B] can be used in place of print, but why and when should I use [B]echo[/B] … Web Development engineering php | |
Hey guys I'm hoping someone can help me out. I have an admin page with the ability to update existing data from a table, I have textboxes being created for each record(this works) but its the submit/update script that doesnt work. What it does right now is nothing, i hit … | |
I'm trying to output the results of an array to a table. To be more specific, I'm trying to output pictures ... let's say 5 pics per row for example. Below each pic I'd like to display a few options like delete, etc. I'm not looking for the answer, just … Web Development php | |
Hi, everybody: I have written an include file in my php file "main.php", with and include "ip.php", which is: <?php function getRealIpAddr() { if (!empty($_SERVER['HTTP_CLIENT_IP'])){ //check ip from share internet $ip=$_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){ //to check ip is pass from proxy $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; } else{ $ip=$_SERVER['REMOTE_ADDR']; } return $ip; } ?> … Web Development php | |
hi I need to display date which is stored in database and need to format and display on web page the current format is (Y-m-d) I need to display as (d-m-Y); On the web page pls anybody help me with the php script I will paste my code: [CODE]<?php $d=$_POST['sdd']; … | |
Hi, Could any one tell on how to load page while scrolling? For e.g. If i want to load 200 records, i will first load 100 records and when the scroll reaches bottom, i will have ajax to get the remaining records. Here, when i get the next set of … Web Development javascript | |
Hello guys I wanna make a registration page for a game which uses SQL DB does anyone know how to encrypt a pass so that it ends up like this? [CODE]0x7BF1EA5EBADD9D7DD2D43E25ABEBCD100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[/CODE] btw the column that the pass is sored in is BINARY that converts into "999momo999" i think its md5 … Web Development php | |
[CODE]Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\reg.php on line 3 [/CODE] it just comes up with that and this is the only code i have [CODE]<?php session_start(); mssql_connect("Philip-Pc\DRAGONICA", "sa", "123456"); ?>[/CODE] any ideas? | |
Hi, Can any body provide me some code reference regarding,how to limit execution of a function to a registered user everyday for n number of times.Like user can only send 20 mails everday.so allowing execution of mail function for only 20 time everday and resetting the counter the next day … Web Development php | |
How to Get Results in the Word file? Or how to print the results in the Word file? using php Web Development php | |
Hello, I am just starting to play with ASP.NET MVC, I need to build a project for my school activities and I'm stuck with this (probably) simple thing, but I haven't got a clue... I need to present a View that contains checkboxes to choose from, this part of the … Web Development asp asp.net database-design | |
I have a JQuery script that gives a neat effect on the navigation and want to include a simple fading slideshow on the same page. Any script I have tried for the slideshow either uses JQuery or Mootools and it conflicts with the navigation script. Can anyone recommend a smooth … Web Development javascript javascript-jquery | |
Hi again!! I am stuck into a new problem.I have a invoice form with regular fields in it and when the user press the print button, I want to print it out in desired formatting like, company name, address etc. at the top of the page, and so on. Can … | |
Here's the code: [code] if ($result) { if ( $num_rows > 0 && $type = 1 ) { session_start(); $_SESSION['login'] = "1"; $_SESSION['loginname'] = $row['NOM']; $_SESSION['centreAFB'] = $row['CENTRE']; header ("Location: xxxxx.php"); } else if ( $num_rows > 0 && $type = 2 ) { session_start(); $_SESSION['login'] = "1"; $_SESSION['uname'] = … Web Development php | |
Hey guys I am trying to create a login that checks for a password in a mysql database. I have just started picking away at this and have no clue if I am even close. If I am not even close I don't need someone to wast there time holding … | |
Hi!! I have a simple script of displaying client work history in following manner: [CODE]<?PHP $query1=mysql_query ("SELECT existing_clients_work_history.history_description, existing_clients_work_history.history_history, client_master.client_name FROM existing_clients_work_history INNER JOIN client_master ON existing_clients_work_history.client_id=client_master.client_id"); if(mysql_num_rows($query1) > 0) { echo "<table align='center' border='0' width='1000'>"; echo "<tr class='style1' align='center'> <td>Client Name</td> <td>Work Description</td> <td>Work History</td> </tr>"; while($row1=mysql_fetch_array($query1)) { if($row1!=0) … | |
Hi guys I'm new at JSP, and I've to run an ex-collegue software. It's Java + JSP, usin' Apache Tomcat. When I run Tomcat and I try to open the Default.jsp page, here's what appears: [code=jsp] HTTP Status 500 - type Exception report Description: The server encountered an internal error … | |
hi I'm having trouble with php and mysql I'm getting this error [CODE] [Sun Jan 30 17:43:40 2011] [error] [client 127.0.0.1] PHP Warning: mysql_query(): Access denied for user 'root'@'localhost' (using password: NO) in /var/www/t/view_tg.php on line 29, referer: http://localhost/t/ [Sun Jan 30 17:43:40 2011] [error] [client 127.0.0.1] PHP Warning: mysql_query(): … Web Development client-server mysql php | |
hi, this is my php code i need pagination for this page.. help me please.... [CODE=php] include('connection.php'); ?> <!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" /> <meta http-equiv="Expires" content="Wed, 01 Jan 2020 00:00:01 GMT" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Script-Type" content="text/javascript" … | |
Hi, I am fetching from a table and updating it back. I am fetching and populating the form. User will modify the form and then update the table. Everything looks fine but update and delete query is returning '0' Here is a code snippet: [CODE] qid = (Integer.valueOf(iterator.next().toString())); answer = … Web Development java-jsp | |
Hello, Can anyone help me embed a .mht file into a php page? I don't want it to be downloaded, but visitors should be able to browse that mht file. Web Development php | |
Hi I am working on a website that users can use to create their own blogs. But I have hit a problem. Whenever I try to create a new file with the members username in. The rest of my script works perfectly. Can anyone see a problem with my code. … Web Development php | |
I modify a php comment system. I want add it after every article witch are query from database. this is the php part [CODE]<?php ... while($result = mysql_fetch_array($resultset)) { $article_title = $result['article_title']; ... ?> <form id="postform" class="postform"> <input type="hidden" name="title" id="title" value="<?=$article_title;?>" /> <input type="text" name="content" id="content" /> <input type="button" … Web Development javascript javascript-jquery mysql | |
I have one MySQL database field which saves comment from users. Some comments have new lines but when I try to use PHP to display the contents of the database, the new lines are ignored. I know about nl2br() but I guess it will not work as my users will … | |
ok so i am including a html file that has a css file within it. but when i include it, it breaks the relative css location. is there a way before i include the html file that i define the relative area. example include("admin/template"); html file <link href="css/style.css" rel="stylesheet" type="text/css" … | |
Hi, I am new to web development, i need to develop a comment box, and save those comments in a file( either database or normal text pad), so that i can retrieve them later and display them on my web. My server does not support php or anyother special scriptin, … Web Development javascript web-server | |
Hello all, Today I received this as my error: Parse error: syntax error, unexpected T_STRING in /home/a8712935/public_html/admin_members.php on line 60 I've looked all over the internet but I can't find a solution to my problem. There is nothing wrong with that line, but I think it is a problem with … | |
my problem is that, i have a button that contains values and carry it to javascript here is the code below for the button that carries value 1; [CODE] <button onclick="passValue('1')">Pass Me</button> [/CODE] here is the javascriptfunction that will be called by the button above; and this script would set … Web Development javascript | |
I have a simple jQuery click handler that animates the change of a divs background image. I would like to create some reusable code so I would not have to copy my code for every div I would like this effect on. How would I go about this? [CODE] <style … Web Development image javascript javascript-jquery | |
Im trying various ways to trigger a transition, the simplest being the use of css pseudoclasses: [CODE] //leaving out default header stuff// <head> <style> .item{ opacity:1; -moz-transition: opacity 1s ease; } .item:hover { opacity:0; } </style> </head> <body> <img src="myimage.jpg" class="item" /> </body> [/CODE] If i use js to make … Web Development javascript | |
Basically I have to create a website for this community project our class in school is doing. It is coded in entirely php and html because I hate writing javascript. Cut to the chase, there is a photo gallery and a semi-secret log in that you can log into for … Web Development first-post php session | |
Hello I hope you can assist me with this :) [CODE]$(document).ready(function(){ $(".downservices").mouseenter(function() { $(this).parent().find(".servicesdropped").slideDown("fast").show(); $(this).parent().hover(function() { }, function(){ $(this).parent().find(".servicesdropped").slideUp("fast"); }); }); });[/CODE] This code allows me to make a drop down menu when the cursor hovers over a link. I have a horizontal menu, so when I hover over a … Web Development html-css javascript | |
Hi everyone! I'm dealing with an online test that has 100+ questions and I would like a way to: a) turn all $_POST into $_SESSION automatically b) clean the data c) encode it a) I found this but it makes the form fail [CODE] if(isset($_POST) { foreach ($_POST as $key … Web Development first-post php session | |
Hi, here is my code so far: [CODE]<?php //List files in chosen directory $dir = opendir("uploads"); while ($entryName = readdir($dir)) { $dirArray[] = $entryName; } closedir($dir); $indexCount = count($dirArray); echo "$indexCount files <br />"; for($index=0; $index < $indexCount; $index++) { if ($dirArray[$index] != "." && $dirArray[$index] != "..") { $type … Web Development php | |
i am writing a php code that displays text from a database. how would i make the text auto break `<br />` after a certain amount of chars? please help asap. thanks Web Development php | |
I can code it with this account just click on a link I need one that relies on various link on the same page. codigo need cookie. <script type="text/javascript" src="file:///D|/Downloads/cookie.js"> </ script> <script type="text/javascript"> var = CookieUtil { get: function (name) { var cookieName = encodeURIComponent (name) + "=" cookieStart … Web Development javascript |
The End.