39,320 Topics

Member Avatar for
Member Avatar for jakx12

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 …

Member Avatar for uncle_smith
0
138
Member Avatar for zskull

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 != …

Member Avatar for diafol
0
97
Member Avatar for rajeesh_rsn

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 …

Member Avatar for almostbob
0
138
Member Avatar for gpittingale

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 …

Member Avatar for diafol
0
61
Member Avatar for rajeesh_rsn

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

Member Avatar for diafol
0
56
Member Avatar for khr2003

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 …

Member Avatar for diafol
0
262
Member Avatar for rajeesh_rsn

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 …

Member Avatar for Andrieux
0
179
Member Avatar for smhnaji

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, …

Member Avatar for death_oclock
0
117
Member Avatar for rupesh Patil

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...

Member Avatar for rupesh Patil
0
145
Member Avatar for LTT

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 …

Member Avatar for LTT
0
238
Member Avatar for anuspan

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?

Member Avatar for anuspan
0
115
Member Avatar for sacarias40

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! …

Member Avatar for sacarias40
0
117
Member Avatar for Aamit

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??

Member Avatar for Andrieux
0
154
Member Avatar for Maidomax

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

Member Avatar for Yayo_SK
0
140
Member Avatar for Ragnarok

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] …

Member Avatar for Yayo_SK
0
168
Member Avatar for anchal

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 …

Member Avatar for Yayo_SK
0
176
Member Avatar for NEPHILIM

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 …

Member Avatar for mtvnot
0
224
Member Avatar for Ravigandha

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 …

Member Avatar for lordspace
0
149
Member Avatar for MDGM

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 …

Member Avatar for MDGM
0
107
Member Avatar for serdas

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 …

Member Avatar for serdas
0
83
Member Avatar for serdas

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 …

Member Avatar for lordspace
0
173
Member Avatar for nicolemcgrgr50

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

Member Avatar for anuspan
0
121
Member Avatar for gpittingale

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 …

Member Avatar for FlashCreations
0
83
Member Avatar for serdas

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 …

Member Avatar for serdas
0
111
Member Avatar for Morty222

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 …

Member Avatar for Salem
0
26
Member Avatar for gpittingale

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 …

Member Avatar for Devendar Singh
0
132
Member Avatar for gpittingale

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 …

Member Avatar for gpittingale
0
174
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for cwarn23
0
87
Member Avatar for serdas

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(" ", "'", "\"", "$", "&", "%", "-", "#", "^", "*", "(", …

Member Avatar for death_oclock
0
132
Member Avatar for nicolemcgrgr50

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 …

Member Avatar for Dani
0
81

The End.