39,320 Topics

Member Avatar for
Member Avatar for Bliss C

Unfortunately I seem to have forgotten everything I ever knew about PHP and MySQL (which wasn't a lot anyway) and I've had one hell of a headache all day which is somewhat clouding my thinking. :X I have two PHP includes on a current site I'm working on advertising a …

0
60
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
113
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
87
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
145
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
101
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
140
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
110
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
102
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
74
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
221
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
123
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
238
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
208
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
63
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
171
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
102
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
79
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
300
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
650
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
228
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
58
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
95
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
244
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
315
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
106
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
85
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
179
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
96
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
408
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
188

The End.