39,323 Topics

Member Avatar for
Member Avatar for learning_php

Hi While learning how to create and manage a session, I got through session time out technique, I got throw 2 ways : 1. Setting up garpage collection directive in php.ini file and 2. Create a session variable named, say, EXPIRE that holds the value [code]$_SESSION['EXPIRES']=time()+360;[/code] at the beginning of …

Member Avatar for learning_php
0
189
Member Avatar for crazycat503

Hi, I am developing a website for a local group and want to include photo album. My idea is that users could create albums and if they belong to the same group, they can upload photos to the album. But I want to make it quite efficient and quick loading. …

Member Avatar for dos_killer
0
333
Member Avatar for Lolalola

Hi, i have class "User_registration" and in this class i need use many class: "Location", "Links", "Mail", "Module". i create include all class in file: include 'class/location.php'; include 'class/links.php'; include 'class/mail.php'; include 'class/modules.php'; Now create "User_registration" class. [CODE]<?php class User_registration{ public function insert_to_db($name, $country_code, $home_page) { //work with data return …

Member Avatar for mschroeder
0
148
Member Avatar for Electricfan

Hi team, Thanks for the view.. So here is my question... Here's what I am trying to do... I have a form that people fill in to send an email to selected people. They fill in the form and it now goes to a database to hold it until approved …

Member Avatar for blur0224
0
114
Member Avatar for BarrieD

I want to do something very basic and have tried many ways without success. I have a simple database table consisting of four fields. All it is doing is showing affiliated clubs. One field is 'webaddress' which is the http address. I want to make "title' into a hyperlink so …

Member Avatar for BarrieD
0
100
Member Avatar for saadi06

hello I want to make an image slider.I have two pages. If the person clicks on the first page the image enlarges and the slider will be shown with next and previous button. I also want to show the titles of these images.Please help me Thanx in advance

Member Avatar for NettSite
0
84
Member Avatar for muralibobby2015

hello... i am not sure..is there any chance to open my webpage in firefox. for example i am browsing mywebsite using IE. when ever i click link of the page then automatically it will open in firefox. this option is not for all pages only for specified page. thanks.

Member Avatar for muralibobby2015
0
116
Member Avatar for pbcomput

Hi, I want to open user's uploaded .doc,.docx,.txt or .pdf as html (open in browser) I can open pdf without doing any extra coding. but i can't open other formates. I want to open files when user click on the link "Show File" at that time file will be open …

Member Avatar for lavanyac
0
848
Member Avatar for khushhappy

Hi,Pagination Problem : It shows the pages i.e 1,2,3 as number of records, but further records are not shown when clicked on page 2 further 3 and soo on.. [B]Database Connectivity:[/B] [CODE]$query = "SELECT * FROM photos ORDER BY id DESC limit 1,2"; $result = mysql_query($query) or die(mysql_error()); while($row = …

Member Avatar for diafol
0
129
Member Avatar for morteza_ipo

Hi everybody! Please help me very fast!!!! I am programming with php in linux platform. When I create a file (example index.php) , that is UTF8 as default. Now I want to set cookie or session , but I cannot! I get an error about sending headers! Please help me …

Member Avatar for diafol
0
133
Member Avatar for tryphy

HI, I have a form that has more than one checkbox. I need to store the checkbox value in mysql. I am using php code.I am not sure of the code of storing the checkbox value to the database. Your help will be much appreciated. Thanks Tryphy

Member Avatar for vivekdizzal
0
5K
Member Avatar for dan1992

I have a code for adding information on the site post page [CODE]<?php if (isset($_POST['photo'])) {$photo = $_POST['photo']; if ($photo == ''){unset($photo);}} if (isset($_POST['id_photo'])) {$id_photo = $_POST['id_photo']; if ($id_photo == ''){unset($id_photo);}} $cat = $_GET['cat'];?> <script type="text/javascript"> function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } </script> <script src='style/jquery.js' type="text/javascript"></script> <script src='style/documentation.js' …

Member Avatar for madCoder
0
96
Member Avatar for Electricfan

I have made a php page that allows someone to send out an email to one of our representative with a sample text that they approve wind power. It's just a form that when submitted it sends out to whomever they checked and also sends me an email saying that …

Member Avatar for Electricfan
0
228
Member Avatar for lf.gene

Hi all, by using form and post method in my program. It seems like my values of calendar are not able to insert into my database. I'm using jquery's datepicker and php to code. Please advice. Thanks

Member Avatar for lf.gene
0
851
Member Avatar for arsala khan

give php code for dropdwon list : when we select database value in dropdwon list i.e username and there password show the fornt of dropdown list

Member Avatar for almostbob
-1
65
Member Avatar for Binary

I recently started working with PHP, and MySQL. And I have come with a little problem, I have tried a couple of things to solve it and they are not working. Well, basically I am trying to put a link on a page, but that page requires me to pass …

Member Avatar for almostbob
0
21K
Member Avatar for MooGeek

Hi guys! Im kinda new here and lately I'm developing a[B] PHP MySQL Module Generator[/B] that will help us to easily manipulate the database. since I want to make thing fast and I know lots of you agree with me that doing data manipulation stuffs like MySQL is boring so …

Member Avatar for MooGeek
0
281
Member Avatar for dschuett

I am still fairly new to PHP, so I will do the best at explaining what I am trying to do here... I have a database table where I store a bunch of invoices. I am now trying to make a front end to run queries. I don't know how …

0
71
Member Avatar for AliHurworth

Hi, I'm trying to create a drop down menu with dynamically populated options. So, within a typical HTML form I have: [CODE] $conn = mysql_connect ("localhost", "xxxx", "xxxx"); mysql_select_db ("wkho_TTX", $conn); $query = "SELECT * FROM venues"; $result = mysql_query($query) or die(mysql_error()); $num=mysql_numrows($result); $i=0; while ($i < $num) { $option …

Member Avatar for lyrico
0
111
Member Avatar for dottomm

Hello and Thanks in advance to anyone who can help me with this noob php query. I am trying to create a "share this record" tool in which a User can send another User a link to a record by displaying all the users in the User Table with a …

Member Avatar for dottomm
0
163
Member Avatar for ofir0803

Hi, i have this string: [CODE]$link = "http://www.first-link.comhttp://www.second-link.comhttp://www.third-link.com"[/CODE] i want to exract it to an array like this: [CODE]array[0] = http://www.first-link.com array[1] = http://www.second-link.com array[2] = http://www.third-link.com[/CODE] i wrote: [CODE]print_r (explode("href",$link));[/CODE] but now all the string is in array[0] only. i keep getting [CODE]Array ( [0] => http://www.first-link.com ) Array …

Member Avatar for diafol
0
130
Member Avatar for youlichika

Hi everyone, I'm new study Facebook api. I use this code, but the resault is empty. Can anyone help me? Thanks. ps: i have replaced my api id, url ,secrect in it. [CODE]<form action ="index.php" method ="post"> <input type="text" value="what is?" name="search" style="color:#999;text-align:center;" onfocus="if (value =='what is?'){value =''}" onblur="if (value …

0
120
Member Avatar for cossay

I'm trying to install jpgraph on AppServ 2.6 which comes php6. Anytime I try using the library I get the following error: The installed PHP version is (6.0.0-dev)is not compatible with this release of the library. The library requires at least PHP version 5.1.0. The version I'm using is jpgraph-3.0.7.

Member Avatar for mschroeder
0
92
Member Avatar for Shankye

Hello friends .. I wanted a feedback form for my small site... Its pure HTML and i dont know anything about PHP .. I got a script which mails the form contents to the admin.. Here is the code [CODE] mail( "$webmaster_email", "Feedback Form Results", $comments, "From: $email_address" ); [/CODE] …

Member Avatar for Shankye
0
109
Member Avatar for noliasoulja

syntax error, unexpected T_STRING can anyone help? here id my code. and I'm using 000webhost if that helps [code]</script></span></td></tr></table><span id="content"><table width="100%" class="uportal-background-content" cellspacing="0" cellpadding="0" border="0"><tr><td width="33%"><img height="3" width="10" title="" alt="" src="/media/org/jasig/portal/layout/dlm/skins/xp_style/skin/transparent.gif"></td><td><img height="3" width="1" title="" alt="" src="/media/org/jasig/portal/layout/dlm/skins/xp_style/skin/transparent.gif"></td><td width="34%"><img height="3" width="10" title="" alt="" src="/media/org/jasig/portal/layout/dlm/skins/xp_style/skin/transparent.gif"></td><td><img height="3" width="1" title="" alt="" src="/media/org/jasig/portal/layout/dlm/skins/xp_style/skin/transparent.gif"></td><td width="33%"><img height="3" width="10" …

Member Avatar for mschroeder
0
266
Member Avatar for muralibobby2015

hello... i am doing mail concepts. in this i want to send a dynamic attachments with email. actually user gets email with attachment. this attachment will be dynamic. how to create dynamic attachment for email.i tried this. but no use. anybody help. i have 'attachments.txt'file with content [CODE]User Name: <<name>> …

Member Avatar for muralibobby2015
0
122
Member Avatar for ofir0803

i want to find all occurrence of a string: "coords"" within another, but i only can found the first and the last ( stripos() and strripos() ) [CODE]<body> <img src="page.jpg" border="0" usemap="#fghf" /> <map name="fghf" id="fghf"> <area shape="rect" coords="10,71,258,236" href="#" alt="some_alt" title="some_title" /> <area shape="rect" coords="258,72,506,237" href="#" alt="some_alt" title="some_title" /> …

Member Avatar for ofir0803
0
186
Member Avatar for rakibtg

how to make a email form that can send one email to 20 email address, or from which website i can get a free copy of this types of emil form php script

Member Avatar for MooGeek
0
40
Member Avatar for shafeequeom

I am starting a small download site.I want a best CMS software were i can choose my template or were i make atemplate acoording to my choice with out scripting

Member Avatar for Shanti C
0
45
Member Avatar for sedalnas

Hi, i have a problem in downloading pdf files that is when i click the download button it just download a text file contains unreadable and unrecognizable words and numbers , so can any one help me to solve this problem my code to download a pdf file is : …

Member Avatar for sedalnas
0
128

The End.