39,323 Topics

Member Avatar for
Member Avatar for kuteinheart

Hey ppl, I have a form with the start date and end date fields... I want to check if bothe fields are filled and also to check if the start date is earlier than the end date... [CODE] <form id="form1" name="form1" method="post" action="get2.php" onSubmit="return validateform(this)"> Checking code... <script language="javascript"> <!-- …

Member Avatar for rajabhaskar525
0
237
Member Avatar for virspy

Hello Friends, i am having problem in pagination of my php website i written the code like this its working for first page good from second page onwards it showing all the results in a single page [code] <?php if((!defined('BASEPATH'))) exit('No direct script access allowed');?> <!-- HEADER --> <? $this->load->includes('header');?> …

Member Avatar for rajabhaskar525
0
108
Member Avatar for tkemp

I was trying to add set cookie to this, which works (set cookie to expire 1 year from set date), but resets the cookie value each time. I want to check if someone has already entered their age and if so, direct them to the appropriate response page. i.e. - …

0
41
Member Avatar for xuexue

hi guys, just a little help regarding GD Graph, is it not possible to combine the graph plus a little code to echo or display?? because, when i try to insert the code in the upper part of the program, it runs but if i put the code in the …

Member Avatar for saiprem
0
167
Member Avatar for arunss

Hi I have to find an array key exists in an array. My array structure is $result['GetSessionListResult']['diffgram']['NewDataSet']['Table'] (which is a result from a webservice). Then I have to iterate the values of the ['Table'] in a foreach like [CODE] foreach($result['GetSessionListResult']['diffgram']['NewDataSet']['Table'] as $item). { } [/CODE] . Ok Then my problem …

Member Avatar for edwinhermann
0
92
Member Avatar for tunde011

[CODE] $user_tz =" 0.00"; // GMT London $user_offset = $user_tz * 3600; // Number of hours X number of minutes X number of seconds //This gets today's date $timestamp = time(); $local_timestamp = $timestamp + $user_offset; //This puts the day, month, and year in seperate variables $day = date('d', $local_timestamp) …

Member Avatar for Wraithmanilian
0
64
Member Avatar for whitestream6

This is my pagination script which is partially working: [CODE] <HEAD> <LINK href="style1.css" rel="stylesheet" type="text/css"> </HEAD> <?php /* Place code to connect to your DB here. */ include('config.php'); // include your code to connect to DB. $tbl_name="episodes"; //your table name // How many adjacent pages should be shown on each …

Member Avatar for JRM
0
84
Member Avatar for takeshi

Hi..this code is not working..the error was [ICODE]while ($row = mysql_fetch_array($sql)[/ICODE] but i know it was correct query.. [ICODE]search.php[/ICODE] [CODE] <?php mysql_connect ("localhost", "root") or die (mysql_error()); mysql_select_db ("records"); $criteria = (int)$_POST['criteria']; $sql = "SELECT * FROM students WHERE "; switch($criteria) case 1: $sql .= "course"; break case 2: $sql …

Member Avatar for kireol
0
260
Member Avatar for tekneck

I am trying to call a php script from a crontab sh script... I can get it to work if I hardcode each file, but I want to pass a variable to a single php file either from hardcoded calls in the sh script, or even better, by looping through …

Member Avatar for kireol
0
203
Member Avatar for anshul09

I have two dropdown lists in my HTML form. In first dropdown list, I have some countries name already added in HTML form. In second drop down list there is no item yet except "Select choice". Now my problem is that I want that when i click on any country …

Member Avatar for Fbody
0
136
Member Avatar for guruwannabe

hey yall i just started learning php too....but i have a problem with viewing my php files..i am currrently using easyphp and am not sure how am supposed to use it...i use dreamweaver to edit my php files but i dont get to see the output.. so please i need …

Member Avatar for diafol
0
135
Member Avatar for ElegantElephant

[CODE]$query = "INSERT INTO update_feedback (updateID,comment,timestamp) VALUES ('$updateID','$comment',NOW())"; $result = mysqli_query($dbcon,$result) or die('Error saving feedback into database. ' .mysqli_error($dbcon));[/CODE] Gives me this error: [QUOTE]Error saving feedback into database. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax …

Member Avatar for ElegantElephant
0
102
Member Avatar for guruwannabe

pls i really need someone who can put me through php.i am really intrested in the language and just in need of someone to help me...

Member Avatar for Kruptein
0
131
Member Avatar for muralibobby2015

i am adding products. in that i have multiple select categorys option is there. i am selecting multiple categories and imploading that and storing categorys in database product table using categorys ids. now i am fetching with single catagory id. how to call (in_array) for that query? [CODE]"select * from …

Member Avatar for diafol
0
100
Member Avatar for derekcpt

Hi everyone. Is there a guru who can tell me how to do this; What I need, When on page x, one can click a link where page z opens as a popup. Page z has to collect data, and when finished, page z has to send the daa back …

Member Avatar for mali01
0
190
Member Avatar for servis

hello, i want to arrange variables in array from foreach loop like this [ICODE] foreach($arr as $array){ $variable['first'] = $array['im']; //first record from im column in a table $variable['second']= $array['im']; //2nd record from im column in a table } echo $variable['first']; echo $variable['second']; [/ICODE] the purpose is to make the …

Member Avatar for servis
0
97
Member Avatar for Jabga

Hi all. I am wondering how to handle e commerce payment on my creating web. It can't redirect to such as Paypal or moneybookers.com etc, payment should be start at my web form and finish on my web. Can it be? How to make it? It should accept international visa …

Member Avatar for Jabga
0
156
Member Avatar for sarithak

hi frnds, i m new to ajax...i m using the below javascript code. here the functionality is working good. but the page(specific div) takes some time for loading. so, i need to put some loading bar(just 4 indication)... plz check the below code and add the onload funtion.. [CODE] jQuery(document).ready(function() …

Member Avatar for liamfriel
0
137
Member Avatar for diafol

I'm losing the will to live! I'm currently trying to place array values from php files into a mysql db table. As it happens some of the values have non-ASCII values: [B]e.g. “%1$s”[/B] I seem to be able to encode all my usual accented characters, but the slanted inverted commas/quotes. …

Member Avatar for diafol
0
153
Member Avatar for venus_me11

[CODE] <html> <head> <script language="JavaScript"> var bgcolorSelected = "#cc3333"; var bgcolorNotSelected = "#ffffff"; function HighLightTR_a(el){ if (document.myform.s23.checked == true) { el.bgColor=bgcolorSelected; } else { el.bgColor=bgcolorNotSelected; } } </script> </head> <body> <form name="myform" action="" method="POST"> <table border="0" cellspacing="1" cellpadding="4" bgcolor="#F2F2F2" > <tr align="center" bgcolor="#FFFFFF"> <td height="50" width="50" onClick="HighLightTR_x(this);" <?php echo $c[23];?>> …

Member Avatar for saiprem
0
153
Member Avatar for pbcomput

hi... i m trying to get values of more then one select box on same page.. i am showing list of all users with select box..so per user there is one select box... i want to get the value of all select box...which is select or not select... here is …

Member Avatar for pbcomput
0
136
Member Avatar for smith78

HI Friends, I tried: I inserted a row in mysql using php in the first webpage and second webpage i tried to retrieve it. I got: But in the next page i did not get the lastely inserted row. When inserted the another row, i was able to get the …

Member Avatar for pritaeas
0
104
Member Avatar for whiteyoh

Hi All, Can anybody give me some good pointers on cause, effect and workarounds for injection attacks please? Id really like to know actual commands that people use, where they use them and how to stop them. Answers on a postcard...............:-)

Member Avatar for pritaeas
0
126
Member Avatar for simondmeredith

I have this code when I submit a form: [CODE]<?php $email = $_REQUEST['email'] ; $name = $_REQUEST['name'] ; mail( "Saamon@live.com", "Website Opt In Form Results", $message, "From: $email" ); header( "Location: index.html" ); ?>[/CODE] On the header location part, how can I make a popup window appear instead of a …

Member Avatar for saiprem
0
142
Member Avatar for bhagu

Hi, guys.. I am trying to find php script or open source script, for digital goods to sell on static website. My client wants to sell his music online. He wants very simple function for Store. When somebody make successful payment on paypal, the link should re-direct to a download …

Member Avatar for chrishea
0
244
Member Avatar for vimal88

hw to download file from mysql using primery key plzz help me:icon_cry:

Member Avatar for rajabhaskar525
-1
63
Member Avatar for pancgom

Hi, I need some advice on how to edit records from a mysql database using php. Basically the record will be displayed after a particular field is chosen. What i need to know is how can i show the field data in a drop down box one after another and …

Member Avatar for shridhard
0
175
Member Avatar for studioceasar

Hi All, I'm having a problem connecting to my database because of a syntax error on the line: $result= mysql_query($sql,$link) or die(mysql_error()); Could you please let me know what the conflict and solution is?. I included the script below. Thanks in advance. C- [CODE]mysql_connect($hostname,$username, $password) OR DIE ('Unable to connect …

Member Avatar for studioceasar
0
70
Member Avatar for Aamit

Hi, i want to insert images as header and footer into word document file. How to do this? Any api available for this? Thanks

Member Avatar for Jerail
0
131
Member Avatar for 4789787

This code is for a forum. When you post a topic it is SUPPOSED to redirect you to the topic you were viewing before but instead it just shows a white page with the end of the url it was supposed to go to.... heres the code [CODE]<?php // forum.php …

Member Avatar for Jerail
0
590

The End.