39,320 Topics
| |
The code is this: [code=php]<html> <head> <link rel=stylesheet type=text/css href=style.css> <title> Search Results </title> </head> <body> <?php include("header.php"); ?> <center> <div class=indexboxlarge2> <?php SESSION_start(); include("dbcon.php"); $searchresult = $_POST['result']; dbcon(); $query = mysql_query("SELECT * FROM user_info WHERE 1_name LIKE '%$searchresult%' OR WHERE 2_name LIKE '%$searchresult%'") or die(mysql_error()); $total = mysql_num_array($query); if … | |
Heres my Code Goodluck lol any how the if statement works but always coming up true not false dont understand why [CODE]$_POST = valid_post($_POST); $i=1; $i4=1; $result4 = mysql_query("DESCRIBE ".$table2.""); while($row4 = mysql_fetch_array($result4)) { $test4 = mysql_num_rows(mysql_query("DESCRIBE ".$table2."")); if($row4["Field"] == "id") { print''; } elseif($row4["Field"] != "id" AND $i4 != … | |
I had a php server and a directory named "images" in it. I need to change the folder's permission to 0777 via php script.... I had the code like this [CODE]chmod('/images',0777);[/CODE] But It will give the following results... [CODE]Warning: chmod() [function.chmod]: No such file or directory in /home/keralaba/public_html/bkp3/new.php on line … | |
Hi there seen as i have come acustom for asking for help here i was wondering if any body could give me a basic example of a mathamatical function that calls array's from mysql to a php script and then does a basic maths sum with them would appreciate the … | |
Hi I need to do a image upload script using PHP. Please let me know how can I do it with directory permission 0755... Please help me...... My code is working if I change the directory permission to 0777 in which images are saved .. Please help me... Thanks Rajeesh | |
hello I am trying to make a script that can upload multiple files (currently I set it to five). I made the form look like this: [CODE]$i = 1; while ($i <= 5) { $form .= "here goes the content of the form"; $i = $i + 1; }[/CODE] I … | |
Hi I had a community web site and I need to show "Recent Visitors" under a profile ( just like in Orkut ) I do it successfully and that will show in the page like this ... Name1, Name2 , Name3 .. But I need to make link in each … | |
Hello friends As you know, the way to manage the code that you write, is very importnant. By manage, I mean that you have a good way to know where to control the core of the project, the objects' act, and managing separating view from object core. As I've reasearched, … | |
i have crated web page usng netbeans .. in my php code i have fetch the data in array now i want that data to be pass that data in js file which in that project please help me... | |
Hello! Wondering if someone could give me a hand.. Im looking to make a form kind of like this one.. "http://www.nvidia.com/Download/index.aspx?lang=en-us" Where the fields change depending on what is slected.. I would like to link the values of the of the form to a mySQL DB. So the form when … | |
hello everyone, im using php 5.2.6 , apache 2.2.10 and mysql 5 for my server.everything works fine excepts sessions.i have configure the php.ini file for sessions.but still its not working.im using windows platform.can anyone help me to settle this? | |
i am designing a few pages. the pages have a few main divs and that is how i am inserting the background(with css) i can render the whole background to the browser but i dont get how to nest divs inside divs with OOP. any help would be greatly apreciated! … | |
Hi, In my $str="DAniweb it DISCUSSION Community" I want "Each First" character is capital and rest of lower case " If String is $str="[COLOR="Red"]DAniweb it DISCUSSION Community[/COLOR]" Ans-> [COLOR="Green"]Daniweb It Discussion Community[/COLOR] How to do this?? | |
Hi! I am creating a simple website, and I would like to have an option on one page to print the contents of the page by clicking a button, or seeing it in PDF format by clicking another. What is the simplest way of doing this? Mladen | |
I have been working on flatfile and directory system in PHP and not that I have got the script working I want to make it more secure. What I have is one directory with sub-directorys insided them and insided the subdirectorys are about 20 files each. Forexample: [code]directory/ sub1/ sub2/[/code] … | |
i hav a problem m new to php nd i started with writin my first page but whenever i start my browser i see the complete code and nt the output i need i wrote [code=php]<html> <title>my php page</title> <body> <?php echo "hello there!"; ?> </body> </html>[/code] the output is … | |
How are you all. I have set up a PHPBB Forum with Version 3.0.0. software. I saw a PHPBB3 (Version 3.0.0) skin on phpbbhacks. I downloaded the Zip file to my C drive, and extracted the file with 7zip to folders.I used WS FTP client to upload the files and … | |
Hello Guys, My problem is when i am attaching files and sending in mail through PHP code everything is working fine and i am getting attached files to email. But if the destination address is of yahoo or hotmail then they the attached file is not displaying. It is displaying … | |
Hi, Im having a wierd problem with my mysql query: I have entries in my database with a rating (out of 10) and a timestamp, and I want to pull out the highest rated entry from the past 30 days. These are the entries I have: [CODE]Primary key ----------------- Rating … | |
this is code diplays everything in one page how can i make this show more then one page? thak you [code]// Addon Specific Function function viewallusers_display_addon_link() { // Show the link for the menu $display = '<a href="index.php?action=addon_viewallusers_showpage1">View All Agents</a>'; return $display; } function viewallusers_display_addon_page() { // display all the … | |
hi, i have a program that i am using from an open source, it does not have a privete messaging system like this web site has, is there any way i can find some kind of a code to cretae one for the site, is something like that possible, i … | |
Can anyone help me i need to make it so that my customers can click a button and it will preform this mysql query *UPDATE Users SET groupid = 'P' WHERE userid = '$id';* and then re-direct them to a specific page. Thanks | |
Invalid query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''12' at line 1 ----------------------------------------------------------------------------------------- Seen as someone kinda helped me with the last thread i posted i have now been issued with … | |
this is a very messy code, i tried to copy from one to other. it displays images and the name and last name of the person. it does it vertically and i need to show let say in two columns so the third image and the name last name falls … | |
I have a feed for UPS that gets real time shipping costs for packages shipped throughout the US. The feed works fine, except if someone enters AE or AP as the state if they are shipping to a military base overseas. I get this error: 111286:AE is not a valid … | |
So i have this script, instead of having the output as what is in th script below, i would like to have it in a table i have had a couple of gos at this and failed......MISERABLY!!!. Could anyone help me out with an example. ps there are more fields … | |
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/sites/miraclehosting.co.uk/public_html/scdc.php on line 169 --------------------------------------------------------------------------------------- Can anyone help here this is doin ma ed in!! gggrrrhhhhh i get the above result when Load the script into the browser. here is the form: [code=html]<form action="scdc.php" method="post" name="chooser"> <label>Select Parish … | |
I have been using WAMP to setup my forum (PHPbb3) and and a site. For some reason I don't know, PHP installation of WAMP was crashing with message can't find logger.dll. I removed my www directory and uninstalled WAMP and re installed, that is when I knew that I forgot … | |
hi, i am very very new to php. have a some code like this [code=php]// Get file name from URL and remove any bad filename chars. $url_parts = explode('/', $url); $num = count($url_parts)-1; $file_name = $url_parts[$num]; $badchararray = array(" ", "'", "\"", "$", "&", "%", "-", "#", "^", "*", "(", … | |
I'm new to php, but not to programming, and i'm using very basics of sessions to manage a user being logged into my site. When testing it, everything works until I move away from my site. I would like the session to be destroyed if you navigate away, is there … |
The End.