39,402 Topics
![]() | |
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) … ![]() | |
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 … ![]() | |
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]> … | |
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 … ![]() | |
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]. … ![]() | |
![]() | 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 … ![]() |
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? ![]() | |
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 = … | |
[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] | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … ![]() | |
[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 … | |
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 … | |
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 … | |
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 … | |
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] | |
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() … | |
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 … | |
Hi all What is ORM (Object Relational Mapping)? I have just heared the name ORM, but don't know what it does :) | |
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'])) { … | |
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 … | |
![]() | Hi there, recently I've became interested in creating some scripts to automate certain tasks and procedures in an online game I play, Lord of Ultima. This is a web based game that requires you to maintain a connection at all times in order for you to receive data from the … ![]() |
Hi, I am using php mail for sending an email for contact us form. Given below is the code for contact us form. Please let me know how to send these information in table format. [ICODE] <!-- Document : contactus Created on : Aug 26, 2011, 2:15:27 PM Author : … | |
the admin page goes nowhere before it works very well [CODE] <?php session_start(); if (isset($_SESSION["manager"])) { header("location: index.php"); exit(); } ?> <?php // Parse the log in form if the user has filled it out and pressed "Log In" if (isset($_POST["username"]) && isset($_POST["password"])) { $manager = preg_replace('#[^A-Za-z0-9]#i', '', $_POST["username"]); // … | |
Hello and Merry Christmas to all! Can anyone explain the correct behavior of a web application: what PHP is used for, what JavaScript is used for? For now, I want to make a simple page with radio buttons, drop down lists and text areas. Some will have data from the … ![]() | |
Hello Guyz, I could not found any Forum for Web Servers or something related to my problem so I am posting it here. So I am having trouble with Regular Expressions in HTACCESS. So what I have in my website is : [B]ROOT : (my web root is in a … | |
Hey guy's, im kind of a very big beginner.. haha.. I followed this post [URL="http://www.daniweb.com/web-development/web-design/html-and-css/threads/97183/472098#post472098"]here[/URL] and i got everything working and running up to speed, What im wanting to know how, is HOW do i actually "include" the Php into my Protected area im wanting, I have a HTML Page, … | |
how string comparison is done in php? i wan to copmpare two strings and result i want is the same letters in both strings? any help plz | |
Hi, I have some problems with the code below. Also below the code I have two pictures one from IE one from Chrome. [CODE] <object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="280" height="256"> <param name="fileName" value="<?php echo $check ?>"> <param name="animationatStart" value="false"> <param name="transparentatStart" value="false"> <param … | |
table name:student enroll id name date_of_admission 1 kiran 2008-11-11 how to minus date of admission column in current date in phpmysql? i want year difference and month difference separately ![]() | |
Greetings, I am building a new site, HTML, PHP, MYSQL. I am having a discussion with a coworker regarding how I should handle my PHP functions that handle my SQL. In my HTML page I call my PHP function, which accesses my MYSQL. Should my PHP function: - extract the … | |
Hello! First of all I want so say that I really like this is forum and hope that you can help. I want to install php on my computer, but for some reason can't. I read that the easiest way to install it all in one go is with wamp, … | |
hi m trying to make a registeration form. i have made it and trying to validate it. m new comer so dont have much knowlege so having problems in validating form. i have three files one is registeration form. other is geting value from form and storing it in database … | |
hey expert, I m working on a project where i have to genrate pdf from given data using php give me your expert suggestion.... how its happend......? | |
Hi, I am trying to develop a blog and stuck up in managing the blogs. The logic with which I am working is that the user who has logged in should be able to see his or her own blog to manage it of course. Now for this I have … | |
Hi all Could someone show me an example how to use Blowfish with crypt? [code]$password = crypt($_POST["password"], '$2a$07$0k5ls4mbfakdl2mbk5lo9dkr$');[/code] Looks strange as well as the output. ![]() | |
hi i want to create some random password for users who sign up in the website also i want to use from rand command in php for creating some numbers among some characters and the results will be some things like this : sa231dsaw22sa suppose it as a example of … | |
Hi, I'm doing a registration system and as you can see when i verify the fields, if it's empty it says that the FIELD_1 misses. And what i want is if the field is empty says that and then goes back, but i don't wanto the info already written disappears. … | |
Hi im attempting to create a room viewing system where by The building selected with a drop down - this uses an sql query to store the data of the building from a different table rooms then if its available from now ie rooms free for 1 hour from now … | |
I have the following error: (include_path='.:/usr/share/php:/usr/share/pear') in /home/sloki/user/masterli/sites/masterlink.co.id/www/cgoods/banner.php on line 15 Line 15: include("includes\koneksi.php"); That error appears after I upload my website online. Why is it ? | |
Iam Making Register & Login System Thats My Code [CODE]<?php include ('func.php'); include "Admin/config.php"; ?> <!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" dir="rtl" lang="ar"> <head> <title>ÇáÊÓÌíá</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1256" /> <link href="favicon.ico" rel="icon" type="image/x-icon" /> <link rel="stylesheet" type="text/css" href="Style.Css" /> </head> <body> <?php include "header.html" ?> … | |
hi, i looked all the codes but i could not really see it - i dont really understand coding-. after registration this website send an activation code but i want to make the user active when they actually register. can you please help me what i should look for or … ![]() | |
Hello guyz.. Now am currently doing a SMS portal site . I have 2 frames like , <frameset rows"" cols""> <frame src"page1.php">Page1</frame> // Navigation <frame src"page2.php">Page2</frame> // Main Content </frameset> Navigation : Static main Content : Dynamic || By this case when user press F5 the Main content frame goes … | |
Hi, im making my new CakePHP project and I've got some problems with validating data, which comes from form. I mean i do know how to add custom rule but i don't know how should regex for 9 numeral telephone number looks like. [code] function checkPolishNumber($inputValue){ $regex = 'what to … | |
Okay, so instead of the ID's of each record showing up in the form that is displayed for the user, there are radio buttons. I want to create it as when the user clicks on one of the radio buttons, that record is selected. Then the user, clicks on the … ![]() | |
Hi, I have a url like this product.php?id=xyz how to create url like category/subcategory/productname/id/ Now i have edited like RewriteRule ^(.*)/(.*)/(.*)/(.*)/$ /100bestbuy/%QUERY_STRING}product.php?id=$4 but it is throughing errors. if it is not possible give me any alternate way. please help me..... ![]() |
The End.