39,402 Topics

Member Avatar for
Member Avatar for stangn99

Hi guys, I'm working on a little project and need some help. What I'm looking to do is: 1. have user fill out a form to obtain information 2. based on the information, the system will decided while file should be provided 3. system will automatically send an email to …

Member Avatar for sudeepjd
0
126
Member Avatar for Sorcher

Hello. I am making a register/login function, and i want the user to be able to upload files to his account, and can later view these files. I wonder how i can make the upload script insert data in a mysql table only for the current user uploading, i dont …

Member Avatar for ryan311
0
1K
Member Avatar for cutekate

Hello Everyone, I have triple drop down menu. I want to display the contents of the table based on the third menu selection. The code is in the link [url]http://php.pastebin.com/hgazULxi[/url] I know I need to include a onchange function to <select name="genus"> but as you can see I have a …

Member Avatar for Airshow
0
127
Member Avatar for veledrom

Hi, I can print anything from any software. When I check the properties of my (hp LaserJet 1320), the 'owner' column has the name of my Windows XP login account which is 'Fella'. All fine up to here. When use code below, the properties of my (hp LaserJet 1320), the …

0
58
Member Avatar for samarudge

Hey, So I made a regular expression to check for valid URLs In Javascript I'm using the code [code=javascript] var valid_url = /^(https?:\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z!//\d_]*)?$/i; var valid_protocol = /^http\:\/\/|https\:\/\//i; if ( !valid_url.test(url) || url.length == 0 ) { $('#url_return').html('Invalid URL!'); return false; } if ( !valid_protocol.test(url) ) { $('#input_url').val('http://'+url); url = $('#input_url').val(); …

Member Avatar for pritaeas
0
173
Member Avatar for ErlendHL

Hi. I downloaded WAMP to run PHP scripts with database. Everything worked fine at first, but suddenly something went wrong. I saved phptest.php into the folder phptest in the folder WWW. It worked with [url]http://localhost/phptest/phptest.php[/url] at first, but suddenly it says each time I enter that url, that "www.localhost.no" is …

Member Avatar for ErlendHL
0
129
Member Avatar for madsy

Hey there...Well I am using checkboxes to post the multi-dim array; but the thing is When I retrieve & explode it directly ,It shows an error [COLOR="Green"]Warning: explode() expects parameter 2 to be string, array given in C:\ms4w\Apache\htdocs\test24.php on line 12 NULL[/COLOR] So If I do use 'for loop' to …

Member Avatar for hielo
0
572
Member Avatar for ismael ahm@d

Hello everybody...!!! i have a table and having different fields, now i want to put checkbox on every row which is used for to delete or update the specific record. when select any row from the record the delete or update button or link should work properly. so plz help …

Member Avatar for freddavis
0
102
Member Avatar for alla87

Hi all, Im trying to add validation to a form to allow PHP to check before its sends the values to another page for them to be uploaded to a database. The problem i have is that i have taken a, i thought simple PHP validating script off the net …

Member Avatar for alla87
0
148
Member Avatar for nukabolhi

I couldn't register php session from mysql query. Can you tell me what is the correct method to register php session in mysql field. I tried many ways. Still no solution. [CODE] $sql=("SELECT email FROM people"); $result=mysql_query($sql); $email = mysql_fetch_array($result); echo $email['email']; //could not register this way session_register("$email"); [/CODE]

Member Avatar for ryan311
0
274
Member Avatar for nquinlan

I am trying to pipe an email to PHP. I currently have set up a forwarder in cPanel that does the following : [B]|/home/username/public_html/mailscripttest.php[/B] mailscripttest.php has permissions 755 and contains: [CODE=php] #!/usr/bin/php –q <? /* Read the message from STDIN */ $fd = fopen("php://stdin", "r"); $email = ""; // This …

Member Avatar for chrishea
0
614
Member Avatar for Blitz-labs.com

I'm new to mysql and was wondering if someone could help me Im using the following code on search engine on my site I have to table blog and news when i change blog to news and post to article the error disappears but when i change it back i …

Member Avatar for Blitz-labs.com
0
304
Member Avatar for rmullins

I'm new to making websites using PHP includes (normally everything would be Dreamweaver templates and library items). I'm still using DW templates, but all of the navigation, header and footer are all PHP includes. When I make a new page, say one directory inside of the root, DW automatically updates …

Member Avatar for chrishea
0
150
Member Avatar for fuston05

I have been using fopen, fread, and fwrite to create and add content to txt files. Now i need to be able delete only certain sections of a txt file. the sections are appending "=>" to beginning of entries, I was using it to properly explode() the file for reading …

Member Avatar for fuston05
0
120
Member Avatar for facarroll

I've got my code working OK in that the correct results are drawn from the database. What I have here in the code is an array consisting of an image, accompanied by its title and thirdly a link to activate a quiz associated with the image. Everything works fine, except …

Member Avatar for facarroll
0
103
Member Avatar for ErlendHL

Hi. I am making a chat program. In the index.php file, I create a session 'session_username'. I use ajax when someone chat, so I send the message to another php file. That php file should get the session_username session and write that + the message to mySQL, but there are …

Member Avatar for ryan311
0
69
Member Avatar for pabzzmike

hello, I need to put up tabs as navigation for my website. Is it possible to use PHP to implement the tabs using my own custom made images? Thanks in advance regards, pabzzmike

Member Avatar for sudeepjd
0
69
Member Avatar for reminem

Hi all I have build an small personal form to delete images. (personal use only) The respons I keep getting is "file not found..." I use the script locAL (WAMP) THIS IS THE FORM: <form name="form" method="post" action="delete.php" > <label>delete <input type="text" name="delete" id="delete" > </label> <label> <input type="submit" name="send" …

Member Avatar for reminem
0
136
Member Avatar for stefansaye

hi all, it's my code ,i want to display check box and two drop down list in a table , user can choose which one check box and set some value from drop down list , then i want send the row that user selected and these settings values from …

Member Avatar for sudeepjd
0
243
Member Avatar for arunpatyal1987

create table book(bookid int ,title varchar(50),author varchar(50),book longblob); insert into book values(1,'c#','arun','c:/c#.pdf'); BUT this code is not working properly

Member Avatar for sudeepjd
0
101
Member Avatar for frazehmad

Hi, I'm writing a script where user upload any video file and my script converts the video in flv format. Since video files are very heavy in size (I want to give upload limit of 10MB), it takes much time to upload. I observed, when we upload any file to …

Member Avatar for frazehmad
0
3K
Member Avatar for cdes1145

Been scouring the web for ages and can't find a solution. So here I am..... Firstly this is my first venture into web design and hosting. I've got my own site running from just my laptop atm. I'm trying to include a basic hit counter using the following code; <?PHP …

Member Avatar for kylegetson
0
723
Member Avatar for chrelad

Hi everyone, I made a very quick and dirty PHP speed testing system ([URL="http://chrelad.awardspace.com/speed"]chrelad.awardspace.com/speed[/URL]) and was looking for feedback on different tests that I could add to it. I've only got two tests going right now: Comparison of string concat/replace methods [LIST] [*]Heredoc with interpolation [*]Double quote with interpolation [*]Double …

Member Avatar for chrelad
0
172
Member Avatar for Froger93

Hello All, I'm not sure if this is the right place to put this, I apologise for it any way. Okay so here it is, I have a sitemap file [icode]sitemap.xml[/icode] and I have PHP code inside it. The problem I am having is when adding the following lines: [code] …

Member Avatar for _coder
0
117
Member Avatar for dsmith1984uk

Hello people i'm new to the forum and my experience with PHP is very small in fact I only know how to echo some text. So I'm as new as they get. However I want to create a little program for my website and just need to know firstly. Can …

Member Avatar for _coder
0
110
Member Avatar for dschuett

how come my real escape strings are getting entered into my table as blank entries - if i don't escape them, they enter just fine.... Any ideas? [CODE] <?php session_id($_POST['current_email']); session_start(); if (!empty($_FILES)) { $con = mysql_connect("xxx", "xxx", "xxx") or die("cannot connect"); mysql_select_db("xxx", $con) or die("cannot select DB"); $tempFile = …

Member Avatar for dschuett
0
136
Member Avatar for Puster

Hello, I am worcking with a login script, and everytime i am trying to log on, I we get my error messege "inncorect password!" And everythning is okay! Can somebody pleas cheack it? [CODE]<?php include 'connect.php'; $session_username = $_SESSION['username']; if ($_POST['login']) { // FÃ¥r dataen fra databasen. $username = addslashes(strip_tags($_POST['username'])); …

Member Avatar for _coder
0
196
Member Avatar for freshcoat

Dear, I am searching for a script or how to, for getting the website isp. Just like the website hostlogr.com does; preview: [url]http://www.hostlogr.com/site/twitter.com[/url] Hope someone can help me! Kind regards, Nicky

Member Avatar for chrishea
0
48
Member Avatar for mikecronauer

Hi all, a few quick questions. (Theory related) 1. Can you put javascript in a PHP file? 2. If the answer to that is no ... how can a website have user sign ins / security and also be using ajax to dynamically update a pure xhtml web page? 3. …

Member Avatar for quasipickle
0
117
Member Avatar for amit.hak50

I have my website called [snip] and What I want to install blog section ,Actually this is a template and I am confused ..How to install Blog to this website ,I think PHP script is required ,Which one can anyone please tell me about this..

0
74
Member Avatar for nukabolhi

How can I get the values in Check box while loop in php. Pls give me some tips to get the values from the below php code. [CODE] $sql=mysql_query("select * from tree"); while ($result = mysql_fetch_array($sql)) { echo "<br>"; echo "<label> <input type=checkbox name=Test value=checkbox id=Test_0 > $result[fruit] | $$result[fruit_charges] …

Member Avatar for phpology
0
2K
Member Avatar for andydeans

hi, this is probably a simple solution but nothing is coming up in searches except date and time pickers. i basically have a datetime column in mysql database. i have an input field for my date part and i want to create a second input field in my form to …

Member Avatar for andydeans
0
75
Member Avatar for mayuri_desh

need to write the below javascript function in php..please help [CODE]myStartDate = new Date('April 1, '+curYear+' 1:59:59');[/CODE]

Member Avatar for P0lT10n
0
86
Member Avatar for TheSecOrg

Is there a way to make a variable be able to be used in another .php file? E.G In PHP1.php $age="9"; $someOtherThing="1"; In PHP2.php echo $age+$someOtherThing; I have a statement to make, I hate being a n00b.

Member Avatar for TheSecOrg
0
755
Member Avatar for veledrom

Hi, I want to create a page where I send something to print to print out. If the process commited I should get TRUE if not FALSE message. Is this possible with PHP? Thanks

Member Avatar for Ajit Arora
0
52
Member Avatar for miss_indie

aww. i'm so sorry for posting again. i have so many questions. i'm so sorry. ahm. i was just wondering if my code is possible if ever i'm going to insert a remarks to my database. here is my code: [CODE]$totalg=($totala+$totalb+$totalc+$totald+$totale+$totalf)/6; if(totalg <= 5.00 && totalg >= 4.51){ $remark=Excellent;} else(totalg …

Member Avatar for miss_indie
0
104
Member Avatar for davidjennings

Hi all, I am having a problem with this code, When the submit button is pressed all the php code is echoed to the screen. Thanks David [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Search</title> <link href="style.css" rel="stylesheet" type="text/css" /> …

Member Avatar for davidjennings
0
177
Member Avatar for vimal hemant

Hello, i'm trying to insert multiplle values into a table.. but it is being stored o in the table.. i've been trying while loop but still no progress.. the system search for user related to its specefic staff concern and then assign a course.. <form id="assign" name="assign" method="post" action="assign_training.php"> <tr><td …

Member Avatar for hielo
0
104
Member Avatar for Prorgamme

I have this simple script: [PHP]<?php // MySQL Connection mysql_connect($sql['host'],$sql['user'],$sql['pass']) or die("Unable to connect to SQL server"); mysql_select_db($sql['data']) or die("Unable to find DB"); // Getting rows $select = "SELECT * FROM table WHERE uid = '". $_POST['uid'] ."'"; $data = mysql_db_query($sql['data'], $select) or die("Select Failed!"); // Query results $row = …

Member Avatar for Hourglass
0
287
Member Avatar for gchurch

hey all i have an array stored in a variable - $SelectRoom which is put through a foreach to display each value of the array: [CODE] foreach($SelectRoom as $value) { echo $value; } [/CODE] no that works fine however i want to send this array through the url with other …

Member Avatar for gchurch
0
115
Member Avatar for eefh01

Hi, I am just trying to have a login form on a page using div tags. After successful login without refreshing the page, the textboxes on the form should be replaced by Welcome message or displaying username and Logout button. Can somebody throw a little light to show me the …

Member Avatar for Airshow
0
96
Member Avatar for spideyprasad

For Ex: There are 10 peoples who logged into the site. I need to track the name of the people who logged in at a admin side. Under what logic we can track the people. I prefer to do it on php. Please help me the logic of tracking.

Member Avatar for fusedreality
0
106
Member Avatar for Saqib_J

hi, i need to develop a page having a shared text area. two users would be using the same page on their respective machines but they share in a way that if one writes something in the text area it will be displayed to other as well. it will be …

Member Avatar for i-hate-blue
0
141
Member Avatar for dlannetts

Hi, i am making a menu and want to be able to add menu links by simply adding a new record to a database, i have got the main concept going but am having some troubles, instead of writing: the same piece of code to load a new menu item …

Member Avatar for dlannetts
0
177
Member Avatar for n.utiu

Disclaimer! I have no prior knowledge of php, I just need a clear answer. I have the string $content, and I want to replace any [ or ] between the [nobb] and [/nobb] tags inside it with ^ and *. And I need also to do this again but this …

Member Avatar for n.utiu
0
364
Member Avatar for breham

Hi, I have feed different XML files with different formats that I want to let users map to our database themselves. Example [code]<product> <details> <name>Product One</product> <cost>20.00</cost> <available>2</available> </details> <technical> <width>3.00</width> <height>2.10</height> </technical> </product> [/code] What I need to do is be able to loop through the XML document and …

0
48
Member Avatar for Padmashri

[COLOR="Green"]Can anyone tell me, [/COLOR][B][COLOR="Red"]how to insert a PHP code in DRUPAL?[/COLOR][/B]

0
43
Member Avatar for muralibobby2015

hello.. i am using random query with pagination. but i am getting same results in second page also. Two things I need to make happen: 1. click on a result, you click the back button, results are in same order. 2. You get a paginated list of results in a …

Member Avatar for muralibobby2015
0
144
Member Avatar for emillion82

I have a string, that contains multiple values, and has a prefix of ***. Here's an example: [code=php] $value = 'a.first_name, a.last_name, a.address, a.city, a.state, b.phone_num, bc.gender, vfr.rating'; // instead, I'd like for it to display like this $value = 'first_name, last_name, address, city, state, phone_num, gender, rating'; [/code] Basically, …

Member Avatar for kylegetson
0
128
Member Avatar for sameeya007

think there are 3 selecting box in web site.1st one is jump menu and other 2 are select menu.usually jump menu what happen is when we select some thing from that it jump to another page or some where..i wanted to know .when i select some value on jump menu …

Member Avatar for sameeya007
0
38

The End.