39,393 Topics

Member Avatar for
Member Avatar for aaraf

hi I want to set an authentication in two different computers if the master is logedin then the slave authentication can login else the slave authentication on the other computer in a network can not enter to the authentication page. [B]I can not use database to store the authentication as …

Member Avatar for diafol
0
88
Member Avatar for umeshMCA

hi i would like to do like this +2007 +2008 -2009 +BCA-I +BCA-II -BCA-III Advance Web PRogramming.pdf JAVA.pdf OB.pdf +PGDCA +M.Sc. +2010 like this code i want as when user click on + then open like 2009 example and open classes like BCA etc. and after click on bca than …

Member Avatar for diafol
0
292
Member Avatar for fidolas7

1.<?php 2.session_start(); 3.$con = mysql_connect("localhost","root","") or die(mysql_error()); 4.$db = mysql_select_db("registration", $con)or die(mysql_error()); 5.function mss($value){ 6. return mysql_real_escape_string(trim(strip_tags($value))); 7.} 8.function s($value){ 9. return stripslashes($value); 10.} 11.function topic($input){ 12. return nl2br(strip_tags(stripslashes(htmlentities(htmlspecialchars($input))))); 13.} 14.if($_SESSION['uid']){ 15.if(mysql_query("UPDATE signup SET gender='".$_POST['gender']."',status='".$_POST['status']."',date='".$date."',option='".$_POST['option']."',religion='".$_POST['religion']."',description='".$_POST['description']."',political='".$_POST['political']."',location='".$_POST['location']."',home='".$_POST['home']."',other='".$_POST['other']."' WHERE id='."$_SESSION['uid']."'")){ 16.echo"<p>updated successfull</p>"; 17.} 18.} 19.else { 20. if (!$_SESSION["uid"]){ 21. header("Location:unregistered.php"); 22. exit(); …

Member Avatar for tomato.pgn
0
133
Member Avatar for cmabill

This contact.php will process the data and send it to my email. I want to achieve this effect, when user submit the form correctly, it will display a alert, and then redirect the page to : thankyou.html. When there is some error, it will display another alert, and then redirect …

Member Avatar for cmabill
0
276
Member Avatar for scarcella

Hey guys, I am wanting to find to see if a variable is in the array: Here is my code: [CODE] $domainlist = array(".com.au",".com",".co.nz",".net.au",".net",".net.nz",".org.au",".org",".org.nz"); $serverlist = array( ".co.nz=whois.srs.net.nz|220 Available", ".com=whois.crsnic.net|No match for", ".net=whois.crsnic.net|No match for", ".org=whois.publicinterestregistry.net|NOT FOUND", ".com.au=whois.aunic.net|No Data Found", ".net.au=whois.aunic.net|No Data Found", ".org.au=whois.aunic.net|No Data Found", ); foreach ($serverlist as …

Member Avatar for scarcella
0
158
Member Avatar for vukidrock

Hi there This is my problem: - Upload image (not important) - Store its in [filename].php - Show [filename].php like image.jpg in show.php (gallery) Can you solve? Thank you so much

Member Avatar for vukidrock
0
122
Member Avatar for monta2020

i have a hyperlink that when i click then will show me an output of listed names. i want to have this list arranged from A to Z in . thanks. um using PHP.

Member Avatar for tomato.pgn
0
300
Member Avatar for backalley

i've been attempting to execute this code , all i got was an error. [CODE]<?php $connect = mysql_connect("localhost","root","") or die ("connection failed!"); mysql_select_db("users") or die (mysql_error()); echo "connected!" $extract = mysql_query("select * from member order by id ASC") or die mysql_error(); ?>[/CODE] and this error appeared : [ICODE]Parse error: syntax …

Member Avatar for tomato.pgn
0
176
Member Avatar for erza26

can somebody check my code...i really don't know what's the problem is... <!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></title> <style type="text/css"> <!-- body { margin-top: 50mm; } --> </style> <script src="gen_validatorv4.js" type="text/javascript"></script> <script type="text/javascript"> function upperCase() { var x=document.getElementById("specification").value; document.getElementById("specification").value=x.toUpperCase(); …

Member Avatar for erza26
0
134
Member Avatar for dyingatmidnight

Hello, I'm building a database using SQL and PHP and I've started on the user interface first rather than the database queries and everything - a little backwards perhaps. I have a login button that disappears for some reason when I add in a function for my search button. Here's …

Member Avatar for KadajXII
0
225
Member Avatar for Amr87
0
58
Member Avatar for mightysnake

Hey all, Well I can't find a common solution for calculating price based on time elapsed and I thought you guys could help me a bit to find an appropriate solution. So, I need to calculate price like this: 24h - 40€ 30h - 50€ 36h - 60€ 42h - …

Member Avatar for madCoder
0
321
Member Avatar for feoperro

Hi, I'm new to JQuery and attempting to write a script to check username availability. My problem is that no matter what I type, I always get back "This username is already in use." JQuery source: [CODE] $(document).ready(function() { jQuery.validator.addMethod("usernameCheck", function(username) { var isSuccess = false; $.ajax({ url: "username_availability.php", data: …

Member Avatar for feoperro
0
2K
Member Avatar for phplover

Hi, I have gone over and over the subject and still confused. I currently develop in PHP 5.2.x along with MySQL. (awaiting host to upgrade to 5.3.x, hopefully not to long although on local i develop using php 5.3.5) Currently i use the standard MySQL functions in PHP like: [B]mysql_connect()[/B],[B] …

Member Avatar for phplover
0
159
Member Avatar for Acute

Do you know how to store multi-level menus in db and build them into html lists using php? thnx p.s.: i googled and could not find what i need

Member Avatar for Acute
0
111
Member Avatar for ckdoublenecks

the below code is intended to update a database file with the no of days late and tax calcs for each record. I'll understand this before I qive up. the subject is the error message. [CODE]<?php $stat = mysql_connect("localhost","root",""); $stat = mysql_select_db("oodb"); $query = "SELECT invnum FROM oocust Where WHERE …

Member Avatar for ko ko
0
248
Member Avatar for killerqb

I seem to have an error updating a checkbox using an SQL Query. I am trying to get the box to be checked if equal to 1 and unchecked if equal to 0. My database is updating correctly, but the checkbox is not. [CODE]<input type="checkbox" <?php if ($row['create_event'] = 1){ …

Member Avatar for karthik_ppts
0
118
Member Avatar for phplover

Hi, I have created what i think is correct is one mysql_query with multiple counts. Could someone please tell me if i have done it rite ? plus how would i be able to access each count query using PHP so i can display each count query result? If it's …

Member Avatar for phplover
0
1K
Member Avatar for diafol
Member Avatar for tarantulaturk

Hi all, I use a program (OpenGrads) to run on the command prompt in OPENSUSE. It worked on Windows very well but I cant run the command on linux. System commands works without any problem. But the specific command that is 'grads' doesnt work. I used system(), exec(), shell_exec() functions …

Member Avatar for tarantulaturk
0
175
Member Avatar for andy106

Hi I have the following array: [CODE] $links = array("Home", "About us", "Our Services"); foreach($links as &$link ){ $space = implode(" ", $links); echo $space ; break; } [/CODE] the above code displays Home About us Our Services, but now I want to use the same array for links so …

Member Avatar for diafol
0
130
Member Avatar for kasxxiazexxi

I am using HTML for the contact form fields and I wish to redirected the inputs to another webpage and have it displayed there. Is there a way to do it with PHP? Thank you!

Member Avatar for tomato.pgn
0
218
Member Avatar for ptara1

I'm creating a html form that allows the user to search for people in a database. I want the form to work with drop down selects and radio buttons. Currently I'm using an if { } elseif {} else if{} format to my script. However this causes a problem because …

Member Avatar for R0bb0b
0
687
Member Avatar for ptara1

I have a html form where a user can narrow down his or her's search. For example they want to find a person based off of a number of characteristics, say hair color, eye color, body type. These are selected by a drop down menu and there are additional radio …

Member Avatar for urtrivedi
0
352
Member Avatar for rhuffman8

I am working on a project using HTML, PHP, and LINUX shell commands to create a dynamic web page but I seem to be having some trouble figuring out how to run the .cgi file with the shell commands in it using either HTML or PHP (if they are both …

0
121
Member Avatar for phpDave

Hi, currently I am working on embedding a flash video box into my dreamweaver site. All I would like is an empty video box so users can upload their own video. Any thoughts? Thanks.

0
52
Member Avatar for luisthedude

Im having problems loading content with ajax, the problem its that lets say that I have 2 links on my index.html, one is #page1 and the other one is #games1, well have happens is that if I click on either of them it just loads the same site, even thought …

Member Avatar for luisthedude
0
886
Member Avatar for ckdoublenecks

this program inserts data (correctly) into fields b4 update but I get the error message when I submit. Can someone tell me what is wrong with my code? [CODE]<html><head> <!--when the paidamt is keyed in, the current date, pd & paidsum are autoinserted--> <script> function $_(IDS) { return document.getElementById(IDS); } …

Member Avatar for ckdoublenecks
0
172
Member Avatar for Yemen Coder

hi guys as the title which is the best in security mysql_connect() or mysqli_connect() and which one you prefer thank you for help or suggestion .

Member Avatar for infinitizon
0
152
Member Avatar for luisthedude

Can anyone help me add another folder destination to the code below. for example Categories/test, keep in mind that I want to add not repplace the location below which is Categories/Game [CODE]<?php if(!$_POST['page']) die("0"); $page = (int)$_POST['page']; if(file_exists('Categories/Game/page_'.$page.'.php')) echo file_get_contents('Categories/Game/page_'.$page.'.php'); else echo 'There is no such page!'; ?> [/CODE]

Member Avatar for luisthedude
0
331

The End.