39,323 Topics

Member Avatar for
Member Avatar for daniel36

Is here any way to send information to two url with the same form using get of post method at one time?Please suggest me?

Member Avatar for EvolutionFallen
0
130
Member Avatar for stoopkid

I'm having some trouble collecting data between 2 different years (ie: December 2011 & January 2012). This is a timeclock system where punches are stored as: DD-MM-YYYY (31-12-2011). I want to be able to search for dates between: DD-MM-2011 through DD-MM-2012 but am coming up empty. When using the same …

Member Avatar for stoopkid
0
91
Member Avatar for Mayank23

i need help, i want to pass a value to javascript from php and it keeps giving me "null". i want to get what picture the user selected. [CODE] <?php mysql_connect('localhost','root',''); mysql_select_db("ajax"); $query="SELECT * FROM xxxx"; $result= mysql_query($query); while($row= mysql_fetch_array($result)){ $rating=$row['ID']; echo "<img src =\"" .$row['filepath']."\" /><br/><a id=".$row['ID']." value='rating' onclick='getrating();'> …

Member Avatar for stbuchok
0
193
Member Avatar for whit89

Say i wanted to search a table with multiple values separated by spaces. Say Brand Colour Dulux Red Green Blue Crown Pink Red Yellow So searching red would return Dulux Red Crown Red or searching red pink Duluz Red Crown Red Pink.

Member Avatar for whit89
0
129
Member Avatar for emorjon2

Hi all! I am developing a java-game where you are building with balls. It will connect to a server to create a huge map available for everybody playing this game.:) For this, I need a PHP-file who will append some urldata into the file data.txt, for adding a ball into …

0
118
Member Avatar for dean8710

I have a code to trim the long word for the specific length and replace it with '...' but, it has a problem, where, if user's name dont have space, its will look wierd.. heres the code: [ICODE] <? function truncateString($string, $length, $append = '...') { $length -= strlen($append); // …

Member Avatar for dean8710
0
152
Member Avatar for Stickie

Hi, I'm not familiar with the AJAX way of doing this, hence why I'm posting this. I've got this form that needs to check if the user input is already in the database, if this isn't the case it should disable the submit button and display an error depending on …

Member Avatar for fobos
0
490
Member Avatar for kaosjon

Hi, i am not sure whether this is in the right section or not but i am building an file upload site and want to be able to scan the files on upload for viruses etc.. How would i be able to do this? Any ideas to get me started? …

Member Avatar for pritaeas
0
147
Member Avatar for theakshay

Hey guys, i have a javascript code for the "state-city" selection dropdown in my form. Now i have to provide an option for the user to add a state or add a city if it is not already present in the dropdown. I'm using php and mysql. Please help. Thanks …

Member Avatar for cereal
0
190
Member Avatar for leechyeah

Dear, I am making an ordering form and all of the products' data are stored in a MySQL database. The menu form to select products are all [B]working with plain HTML[/B] not php echo's. But now I can change products' info via a separate web page by updating the MySQL …

Member Avatar for leechyeah
0
385
Member Avatar for |-|x

Hi all Is anyone here familiar with coding in WolfCMS? I have been asked to add a form page to an existing website based on WolfCMS, but have little experience on the platform. For some reason my form doesn't seem to be receiving the POST data, or executing the processing …

Member Avatar for diafol
1
269
Member Avatar for peterpa

HI , CAN ANY ONE TELL ME HOW CAN I UPLOAD A FILE TO MY WEB SERVER WITH OUT USING <INPUT TYPE="FILE"/> , I JUST WANNA USE I BUTTON TO UPLOAD A FILE , AND WHENEVER I CLICKED ON THAT BUTTON I WANNA A FILE WHICH IS ON MY SYSTEM …

Member Avatar for diafol
0
235
Member Avatar for dineshdelhiswam

i ve tried all possible solutions for solving this error , but couldnt fix it.please fix it [CODE] <?php session_start(); include('databaseconnect.php'); $qno=''; $todisplay=''; $uploadedfile=''; $filename=''; $answer=''; $toolspec=''; //$uploadvar=''; $qno=isset($_REQUEST['qno'])?$_REQUEST['qno']:""; if(isset($_SESSION['username'])&&(isset($_SESSION['id']))) { $username=$_SESSION['username']; $idno=$_SESSION['id']; $mquery2=mysql_query("SELECT * FROM student WHERE id ='$idno'"); $row2=mysql_fetch_array($mquery2); $year=$row2['year']; $mquery=mysql_query("SELECT * FROM questiontable WHERE qno='$qno'"); $numrows=mysql_num_rows($mquery); if($numrows==0) …

Member Avatar for diafol
0
161
Member Avatar for Eppy Azmi

i have a problem to count explode function, here is my coding [CODE] <?php $query = "SELECT Indication, COUNT(Indication) FROM reg WHERE Indication IS NOT NULL AND Indication != '' GROUP BY Indication"; $result = mysql_query ($query) or die(mysql_error()); while($row = mysql_fetch_array($result)){ $medic = explode(",", $row['Indication']); for($i = 0; $i …

Member Avatar for diafol
0
191
Member Avatar for bflack

I want to display the images on the php page. Can anybody help? heres the code. Thanks in advance. [CODE] <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="generator" content="CoffeeCup HTML Editor (www.coffeecup.com)"> <meta name="created" content="Sat, 17 Dec 2011 01:37:35 GMT"> <meta name="description" content=""> <meta name="keywords" content=""> <title></title> <!--[if IE]> …

Member Avatar for bflack
0
200
Member Avatar for nakresimin

what would cause this error, it seems that database can be connected but i cannot do it with the below code to this specific database on this server but i can connect to some other host database with below code, can you please help? [ICODE]Warning: mysql_query() [function.mysql-query]: Can't connect to …

Member Avatar for diafol
0
579
Member Avatar for sammrat23

I have a website built in .php but we have converted it to .html by using "mod rewrite". the mod rewrite code used in .htaccess is "RewriteEngine on RewriteRule ^(.*)\.html$ $1.php" Now the problem is my website shows up in both .php and .html. for example: [url]www.mydomain.com/index.html[/url] and also [url]www.mydomain.com/index.php[/url]. …

Member Avatar for diafol
0
172
Member Avatar for champmanking

Hello all, I am looking for help on how to code this: I would like to have a page where there is a box where registered users can type something then on pressing the button a new page is created displaying the text they entered and boxes for other people …

Member Avatar for champmanking
0
1K
Member Avatar for huntaz556

I'm learning php and my dad told me to make somthing where you login and if the person has a certain permission can see somthing diffrent then a diffrent user how would i go about this?

Member Avatar for diafol
0
104
Member Avatar for -==Zero==-

hello iam have some trouble in my page code this is the profile page code i started the session in the first row of page and this is the code that have a problem [CODE]<? if ($_SESSION['username'] || $_SESSION['password']) { $query = "SELECT * FROM users WHERE username='$_SESSION[username]'"; $result = …

Member Avatar for -==Zero==-
0
525
Member Avatar for accra

[ICODE]Can any one help with a simple php code to get time difference this is what i did, don't be mad at my effort, i tryed other ways and failed.[/ICODE] [CODE]$tf_con =time(st$_POST['time_out'] - $_POST['time_in']);[/CODE]

Member Avatar for accra
0
133
Member Avatar for davy_yg

style.css [CODE] #header { background-color: #999999; height: 200px; } #login { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; height: 50px; background-color: #FFFF00; background-image: none; } #searchwrapper { width:310px; /*follow your image's size*/ height:40px;/*follow your image's size*/ background-image:url(Images/search_box.jpg); background-repeat:no-repeat; /*important*/ padding:0px; margin:-40px; position:relative; /*important*/ left:800px; } [/CODE] index.php [CODE] <div …

Member Avatar for pritaeas
0
147
Member Avatar for peter20

Hi, I am trying to read a file but I have a problem because it is read in the end an empty line (this line does not exist) My code is [CODE] $file_handle = fopen($newFilewithFolder, "r") or exit("problem."); $getfileInfo = fgetcsv($file_handle); $numcols = count($getfileInfo); // my file is opened again …

Member Avatar for fobos
0
906
Member Avatar for kukula

Hi everyone, I have problem with form at my site. When you fill the text boxes it works fine but when you click SEND, the site is refreshing, form is clear and no message has been sent. My knowledge about PHP is very low. I found the tutorial which shows …

Member Avatar for fobos
0
221
Member Avatar for StatikStasis

Hey Everyone! It's 6:29pm EST and I have been working on this same problem since about 9am. I'm usually able to Google my way to the solution- but I have reworded my search numerous times and went through mountains of forums trying different approaches but to no avail. Here is …

Member Avatar for StatikStasis
0
811
Member Avatar for m1n1m3

Hi! I have a JS ajax function that goes into PHP file and returns (by echo) javascript code (a string data). All that is echo-d is in "return_data" variable. The problem is that returned JS code wont run. For example if i try to return simple JS function alert from …

Member Avatar for diafol
0
154
Member Avatar for ravisangam

How can get the contents of YUI rich text box in HTML format to POst.php page. [CODE]index.php <?php if (isset($_POST['submit'])) { echo 'You entered: <br />'; echo 'name: ' . $_POST['name'] . '<br />'; // this works fine echo $_POST['message']; // this does not work } ?> <!DOCTYPE html PUBLIC …

Member Avatar for diafol
0
337
Member Avatar for shamsidah

[CODE]<form id="form1" name="form1" method="post" action="updatebodyNo.php"> <table width="356" border="0" align="center"> <tr> <td width="94"><span class="style12"><span class="style12 style57">BodyNo</span></span></td> <td width="155"><span class="style12"><span class="style12 style57">Defect Code</span></span></td> <td width="93"><span class="style12"><span class="style12 style57">Quantity</span></span></td> </tr> <tr> <?php include ("connection.php"); // get value of id that sent from address bar $bodyNo=$_GET['bodyNo']; $sq1 = mysql_query ("SELECT * FROM paintshop WHERE …

Member Avatar for urtrivedi
0
131
Member Avatar for fika

hi, there.. i have few problems here... i have 2 table in my database.. and i want to take few data from first table and insert it into second table... how can i do that?? i don't want the user write it twice in different form... is there any way …

Member Avatar for fika
0
123
Member Avatar for sanjaypandit

hi i have below structure in my database table id eve_id cat_id member add_date 1 Tel1 5 1,2,3,4,5 0000-00-00 2 Acc2 2 3 0000-00-00 3 For3 3 1 0000-00-00 4 Acc4 2 5 0000-00-00 5 Acc5 2 6 0000-00-00 now my query is as below [CODE]$memque="select * from tblevent where …

Member Avatar for simplypixie
0
158

The End.