39,402 Topics

Member Avatar for
Member Avatar for HelenLF

I wonder if this can be done. I have a select drop down box where the options are populated form a field in a database table something like this. $SQL = "SELECT DISTINCT category FROM atable ORDER BY category"; $result = mysql_query($SQL); echo "<select name='addCategory' size='6'>"; while ($db_field = mysql_fetch_assoc($result)) …

Member Avatar for HelenLF
0
117
Member Avatar for ashwani2711

I have an existing JSP website which I would like to painlessly add CMS functionality to. The site is a intranet portal and is backed by a database etc. however some pages like News and Events etc. I would like the user to be able to edit using a simple …

Member Avatar for chrishea
0
88
Member Avatar for vijaysoft1

if some one is posting a spam content like this , what we do . Tell me any way in php (or HTML) to prevent this , means i want to display any long text in my fixed size table ( eg: 500 pixcel width) Suppose some users didn't press …

Member Avatar for vijaysoft1
0
147
Member Avatar for Jord09

Hi I'm really puzzled on this one. I'm sending data from a form to be written on a line inside a file. However I've tested this a few times now and occasionally the line will end early when writing and it really messes things up due to another process depending …

Member Avatar for Jord09
0
105
Member Avatar for ramjo

Do you of any site sites that has open source on KMS or any website that i can go to see what king of information i can get on how to create on php.

Member Avatar for hireaprogrammer
0
143
Member Avatar for vairvixen

I have a sendmail.php script which evaluates whether or not certain pieces of information are available and/or are within the correct parameters. Within this code I have defined two variables : [code] $maxsamples = 3; $minsamples = 1; [/code] I also have another variable which is a summation of several …

Member Avatar for darkagn
0
113
Member Avatar for Untam3d

I have this form, and this antinjection. I have checked for anti injection in three places and it still is quite easily injectable. Code: [code]<?PHP $sql_server = "localhost"; //<-- MSSQL server address/ip $sql_user = "sa"; //<-- MSSQL username $sql_pass = "sa"; //<-- MSSQL password $sql_data = "database"; //<-- MSSQL database …

Member Avatar for Untam3d
0
104
Member Avatar for crohole

I has build a tool that can detect all inbound link to my website. I try it with a website that have high link popularity and there is more than 1000 inbound links in there. But there is no way to view more than 1000 inbound links with yahoo API. …

Member Avatar for pritaeas
0
76
Member Avatar for AmericanGastro

I'm looking into developing a forum for medical purposes, however, although I have developed several websites in the past (mainly via Photoshop and Dreamweaver), I have never worked with forum software before. I am battling with whether or not to go with Invision Power's new Version 3 or VBulletin. I …

Member Avatar for AmericanGastro
0
224
Member Avatar for Samir

I'm not a programmer, but I did study C for a while. I can figure out how to find functions, look at their syntax, see examples and then try them. So here's my siutation. I want the url of the output of a web site into a php variable. Here's …

Member Avatar for Samir
0
126
Member Avatar for seangdy

Hi Everyone I want to clear my session after browser is closed. Have any idea? Thanks in advance

Member Avatar for digital-ether
0
241
Member Avatar for Stefano Mtangoo

Hi, I have a WAMP based Site and would like to user path as a variable instead of fixed path. I tried variable like [CODE=PHP] $sgospel = "$server./sgospel/"; $include_path = "$sgospel./includes"; echo($server); echo($sgospel); [/CODE] Results are: [QUOTE] [COLOR="Red"]C:/wamp/www/ C:/wamp/www/./sgospel/ [/COLOR] [/QUOTE] When I put [CODE=PHP] $f_path = "$include_path/inc.terms.php"; echo($f_path); [/CODE] …

Member Avatar for digital-ether
0
212
Member Avatar for quickbird

Hello! I didn't knew where to post this so i posted it here. I am trying to make messages limit.e.g. i am having 100 messages in database and i want to display 10 messages per page and the next page will appear below the last post.Just like here in Daniweb.com.But …

Member Avatar for tux4life
0
66
Member Avatar for michael100101

If anyone is familiar with Mambo Content Manager, I would like to know how the system saves configuration settings to configuration.php. I would like to implement this idea into my own site, but I cant figure out how a PHP page rewrites and saves another page on the server. Anyone …

Member Avatar for digital-ether
0
172
Member Avatar for Javs

Hi everyone. I am selling a product and i would like to use a selection of affiliate networks.. As far as i know these affiliate companys track the sale there companys affiliates make by inputting code into your html. is this correct? If so if i were to use 50 …

Member Avatar for digital-ether
0
106
Member Avatar for himanshu_roy81

hi, i have a problem,that is i have 2 datatables.in that tables item_id is uniqueidentifier and primary key column for both tables.remaing columns are diffrent columns.if i insert the data generate only item_id same guid for both tables,in remaing data is saved remaing columns.plz help me.i search a lot of …

0
81
Member Avatar for cwarn23

I was thinking of a new project for making a bot that scans daniweb for information and enters useful information into a database then people can ask the website questions and php+mysql will provide answers in paragraph form for the user to read. Is this ok on the legal side …

Member Avatar for cwarn23
1
303
Member Avatar for cwarn23

Hi, I found that my linux (CentOS) server hasn't got any of the php extensions installed but can't seem to find any easy way to do it. Can anybody guide me the easiest way to install the php extensions curl and gd. A google search has showen dozens of lines …

Member Avatar for cwarn23
0
651
Member Avatar for Tekkno

In order for my users to log in they have to activate their account through email. The activation works fine. The trouble I am having is displaying a message at login if the user has not activated. Here is the activation script: [code=php] <?php require "connect.php"; if(isset($_GET['u'])){ //make sure that …

Member Avatar for Tekkno
0
230
Member Avatar for gcombe

I need help with this. I am sure its an easy thing.. but I am stumped for some dumb reason.... all this works just fine.. but what I want to echo out is fname and lname of each person once they are selected as well as the next section of …

Member Avatar for cwarn23
0
60
Member Avatar for joshmac

Hello. I am seeking some help on job board script that I am working on. I am trying to use the below script to update the database if the current job is 30 days past the start date or post date. The code below is not working and if I …

Member Avatar for Lantre
0
97
Member Avatar for yozhang

I want to upload a big file (about 80M) through the web, but it seems not working. Small file will be OK. html file: <input type="hidden" name="MAX_FILE_SIZE" value="128000000" /> php.ini: file_uploads = On upload_max_filesize = 128M max_input_time = 60 memory_limit = 128M max_execution_time = 30 post_max_size = 128M httpd.conf: LimitRequestBody …

Member Avatar for yozhang
0
247
Member Avatar for BigDan531

[code] <?php session_start(); header("Content-type: image/png"); $img_handle = imageCreateFromPNG("bg2.PNG"); $q = rand(1,255); $w = rand(1,255); $e = rand(1,255); $r = rand(1,255); $t = rand(1,255); $y = rand(1,255); $u = rand(1,255); $i = rand(1,255); $color[0] = ImageColorAllocate ($img_handle, $q, 0, 100); $color[1] = ImageColorAllocate ($img_handle, 200, 0, 0); $color[2] = ImageColorAllocate ($img_handle, …

Member Avatar for pritaeas
0
343
Member Avatar for ishlux

Hi all, i am new to php, i dont know how to run the php files, i am going through some tutorials, but not able to install it on my pc. i have dowloaded . . but dont know how to proceed further so please help me out ...... regards, …

Member Avatar for Stefano Mtangoo
0
109
Member Avatar for budbud

hello., I'm newbie here., this is my first post^^ how are u doing all??? i hope u are good. ok, let start with my problem in use codeigniter framework, where i want to upload multiple file in same form but with different allowed type (image n pdf). how can i …

0
87
Member Avatar for phpboy

Hello. I have no idea how i can copy the text from a web page to a string variable ? I dont want the HTML code of the page to be stored in the string.. i want the output of the web page to be stored into the string.. If …

Member Avatar for phpboy
0
184
Member Avatar for BigDan531

[code] <?php session_start(); header("Content-type: image/png"); $img_handle = imageCreateFromPNG("bg2.PNG"); $q = rand(1,255); $w = rand(1,255); $e = rand(1,255); $r = rand(1,255); $t = rand(1,255); $y = rand(1,255); $u = rand(1,255); $i = rand(1,255); $color[0] = ImageColorAllocate ($img_handle, $q, 0, 100); $color[1] = ImageColorAllocate ($img_handle, 200, 0, 0); $color[2] = ImageColorAllocate ($img_handle, …

Member Avatar for Menster
0
102
Member Avatar for slyme

Sorry to all if this is in the wrong forum, I'll move it if someone tells me where it should go. I saw another poster discussing some files stored above the root ... well here's what was posted: "I have a script which generates invoices as PDF files and stores …

Member Avatar for slyme
0
409
Member Avatar for coolest_987

Hi My php version is php4.4.0 and GD is not showing in phpinfo even i installed gd extension. Any Help will be deeply appreciated. Thanks in advance

Member Avatar for cwarn23
0
195
Member Avatar for grr

Is it possible in any way to modify the wordpress permalink structures so that you can create a page using a script to find the page? Example: You want to make a page on [url]http://www.yoursite.com/1/2/3/4/post[/url] or whatever... You don't want to use wordpress's the_post function to display the data. Instead, …

Member Avatar for grr
0
91
Member Avatar for chand.

Its sure that you know about the flash flip books. I have the problem with that. Ok the scenario is about to have the tabs or buttons we can say which are alongside on the right of the book and we can use them to navigate the pages using the …

0
62
Member Avatar for Designer_101

Hi Lets say i have just sent a query to my database and its bought me back a value. I've stored this value in $value1 . How would i get this value into a flash movie ? Any help would be greatly appreciated.

Member Avatar for chand.
0
111
Member Avatar for Gearspro

Hello everyone, seems i need to start taking classes with web development :( But until then i was wondering if you could help. The last day or so i've been trying to set up a bridge which allows elitegamingladders and vbulletin to merge. Luckily enough, the website i purchased the …

0
55
Member Avatar for xuexue

the program works with localhost, however, when i use the same program in my web server, it does not work, the error says: Error Uploading file, this is the code [code] $phType = $_POST['phType']; $phCustomer = $_POST['phCustomer']; $phModel = $_POST['phModel']; $phStatus = $_POST['phStatus']; $phDateDue = $_POST['phDateDue']; $phStatus = $_POST['phStatus']; $phNG …

0
89
Member Avatar for BlackPhoenix

Hi, Is it possible to have Flash query a MySQL database, retrieve the data, and then do whatever it wants with the data (stored in a variable, or displayed to the screen in a text box perhaps) ? Is it challenging? If I can achieve this, I could perform a …

0
46
Member Avatar for nihilnovi

So been sitting with this problem all week, can't figure it out. Need to make a automatic parser that converts xml in this format: <?xml version="1.0" encoding="UTF-8" ?> <open_marine version="1.7" language="english" origin="Companyname" date="ISO 8601 1250016600"> <broker code="MIB"> <broker_details> <company_name>Company name</company_name> </broker_details> <offices> <office id="1"> <office_name>Moore International</office_name> <email>mail@mail.com</email> <name > <title …

0
32
Member Avatar for tom_naza

Hi all, greetings from Portugal. I know, there is a "Supplied argument not valid resource" FAQ, and I know there are allready a few threads about this, but after reading them and hours of changing code I still have my problem... (Yes, I'm a newbie :-) ) [U][B]Warning:[/B] mysql_num_rows(): supplied …

Member Avatar for slyme
0
152
Member Avatar for teajay99

Hi Guys, I'm afraid i am a complete novice when it comes to XML but know PHP pretty well. I have a form located here.. [URL="http://clientel-transit.co.uk/life-assurance/mortgage-protection.php"]http://clientel-transit.co.uk/life-assurance/mortgage-protection.php[/URL] which sends values to a third party server and returns the quote values in XML. I have also been sent the following file available …

Member Avatar for Bojero
0
62
Member Avatar for Hillary12

I have a form that outputs data to a mail but the checkboxes output nothing.This is my php code. Any help please [code=php]<html> <head> <title>Palm Safaris and Logistics:Bookings</title> <meta http-equiv="refresh" content="2; URL=http://www.palmsafaris.com/booking/bookings.shtml"> <meta name="keywords" content="automatic redirection"> </head> <body> <?php /*$game_viewing='unchecked'; $gorilla_trekking='unchecked'; $chimp_trekking='unchecked'; $hiking='unchecked'; $mt_climb ='unchecked'; $water_rafting='unchecked'; $Cultural_tour='unchecked'; $murchison_falls_NP='unchecked'; $QE_NP='unchecked'; $bwindi_forest='unchecked'; …

Member Avatar for slyme
0
84
Member Avatar for veledrom

Hi, i wanted to remove .php and place / but, it doesnt work. I get "500 Internal Server Error" message. [code] RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^([^/]+)/$ $1.php # Forces a trailing slash to be added RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$ RewriteRule …

Member Avatar for veledrom
0
86
Member Avatar for gagan22

HI all, I am working on webdirectory in php. There are many links of many websites. Now i want to make that when any one take cursor on that link then it should show a thumbnaill of that website or snapshot of that website. I want to do that . …

Member Avatar for pritaeas
0
147
Member Avatar for thegreatdanton

Hi, i'm wondering how do i convert a TIMEDIFF to a string? Basically i have a database with a "tomorrow time" (timestamp + 24 hours) in it, which shows the time 24 hours from the exact time that the data enters the database. I have the "time left" printing out …

Member Avatar for blocblue
0
87
Member Avatar for aerliana

i need to count how many user that update their profile n how many user not update their profile within 5 years. and if the user not update their profile then i need send an email as alert notification.

Member Avatar for almostbob
0
119
Member Avatar for johny321

I am new to PHP & i am looking to develop a site using php can any one help me

Member Avatar for plut0564
0
114
Member Avatar for mrcniceguy

i want to know,how is it possible to check automatic all the checkboxes generated in php while page loading. i mean if the are for example 20records then all to be checked.

Member Avatar for mrcniceguy
0
93
Member Avatar for harinatha.php
Member Avatar for harinatha.php
0
50
Member Avatar for agrophobic

G'Day, the following code works as intended but on the first load of the page a syntax error occurs: [I](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 'where Suburb =' at line 1)[/I] …

Member Avatar for Graphix
0
275
Member Avatar for BigDan531

Hi guys ive got a problem with my mail() function. [code] if(mail('$email', 'test', 'test message')) { echo('ok'); } else { echo('not ok'); } [/code] im trying to test this out. ive tried manually inputting the email e.g. [email]12345@hotmail.com[/email] the email is sent and i can receive it. However, when i …

Member Avatar for BigDan531
0
311
Member Avatar for dweddi

Hello, I am trying out to construct a performance monitoring system (par tof my project at college), I am now trying to create the pages for reports and wish to refine even further with a reporting tool that can display for me performance of staff in a newsroom. I am …

Member Avatar for dweddi
0
155
Member Avatar for mundetas

Can someone please help. I have a rollover image and when you click it takes you to a page. But I want it to remain on the same page. I want it to display data from a db. But should appear on the same page where the button is. So …

Member Avatar for Menster
0
135

The End.