39,316 Topics

Member Avatar for
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
145
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
384
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
245
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
575
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
806
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
Member Avatar for mcdhappy80

Hi. This is my first topic on this forum and I hope I'm posting in the right place. I have a need to generate three different (yet similar), RTF based Template, reports. I have successfully created 2 out of three. On the problematic third I cannot make the script change …

0
56
Member Avatar for nakresimin

why do i get this error? can you please help me to fix it? [url]http://204.45.7.122/[/url] [ICODE]overHead(); echo $html->pageTop(); include('loginmenu.php'); include(inc_dir . "/left.php"); echo $html->pageMiddle($config["page_name"]); $toplamkullanicilar = $adetler["JAS_FD"]+$adetler["JAS_FS"]+$adetler["JAS_TP"]+$adetler["JAS_TH"]+$adetler["JAS_OH"]+$adetler["JAS_BG"]+$adetler["JAS_OK"]+$adetler["JAS_OL"]; $ortadakipara = getMoney("JAS_FD")+getMoney("JAS_FS")+getMoney("JAS_TP")+getMoney("JAS_TH")+getMoney("JAS_OH")+getMoney("JAS_BG")+getMoney("JAS_OK")+getMoney("JAS_OL"); ?> [/ICODE]

0
121
Member Avatar for dean8710

i have created a board so user can post comment but, some error occured: the special character ' is not recognize it come like this: correct word: Hey I'm your life turned to: Hey Iâ��m your life This is because, i used: [CODE]<?php echo wordwrap(nl2br(htmlentities($message)), 200, "<br>\n", TRUE); ?>[/CODE] htmlentities() …

Member Avatar for cereal
0
119
Member Avatar for badface

Hey guys!!! Am building a system that user will be searching data from database..I want to display those data in table where a whole row will be a link to a specific data.For example a table will list some members of a community and each row is a link to …

Member Avatar for broj1
0
102
Member Avatar for baig772

Hi all What is ORM (Object Relational Mapping)? I have just heared the name ORM, but don't know what it does :)

Member Avatar for chrishea
0
103
Member Avatar for anita_86

Hi all.I found this code on forum.But dont know how to alter this to show the records datewise.I want to display sales and purchase for given period of time and show the balance quantity by deducting total sales from the total purchase. Here is my code: [php] <?PHP if(isset($_POST['Submit'])) { …

Member Avatar for anita_86
0
127
Member Avatar for m1n1m3

Hi! I have problem that i fail to find solution for and im looking for some help from you as im hopelessly struggling for answers. So i have a HTML table and some cells are filled with id-d div-s. The problem is only the first id-d cell is filled with …

Member Avatar for m1n1m3
0
182

The End.