39,323 Topics
| |
Hi, A user go to search.php and input the term. If the user want to search for an exact prhase it add to the search term " " just like Google do. Example: "apple" But when the variable is passed to search_results.php it look like this: [CODE=php] //search_results.php $var = … | |
hi friends please help me to find contact importer & tell a friend script in php | |
i delete a row of data from this [code] ........ <a href="delete.php?id=<? echo $rows['id']; ?>">delete</a> [/code] delete.php [code] <html> <body> <?php include 'recipe2db.php'; // get value of id that sent from address bar $id=$_POST['id']; // Delete data in mysql from row that has this id $sql="delete from recipe where `id` … | |
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to … | |
add.php [code] <?php include 'recipe2db.php' ?> <div align="left"><img src="Cookie Banner edited.jpg" width="1100" height="200" /> <form name="form7" method="post" action="add_process.php"> </p> <p> </p> <table align="center" border="3" cellpadding="2" cellspacing="2"> <tr> <td>catagory :</td> <td> <?php include 'recipe2db.php'; $query="SELECT id_category, category_name FROM category"; $result = mysql_query ($query); echo "<select name=category value=''></option>"; // printing the list box … | |
Hi frnds... from last 3 days i am struggling on same errors...i tried my level best..still i cant get it....this is my code... [CODE] $bottomline=stripslashes($_POST['bottomline']); or if(!file_exists($dir)) mkdir($dir)or die("Filename all ready exits"); [/CODE] when i inserting the data into table or creating directory i am getting error... [CODE]You have an … | |
hey all, been a while since I've been on here. I was wondering how I could make an rss reader for twitter, and make it so that it displays the content of my 'twit' and nothing else (like time/date ect.) Thx in advance, Maxicube | |
Hello, I'm looking for a way to make a simple multi line text box in PHP. I am trying to make a text box a couple thousand characters log. but when i try to create it, it just makes a very long text box. I can't seem to find any … | |
Hi i am fairly new to php and am trying to make an application where some1 enters a unique id which brings up a form with data in it retrieved from the database. the user should then be able to edit the information and submit & the details changed in … | |
I have one page that has several form actions: [CODE]form action="maze_enter.php" method="post" enctype="application/x-www-form-urlencoded" name="finance" target="_self"> <tr> <td colspan="2" align="center" valign="middle"><span class="style11"><a href="#" onclick="document.finance.submit();return false;">Enter Maze</a> </span></td> </tr> </form> <form action="maze_enter.php" method="post" enctype="application/x-www-form-urlencoded" name="shop" target="_self"> <tr> <td colspan="2" align="center" valign="middle"><span class="style11"><a href="#" onclick="document.shop.submit();return false;">Enter Maze</a> </span></td> </tr> </form> [/CODE] I want … | |
Hello guys, after some searching and playing around and ofcourse with alot of help. i have got this code, which basically GETs ID from browser and then sends them an email, but why isnt it working, can some one please show me why. thank you [code=php] <?php $con = mysql_connect("localhost", … | |
Hello I have a ticket helpdesk script that I am converting to make it completely skinnable. For this, there is a file called header.php which includes the link to a css file. The code is below [code] <link rel="stylesheet" href="<?php print $GLOBALS["URL"];?>/templates/gothica/aquarius.css" type="text/css" /> [/code] I want that the path … | |
Hi, I am trying to do my terms and conditions and I had trouble with this error it kept saying on line 68 I went to it and there was nothing I could see wrong, so I started all over again put it in a fresh and now it is … | |
I'm working on trying to approve photos that get posted. It works fine, but to keep files with the same name from overwriting each other I went with assigning them a random number. The problem is that even if a file is not uploaded it still writes a random number … | |
Thank you for the tutorial last time on query strings :) It worked for me, this is my working query string: [code=php]<? $i=$_GET['vehicle']; switch ($i) { case Chrysler: include("chryslernew.php"); break; case Chevrolet: include("chevnew.php"); break; default: echo "include ("nopage.php")"; } ?>[/code] However, I'm trying to get my PHP URLs with query … | |
I have a query that is returning customer data. I want to pass the $row['VisitorID'] Value on using the _GET _POST superglobal in two different links one that goes to a page to edit users profile and one that edits the users order preferences. I can get one or the … | |
Hi all I would like to start debugging and have been doing some searching on the web, but everything I find is pretty complicated. (I'm just starting to learn web developping) Does anyone know where to find good, plain, correct instructions, for setting up my environment for debugging? I'm using … | |
[CODE=PHP] <? // This is the directory to list files for. $theDirectory = "upload"; // without the / // Do you want to show directories? change to false to hide directories. $listDirectories = false; if(is_dir($theDirectory)) { echo "<table>"; echo "<tr>"; $dir = opendir($theDirectory); $counter = 1; while(false !== ($file = … | |
i am trying to make a small search script, but i cannot get it to search for a particular keyword that may end in a space... my input string is like... amit qby:name hello i want the preg_match to gimme qby:name another input string can be amit qby:name i can … | |
so i have a program that is supposed to update a table called master by increasing the clicked field by 1 for every time the email shows up on a second list (tempop); it worked fine when i tested it on a small dataset - the tables were 5000 and … | |
I read all the thread on a similar post from 2006 but did not find an answer there. I can not redirect on my localhost (Apache) or on my hosted site (Apache). I was using a function created in a php course I took then switched to a basic piece … | |
Hi, I use [inlinecode]header("Cache-Control: private");[/inlinecode] to prevent page expiry problem. It is to make browser’s “Back” button work otherwise; page expires if user hits “Back” button to go back and see previous pages. I have 3 steps buying process. 1. Delivery address selection from radio boxes 2. Creadit card details … | |
Does anyone know how I would go about searching through an array for repeated values and return the one with the smaller index? For example: $array[0]= "timmy"; $array[1] = "joe"; $array[2] = "elmo"; $array[3] = "clarissa"; $array[4] = "joe"; I need a function that will return "1" if I do … | |
Hi there! I'm very new to php and I'm trying to send an email with an attachment from my localhost. I have only managed to receive simple emails but not the attachment so far. Is there a particular problem with localhosts and attachments or it's just my scripts? (i've tried … | |
Pls, i am installing claroline and this is displayed on the browser WARNING ! SYSTEM UNABLE TO FIND CONFIGURATION SETTINGS. What can i do? | |
Hi all I'm used to programming in Java, which does support method overloading. So when starting to use PHP, I quickly found that this was not supported in PHP. But why and how is this supported with "system methods" (I don't know if that name is correct) like, for example, … | |
Dear All,, I have a search query for searching 40 fields that are belonging to 5 different tables.. I have used INNER JOIN for this purpose... I have stored the search conditions into a $string variable and the result is getting correctly.. Here comes the problem.... I want to paginate … | |
Hello Guys, i am currently using my localserver dont have a hosting where i can test it, so i would like to know if this basic idea will work or not. Here is the code do you think if i enter the ID it will get the email and then … | |
hi guys i have seen this new line of code and surprised! mysql_connect('localhost','root','') or testFun(); i know that this is used in db connections i want to know all the applications of 'or' guys plz help me | |
okay guys ive got this page in which i want to verify the key that the user inputs with the key in my sql database, and then it updates a row called user_okay when i click on the enter button. [code] <?php session_start(); include ('dbc.php'); //if ($_POST['Submit']=='Enter') // { $keys … |
The End.