39,323 Topics

Member Avatar for
Member Avatar for LWS

Here is sample tables [B]Case[/B] Case_ID AC_ID ASSET_ID [B]Action[/B] Action_ID Case_ID Step_No Date_Started Date_Completed Status [B]Procedure[/B] P_ID Step_No Name AU_ID AC_ID 1 1 Step1a 1 1 2 2 Step2b 1 1 3 3 Step3c 1 1 4 1 Step1a 2 1 5 2 Step2b 2 1 6 3 Step1c 2 …

Member Avatar for LWS
0
139
Member Avatar for thunderbird22

Hi guys, I am using a number of checkboxes and I want to get their value using POST method, but my problem is that I use two buttons at the end! Buttons "Accept" and "Reject" If accept is pressed I want to know it so I can make different process …

Member Avatar for smantscheff
0
162
Member Avatar for kitschkath

Hi there I am hoping that someone could help me with this... I was trying to redirect a page using header(); after successful login. I am going to share my codes: Login.html [CODE] <html> <head> <title>HCPSMSHS: Grade Viewing System</title> <link rel="stylesheet" href="css.css" type="text/css" charset="UTF-8" media="all"> </head> <BODY> <center><div id="header"></div></center> <center> …

Member Avatar for kitschkath
0
197
Member Avatar for ddellostritto

Hi all - I'm looking for a flexible way, via ajax to verify if a *field* is available. I found a script that works: [url]http://web.enavu.com/tutorials/checking-username-availability-with-ajax-using-jquery/[/url] The problem is that this is a little unwieldy: for every field (input) that you want to verify w/ajax you have to have a different …

Member Avatar for ddellostritto
0
87
Member Avatar for hanif_thaheem

<?php session_start(); require_once("include/connect.php"); if(isset($_GET["page"]));{ $pages = array ("products","cart"); if(in_array($_GET["page"],$pages));{ $page = $_GET["page"]; }else { $page = "products"; } } else { $page = "products"; } ?>

Member Avatar for anilashanbhag
0
29
Member Avatar for epicrevolt

Well, I am getting moving on my site, finally got about all the main pages dynamically loading, and I have rand into a problem with my registration problem. I don't know what happened but I seem to be getting this strange error: [B]Fatal error:[/B] Cannot redeclare generatehash() (previously declared in …

Member Avatar for epicrevolt
0
880
Member Avatar for RobotFX

Hi! I'd like to make this mysql command into a script and run it as a cron: [CODE]DELETE FROM xx_posts WHERE post_content=''[/CODE] However, I don't know how. So the question is what should the php file look like to access and delete the empty wordpress posts from the database? Thank …

Member Avatar for RobotFX
0
93
Member Avatar for Joe34

Alright here is my code... [CODE]<?php $Connect = mysql_connect("","",""); $DB = mysql_select_db(""); if(!$Connect || !$DB) { die("MySQL Error #1! Try Again Later!"); } if($_POST['car'] == "Alltel") { $To = $_POST['num']."@message.alltel.com"; } if($_POST['car'] == "AT&T") { $To = $_POST['num']."@txt.att.net"; } if($_POST['car'] == "BoostMobile") { $To = $_POST['num']."@myboostmobile.com"; } if($_POST['car'] == "CentennialWireless") …

0
78
Member Avatar for lttleastig

Hello there i am having trouble on how to compare the password of the input and the one in the DB since the one in the DB is encrypted with the code below for registration i just used a stored procedure in the db and called it in the php …

Member Avatar for lttleastig
0
115
Member Avatar for dyla123

Hi i am not sure if this is PHP but what i am looking for is an API that can track a players info in a game. All of his levels gained, all of his experience gained and so on. I have been talking to players from another game i …

Member Avatar for dyla123
0
145
Member Avatar for localp

I am writing a code to do a google search. i am actually appending the string to the end of the google search string [CODE] <body> <form name="f" action="http://www.google.lk/search?" target="name3"> <input name="name1" type="hidden" value=""> </form> <center> <iframe name="name2" width="100" height="300" src="somePage.html" target="name3"></iframe> <iframe name="name3" width="100" height="300"></iframe> </center> </body> [/CODE] This …

Member Avatar for diafol
0
118
Member Avatar for epicrevolt

Basically, I am working on a joke site that allows users to submit jokes. When displaying the jokes, I want to use a function called joke_author, which will automatically find the authors username based on the authorid of the joke. in both my users table and jokes table, the user …

Member Avatar for epicrevolt
0
121
Member Avatar for ptara1

I have a php script that echoes results from a search. Generally I have no problem getting the results in a table but for some reason I can't get these scripts to do that. I figure its a small error. I'm going to put in the code but if you …

Member Avatar for ptara1
0
267
Member Avatar for rkayd

I have an sql database and an html form. I want to be able to automatically change the value in a checkbox when a radio button value changes. Here is some partial code with details in red as to what I want to do: (the red text is not actually …

Member Avatar for diafol
0
100
Member Avatar for wingmark

Hi All; How to write a PHP coding to list out all files and directories as links to them? This is somewhat similar to some index pages. When new file or folder is added to the directory, HTML page should display the newly created file/folder together with previous ones after …

Member Avatar for diafol
-1
212
Member Avatar for Tehim

Basically I'm making a script that sends the user an email on register and they have to click a link in the email to activate their account. But in my activate page their seems to be an error in my coding and I've checked it over but I can't find …

Member Avatar for Tehim
0
368
Member Avatar for shacur

can i get some help sending the attachment pls cause i think something from my code is missind and that's why can't send attachment. [CODE] <?php $ip = $_POST['ip']; $httpref = $_POST['httpref']; $httpagent = $_POST['httpagent']; $visitor = $_POST['visitor']; $visitormail = $_POST['visitormail']; $message = $_POST['message']; $attn = $_POST['attn']; $subject = $_POST['subject']; …

Member Avatar for diafol
0
151
Member Avatar for MDanz

i've been doing while loops for this problem .. i dont think its the right way though. i have a set of boxes each with a boxid(apart from the first), which is the id(mysql) of the previous box. [quote]e.g. box 1 has id 1 box 2 has id 2 and …

Member Avatar for diafol
0
107
Member Avatar for katsloko

Hey guys, Do you guys have any idea on this error? This errr showing up on my Contact Form before you input the data field like name, address etc.. Is there a way to fix it? [CODE]Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started …

Member Avatar for diafol
0
107
Member Avatar for tcollins412

i am trying to submit a form in javascript, and then process it in php. and it will not work. can you please help? this is the code: [CODE] <?php if ($_POST['markcomplete']=='yes'){ $taskid=$_POST['taskid']; $query="UPDATE tasks SET status='0' WHERE uid='$id' AND id='$taskid'"; $result=mysql_query($query); if ($result){ echo "<script>location.href='?goto=taskmanager'</script>"; }else{ echo"fail"; } } …

Member Avatar for varun931
0
254
Member Avatar for liamfriel

Hello, I am using a script to process subscriptions on our sites - I can sucessfully get the subscription payment to process, I am having issues processing a cancel IPN request. [CODE] // assign posted variables to local variables $item_name = make_safe($_POST['item_name']); $item_number = make_safe($_POST['item_number']); $payment_status = make_safe($_POST['payment_status']); $payment_amount = …

Member Avatar for liamfriel
0
241
Member Avatar for lkrvk

hi, guys i have a problem here. i have a form which creates a new table for each new user and that user will have a monthly update of his salary now im confused how to go about this. do i need to create a new table or how to …

Member Avatar for smantscheff
0
187
Member Avatar for umandajayo

hi I downloaded a php script but it is encoded this is the encoded file <?php $OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14}.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=372; eval($OOO0000O0('aWYoITApJE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwME8wMCgkTzAwME8wTzAwLDEwMjQpOyRPME8wMDBPMDAoJE8wMDBPME8wMCw0MDk2KTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsNTE2KSwndW5sb2NranN0ZXZ4cjIwMVJYVkVOT0xDVFNVSktBYUJiRGRGZkdnSGhJaU1tUHBRcVd3WXlaejM0NTY3ODkrLz0nLCdBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvJykpO2V2YWwoJE9PMDBPMDBPMCk7'));return;?> AzDIJjNhAjGPSVbI1Fcw2YRYrEuqrouISjGGvlANUjGYts2FKgGqAlnhTCrbSCDqUCeGSl4bRz9pTCXFAlniAC2yTzWQJgNpTz9PtjSQKdnmUL2GJH2GtsOpJj9FUwnFJzXGewf7ec91ron1ron1roZGKgOHC3eGKjWDTzNheZ9BXfGrXO9Bewqdewtpec91EYn1rc8qrl4dewtmec91EYuqron1rlbfEy91rouqron1vlX1rc8qrc91rouhec8qron1rc8qrlqfEy8qrc8qrouqvVqHAL5mJz2MUH2ySCS4KFtqrOeTOfO0EyWoOk2OVfPnTNedXjXjSfAHVjDeUNZPNsnXKOA3LCGUaFry2ET30ofMxYyHxlAnRf2cXNSsVcGvVyW2Ef9RNOeEOkOLOZDSLgkdTzXGSgAhULIMJjZpJ3nWKH2yACS3asG6rocwrYRZ2FK40VmQewfIvEPgTzWQKzNhec8qron1rc8qrlf7SCSDJlbfEy8qrc8qrc8qvEm=lLGpTzWZSjNhtg2QJg5GT3RpKjDqtdf7lgGpTzWZSjNhtH2GT3OwUCX5xHnhKltI0qIISdbfCyAkOkmdKseISleAtEydtdfvaqhfKseISlu9tlXBXyONLweqKgGftGy7ldXWKHGYSLqb1VudKzOmSL2ytsnwUL2GtjSwJzybKseQSsOFAsrbAzDGKgNbKseQSsOFAcGc1VKfKseISlKd0qhfKgOYtoybJCGYKLWBKCOGKHfheskwaC2GJlf7ldXyJ3XDJseQAwu9tjZ5K3kmCzkgSgOFAjOfC3eQA3rhvEmveseQAwu9tjZ5K3kmCzSGAj2hCz9dUgOFAlbfKgOYvEmvSL2hJwufKg93xE5qKgGFSEmvBRh= what is this encoded system and How I decode it... Please help me...this is very urgent...

Member Avatar for peter_budo
-3
211
Member Avatar for Imratzio

Hi guys, I have a shopping cart finished for my site but I do not know how to make checkout function that will link to my cart.php I will show u my codes [B]index2.php[/B] [CODE]<?php session_start(); include_once'../config.php'; include_once'../_header.php'; if(isset($_GET['page']))//get info from a get variable inside url { $pages = array("products", …

Member Avatar for Imratzio
0
171
Member Avatar for ganeshrnet

Below is a piece of code i,ve configured with, It's giving me an Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/****/public_html/****/g.php on line 265. The information stored in the database can accessed be accessed by other pages, using the same code. but its not possible …

Member Avatar for pritaeas
0
248
Member Avatar for SalientAnimal

Hi Everyone, I am trying to create a login page for my "intranet" site that is authenicated via a MySQL database and Apache. I am having difficulty on where to start and how to carry the session information from the login to the other pages, i.e. for submitions etc. Can …

Member Avatar for nonshatter
0
388
Member Avatar for ptara1

I currently have a linked table from two tables in one database. I would like to add information from a third table contained in another database. The code for the current table is: [CODE] <?php $con = mysql_connect("","",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("", $con); …

Member Avatar for pritaeas
0
116
Member Avatar for feoperro

Hi, Anyone know where I can get PHP source for a basic free contact form? I've googled and found quite a bit but I have no idea how to configure it to actually send emails, so I'm hoping there is one that I can download that I can test and …

Member Avatar for feoperro
0
496
Member Avatar for andrewliu

I have this link, and when you click on it, theres a GET variable lets say domain.php?page= [CODE]$_GET['page'];[/CODE] and if page equals a variable, I can echo out a form. So what if that form has a link to edit, but its under domain.php?page=[B]form[/B] oh and I have set this …

Member Avatar for Shanti C
0
102
Member Avatar for njagi

Hi Is there anyone who know How to capute a whole HTML file and convert itto Excel for example <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta name="description" content=""> <title>Fourth Year Computer Technology Time Table</title> </head> <body> <p>&nbsp;</p> <p>&nbsp;</p> <table cellspacing='4' cellpadding='4' border="1" align="center"> <tr> <td>Day</td> <td>Time</td> …

Member Avatar for ddellostritto
0
863

The End.