39,316 Topics

Member Avatar for
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
118
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
100
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
66
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
64
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
134
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
241
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
99
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
719
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
170
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
115
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
105
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
134
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
192
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
44
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
114
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
71
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
72
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
82
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
745
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
50
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
102
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
176
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
102
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
263
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
112
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
94
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
104
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
139

The End.