39,320 Topics

Member Avatar for
Member Avatar for Clanstrom

Hi there. Thinking about creating a membership registration-enabled website, that will store people names and some info about them, after they register, but what i can't begin to make is a PHP code that whenever, a user searchs ( In a search box ) a name of another user, that …

Member Avatar for ivatanako
0
204
Member Avatar for nitnayak

Hi i am new for PHP. I want help, I added one selection box in my form and some text box and one Save button.When page load Selection box fills with some data form MySQL table,i know this much only now i want when i select other value from selection …

Member Avatar for saadsaidi
-1
863
Member Avatar for Kniggles

[CODE]<HTML><HEAD> <?php $ids = ("number.txt"); $id = file($ids); echo $id[0] ?> <INPUT value=("$id[0]") name="number"> </HEAD><BODY> </BODY></HTML>[/CODE] How come <INPUT value=("$id[0]") dos not = the out put 5 or what ever ("number.txt") is ? it should be in a read only text box id = number.

Member Avatar for Kniggles
0
168
Member Avatar for crazycat503
Member Avatar for chrishea
0
51
Member Avatar for nasir.perwaiz

I am developing a web application in php. My task is to download all the mails from a mail server and save it into the database and the attachments will be saved in a folder. The user then opens up the mails with their attachments inside the application. The mails …

Member Avatar for mindmyweb
0
119
Member Avatar for jrotunda85

I have a large amount of items stored in my DB (around 3,000 total and growing) and I have a list of them sorted alphabetically that displays on a page. I was interested; however, in having the items display in blocks instead that look something like: [INDENT][B]A[/B] [All items that …

Member Avatar for diafol
0
123
Member Avatar for jrotunda85

I am in the process of trying to create a search option for my database; however, I need the user to be able to submit one search which looks at three tables in the database. I'm using the following right now and it's working for each individual one (I have …

Member Avatar for jrotunda85
0
207
Member Avatar for navdeep7489

Can anybody tell me how to handle more number of requests on server using PHP ? If there are 1000 request capability of web server at a time and if more number of requests (say 1500) are encounter on server at a time, then how the SEVER maintains and process …

Member Avatar for chrishea
0
112
Member Avatar for ofir0803

Hi i have this string: [CODE]<div class="col-price"> <h4>you save</h4> <span ><span class="currency">$</span>32</span> </div> <div class="col-price"> <h4>discount</h4> <span >52%<span class="persent"></span></span> </div> <div class="col-price last"> <h4>original price</h4> <span ><span class="currency">$</span>62</span> </div>[/CODE] i want to be able to find the values of: [I]you save[/I], [I]discount[/I] and [I]original price[/I]. the desierd output: 32, 52, …

Member Avatar for kekkaishi
0
142
Member Avatar for veledrom

Hi, If you set [B]$dowhat [/B]to [COLOR="Green"]"Clean"[/COLOR], I get this error message : [ICODE]Warning: setcookie() expects parameter 1 to be string, array given in C:\wamp\www\....[/ICODE] which is line 18. However, if I remove unserialize() function from same line, I get [ICODE]Warning: Cookie names cannot contain any of the following '=,; …

Member Avatar for veledrom
0
2K
Member Avatar for Ubiad

copy in your program and then run.. [CODE]void Ubaid(int x)[/B] //this is function x value is 5 or directly set x=5 { // x=5; for(int i=x;i>0;i--) { printf("\n"); for(int j=1; j<=i; j++) { printf("%d",j); } for(int u=i-1;u>0;u--) { printf("%d",u); } [B]}[/B] //start another from here that print the opposite for(int …

Member Avatar for Ancient Dragon
-5
1K
Member Avatar for theighost

Hello, I want to write xml with php and Im using the code in this tutorial: [url]http://www.ibm.com/developerworks/library/os-xmldomphp/[/url] I've made the php page and everything looks fine when I access the PHP file, I get the XML structure and all. the problem is, it works only if the file in in …

Member Avatar for kokoro90
0
179
Member Avatar for Graphix

Hey everybody, Lately I have written the game Hangman in many different languages (C, JavaScript, Java and PHP so far). Here is the code snippet for PHP! It uses a words file, on the bottom of this post you will see a small example of a few words. The source …

Member Avatar for Nick Evan
0
2K
Member Avatar for Chub97

I have started work on a new project and it is basically a database site for the new MMO if you have heard of it SWTOR and basically I need a solution on making it go to the page linking to the text entered into the search bar. So what …

Member Avatar for Stefano Mtangoo
0
267
Member Avatar for Scottmandoo

in the below code, everything works. However if the user is logged in (where is says html goes here) it wont display anything at all. [CODE=php]<?php // Connects to your Database mysql_connect('host', "user", "password") or die(mysql_error()); mysql_select_db("database") or die(mysql_error()); //checks cookies to make sure they are logged in if(isset($_COOKIE['ID_'])) { …

Member Avatar for happytogether
0
101
Member Avatar for daniel7912

Hi, At the moment I am pulling a record from the database which is in datetime format. Could someone please tell me how I can modify this to just display the time and exclude the date? Many thanks for any help. [CODE]<?php $time = mysql_query("SELECT * FROM gps WHERE imei …

Member Avatar for lyrico
0
240
Member Avatar for Kniggles

[CODE]<?php include ("counter.php"); ?><HTML><HEAD><?php function sidney() { global $id; include 'counter.php'; } sidney(); echo "$id"; ?><META name=GENERATOR content="MSHTML 8.00.7600.16722"> </HEAD><BODY><INPUT value='[$id]' name="player number"></BODY></HTML>[/CODE] please can you explain why [$id] dos not echo a number ? thanks.

Member Avatar for Kniggles
0
134
Member Avatar for amazed

How we can search images similar to our image on internet or in our local directory? Further how we can recognise that image is of human or animal or some abstract like mountain, road etc?

Member Avatar for amazed
-2
139
Member Avatar for RisTar

Hey, Im working on an application that will let me send group emails using PHP. All the emails are going to be stored in a database.. I expect to have a lot of email addresses, maybe thousands. Ive used the MAIL function before to send individual emails but i never …

Member Avatar for MagicMedia
0
128
Member Avatar for zack_falcon

Okay, so I'm doing an e-commerce website for my school project. Basic run down of the cycle is that the user logs in, views items, adds the items that he likes to his shopping cart, and checks out the items at the shopping cart. Now, for the the add to …

Member Avatar for zack_falcon
0
94
Member Avatar for Kniggles

why dos the hit number not show up at $A ? [CODE]hitcounter.txt<HTML><HEAD> <META name=GENERATOR content="MSHTML 8.00.7600.16722"></HEAD> <BODY>0 0</BODY></HTML>[/CODE][CODE]<HTML><HEAD><TITLE>hitcounter.php</TITLE><META content="text/html; charset=utf-8" http-equiv=Content-Type><META name=GENERATOR content="MSHTML 8.00.7600.16722"><STYLE type=text/css>BODY { FONT-FAMILY: verdana, arial, sans-serif }</STYLE><?php $count_my_page = ("hitcounter.txt"); $hits = file($count_my_page); $hits[0] ++; $fp = fopen($count_my_page , "w"); fputs($fp , "$hits[0]"); fclose($fp); echo $hits[0]; …

Member Avatar for tomato.pgn
0
210
Member Avatar for sindhuravindran

hi.. i developed the GUI for the grid in my company.but i have problem in executing the linux coommands thru php scripts.my platform is linux.i use php5,mysql n apache 2.0. pls help me how to run the linux commands thru php code. eg: <?php $display = exec('ls'); echo "$display"; ?> …

Member Avatar for sindhuravindran
0
70
Member Avatar for hawx

Hi all, I have a table with multiple apps listed on it. The table is auto populated with the all available apps. The admin then has a options to assign user permissions e.g. user, admin or none. I have attached a pic of my table. I wanted to know how …

Member Avatar for MagicMedia
0
118
Member Avatar for nyler01

HI there.. I've spend almost a day looking for a script for image upload but unfortunately, i see none. so, I consider writing a thread here at daniweb so the advance programmer there will help me with my problem. Please help me in creating a script that will enable the …

Member Avatar for nyler01
0
263
Member Avatar for Kniggles

can anyone see where i am not reciving the results I am looking for ? please, [CODE] ?><META name=GENERATOR content="MSHTML 8.00.7600.16722"><?session_start();if(!session_is_registered(myusername)){header("location:main_login.php"); } ?> <P> <? echo "PLAYER:" .'($myusername)';?>[/CODE] this code is spose to echo out the players login name from the check_login.php page from before. thanks.

Member Avatar for Kniggles
0
204
Member Avatar for blueRo

hi all,, in my project, i have to use matching between two ranked lists, one for student, he choose 6 wanted project (by rank), that he want to assign, and the other list is for the project, where the supervisor can choose 6 student (by rank).. then after all choices …

Member Avatar for rubberman
0
394
Member Avatar for serdas

hi, is there anyone here know how to create a chat bot with video? thank you

Member Avatar for diafol
0
85
Member Avatar for aaraf

hi I had question:sometime when I post values from one page to another and using it in some php code it don't work but other time the same page with the same code work just fine WHY?????:@ is the problem in the browser ? how to fix that

Member Avatar for chrishea
0
115
Member Avatar for jrotunda85

I have a question regarding Google Maps integration I am planning for my site. Right now I have a list of approximately 5,000 addresses (Street Address, City, and Zip Code). I would like to add two columns to the table these address are stored in for Longitude & Latitude so …

Member Avatar for mschroeder
0
271
Member Avatar for jacob21

I am working on a search script in which i have to search from the my sql database when a user enter some keyword I am using this code for searching.pagination is not working fine. Could you please tell me another good script for searching in my sql. Thanks [CODE] …

Member Avatar for jkon
0
145

The End.