39,402 Topics

Member Avatar for
Member Avatar for suhaildawood

Hello, I am really new to PHP, so sorry if this is way too basic. I followed this tutorial: [url]http://net.tutsplus.com/tutorials/php/online-file-storage-with-php/[/url] and I created a simple online storage app for my website. How would I be able to make it so that I can delete the stored files? Thanks

Member Avatar for mathieu89
0
156
Member Avatar for Donnovan

hi guys, i'm trying to write an character converter using php and ajax. i'm getting a really anoing error(uncaught TypeError). can someone help me with this.?:?: , i've added screenshot of the error. and this is the xml i'm trying to read generated with php [CODE]<?php $key = $_GET['key']; header('Content-type:text/ …

Member Avatar for Donnovan
0
174
Member Avatar for davy_yg

[CODE] <?php //LOAD USER $result = mysql_query("SELECT * FROM event"); while ($data = mysql_fetch_array($result)){ ?> <tr> <td><?php echo $data['event'];?></td> <td><?php echo $data['tempat'];?></td> <td><?php echo readDate($data['mulai']);?></td> <td><?php echo readDate($data['selesai']);?></td> <td> <a href="./event_manager.php?id=<?php echo $data['id']; ?>&mode=delete">Hapus</a> | <a href="./event_manager.php?id=<?php echo $data['id']; ?>&mode=edit">Edit</a> </td> </tr> <?php } ?> </table> [/CODE] Warning: mysql_fetch_array() expects …

Member Avatar for pritaeas
-2
177
Member Avatar for jacksantho

Hi, Anyone please me out, i need to sum the excel values dynamically? code: [CODE] $col=1; $row=29; $start=23; $end=28; $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow($col, $row, "=SUM($col.$start:$col.$end)"); [/CODE] cell values are not getting up added ? Am facing error. thanks in advance.

0
48
Member Avatar for bipies

Hi! I'm simply need to convert a string like: /blablabla/123123 to 123123 it should be easy I'm sure, but I can't get it :(

Member Avatar for diafol
0
107
Member Avatar for Midnite007

I am using this gallery script on a site I am working with and for some reason can not seem to get the Back to Menu ( link ) at the bottom of the code to be at the bottom of the page or at least under the images that …

Member Avatar for diafol
0
143
Member Avatar for davy_yg

[CODE] // connect to database $con = mysql_connect('localhost', 'root', ''); if (!$con) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; $db_selected = mysql_select_db("template", $con); if (!$db_selected) { die ("Can't use template : " . mysql_error()); } // cek login session_start(); //undefined index: login if (isset($_SESSION['login'])){ echo "Anda …

Member Avatar for urtrivedi
0
93
Member Avatar for khushhappy

Problem:- I have entered/input in database the date in its default format(Y-m-d). My requirement is to show the date in date-month-year format rather than year-month-date format. well i cannot enter the date again in database as it contains hundreds of record. Picture as attachment.

Member Avatar for urtrivedi
0
86
Member Avatar for chandru7

In my php website,i wants to integrate video ads,can you please advise how we can generate video ads,is there any free tool available?we can generate online?

0
66
Member Avatar for mukororokudo

hello guys .. here i go again .. i'm having a problem with my registration form .. my reg. form has 'password' field and 'confirm password' password field .. now i want to compare if the 2 passwords are entered the same but it doesn't seem to work .. its …

Member Avatar for rajesh205
0
111
Member Avatar for Midnite007

I have a full page image map background and in the lower middle a black area that I would like to place a dropdown menu for selecting a page ... anyone have any idea on how I could accomplish this ... I have been designing websites for a while and …

0
89
Member Avatar for atticusr5

Hello all, I am having some trouble with a ; in some php. The code is below with the problem commented out. I have no idea what I am doing wrong and I would like to know why. Many thanks, [CODE]<?php require("init.inc.php"); global $_MYSQL_DB; global $_MYSQL_USER; global $_MYSQL_PASS; global $_MYSQL_HOST; …

Member Avatar for chrishea
0
59
Member Avatar for aecha

Hi all.. Can anyone help me with this problem? This code already said successfully update and successfully delete but actually there is no data updated or deleted. There is no error shows too.. These are the code for update and delete data.. update_user.php [CODE]<?php $con = mysql_connect("localhost","root","root"); if (!$con) { …

Member Avatar for aecha
0
183
Member Avatar for dr.4030

i used session in my admin panel so when i click on log out button in server i faced with this msgs Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/royalfa/public_html/admin/logout.php:2) in /home/royalfa/public_html/admin/logout.php on line 5 Warning: Cannot modify header information - headers …

Member Avatar for dr.4030
0
89
Member Avatar for bala2111

hey all, Am trying to display the div tag and its content by clicking it. the code below displays the whole source code when cliked on the div with id = softros. I want to make this script to display the div in view source format of the browser when …

Member Avatar for Ezzaral
0
71
Member Avatar for adcgv

We are trying to build a simple basic search engine at [snipped] and we need help with page rank. Now the results are being shown in the order of relevance. Can someone plz help us with some algorithm, link or code snippet. Also is it possible to call a c++ …

1
124
Member Avatar for gerbz

how could i open a new window using javascript inside php that holds a value of a js variable? please help. thx

Member Avatar for gerbz
0
231
Member Avatar for tsp003

Hi, I think I need a fresh pair of eyes on one of my scripts. I've adapted the following code for my own purposes and it almost works perfectly. When it gets to the last table (line 168: add record to jobs table) it adds the record twice and I …

Member Avatar for tsp003
0
204
Member Avatar for siina

Function, which picks up from specified page all images that are larger than 50kt. The function returns arrayn, which contains the image URL and the image size in kilobytes. How do i start to do this? Do i use wget and exec? Is there easier way to do it. So …

Member Avatar for cwarn23
0
188
Member Avatar for musicmancanora4

[code] Hey guys im not sure how this isset code is working and what each if statement is testing. a clear explanation would help. cheers ****ViewProductDetails.php**** Code: <?php session_start(); ?> <html> <body> <?php if (isset($_POST['submit'])) { if($_SESSION['item']==$_POST['h1']) { $_SESSION['qty'] = $_SESSION['qty'] + 1; } else { $_SESSION['item'] = $_POST['h1']; $_SESSION['price']= …

Member Avatar for vibhaJ
0
119
Member Avatar for IWDesigns

hi everyone, i have some code that resises an image if its bigger than a certain size... the problem is that although the image is resised, its still pushing the div to the images full size? heres the code [CODE] .dt2 img { max-width: 300px; width: expression(document.body.clientWidth > 300? "300px": …

Member Avatar for IWDesigns
0
84
Member Avatar for rakwel10

this is a noob question. I'm quite confused sometimes when to use 'return' everytime Im doing my php and javascript codes. Maybe a plain english answer can help me : ) thanks!

Member Avatar for vibhaJ
0
123
Member Avatar for musicmancanora4

Hey guys i have the following code below for a shopping cart just wondering what this hidden input text would be used for and the echo at the end of it. I know it reads from a text file with : as delimeters and it as an ID for each …

Member Avatar for urtrivedi
0
131
Member Avatar for coolest_987

Hi All I am building a website for online recharge of mobile but please let me know how to get the tariff plans of Airtel for example if user select Maharashtra Circle how we can show the tariff list of Maharashtra Airtel Circle. Any help will be appreciated Thanks in …

0
83
Member Avatar for Buppy

Hi, A quick question - i have a string containing text like this: [CODE] \\u003cspan class=\\\"someClass\\\">Some text\\u003c\\\/span> [/CODE] How do i get that "Some text" value into an array? I tried [CODE] preg_match_all("/\\\\u003cspan class=\\\\\\\"someClass\\\\\\\">(.*?)\\\\u003c\\\\\\/span>/",$str,$res); [/CODE] Returns nothing. I think there's something wrong with the regex pattern. Maybe anyone can correct …

Member Avatar for pritaeas
0
146
Member Avatar for edn_781

I am very new to PHP.. Please let me know which part will be saved in Client PC and Which part will be saved in Server? [CODE=PHP]$_SESSION['name'] = 'John';[/CODE]

Member Avatar for rotten69
0
262
Member Avatar for ChaseTonyReid

I'm looking to create a battles, Explanation: I want to create a place on my website where users can vote on two users on a certain category, such as (example: best eyes, smartest person, etc) then other users have the option to vote, but only once, and who ever has …

Member Avatar for Shanti C
0
348
Member Avatar for khushhappy

Problem:- I want to show only those Documents which are before the deadline of the page. when deadline equals or less than the currentdate then show else move to archive or send to archive file. How to write a code for this or a query ? as for understanding , …

Member Avatar for khushhappy
0
109
Member Avatar for akshayphp

I am building an email service like gmail. I want to know that" how to offer users an email account under my domain?" For example- my domain is "abcmail.com", how to allow users to create an email like [email]akshay@abcmail.com[/email] I mean how to offer this service?

Member Avatar for Shanti C
0
69
Member Avatar for ankit.pandey3

Hi friends... I have a variable $datetime= 140811 060632. Here 140811 represents date in ddmmyy format and 060632 represents time 06:06:32 and both are in string type. I have a column name "DtTime" in MSSQL of type "Datetime" stamp. Now when i try to insert my variable $datetime in above …

Member Avatar for mschroeder
0
316
Member Avatar for nats01282

Hello, i have managed to get hold of social engine and trying to edit the profile script to create a friends list like facebook instead of it saying i have so many friends, This is my first time using smarty so im still learning this is my profile.php [CODE] $page_id …

Member Avatar for diafol
0
167
Member Avatar for narekm

Hello there . Please could you tell me what IDEs are considered to be top IDEs for web development mainly for PHP ? Thanks in advance!!!

Member Avatar for diafol
0
165
Member Avatar for azegurb

Hi all i am newbie in PHP I would like to learn how to create simple admin panel via PHP if possible pls help me i am very in need of this script with explanation Thans beforehands

Member Avatar for akshayphp
0
944
Member Avatar for gr8pathik

Dear can any body tell me how to configure cakephp with wamp?? i m new in cakePHP. I have already copied cakephp folders/files in wamp's www folder and DocumetRoot "C:\wamp\www\cakephp\app\webroot" Tell me what else have to do.? I am getting a page when clicking on localhost from Wamp but it …

0
88
Member Avatar for Krishna_Php

I want to be a web developer .how can i learn perfect jquery? Is here any way to learn complete jquery Online?

Member Avatar for diafol
0
151
Member Avatar for violaceous

Hi everyone, I'm trying to tweak some PHP code on my own without the programmer's help... actually it's just an addition that I want. Basically, I'm trying to enter object_id... into a classes_entered table which has class_id & object_id. There is also a classes table with class_id and show_id. I'm …

Member Avatar for violaceous
0
124
Member Avatar for yaseer zeni

Dear Members, I have three drop downs 1. Expense Type (Maintenance & Running) 2. Maintenance Expense 3. Running Expense All are populated through there data bases. I want, if i select maintenance from first only maintenance will be available and if running expense only running expense values are available. your …

0
82
Member Avatar for sem123

How to convert excel file to pdf and upload in php I need a project to convert file in pdf file as excel and upload to webserver and see in pdf format how can i use linux server for pdf converter in linux and upload file

Member Avatar for cwarn23
0
113
Member Avatar for davy_yg

category_manager.php [CODE] <?php //LOAD USER $result = mysql_query("SELECT * FROM kategori_berita"); while ($data = mysql_fetch_array($result)){ ?> <tr> <td><?php echo $data['kategori'];?></td> <td> <a href="./category_manager.php?id=<?php echo $data['id']; ?>&mode=delete">Hapus</a> | <a href="./category_manager.php?id=<?php echo $data['id']; ?>&mode=edit">Edit</a> </td> </tr> <?php [/CODE] Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\php_template2\category_manager.php on line …

Member Avatar for Matthew N.
0
249
Member Avatar for davy_yg

I have the following codes: [CODE] <?php class LongName { var $firstname = " "; var $middlename = " "; var $lastname = " "; function firstname() { echo "First Name : ". $this -> firstname; } function middlename() { if (middlename){ echo "Middle Name : ". $this -> middlename; …

Member Avatar for cwarn23
0
154
Member Avatar for stupidfly

I want to display the URL of a page using PHP. Basically do this: <script language="javascript"> document.writeln(document.location); </script> with PHP

Member Avatar for ragstergurr2122
0
417
Member Avatar for atalkingfish

Hello, I have been learning php stuff for the last few days. Recently, I have learned how to allow user registration, and I have made this simple voting code that allows people to "like" or "upvote" something on my site. The way the site is set up is there is …

Member Avatar for atalkingfish
0
245
Member Avatar for atalkingfish

I have a page on my testing site where users can post news. The posting page has a title, link, and body. The link can be left optional. I wanted the page to turn out that if a link was provided, it would make an <a> tag around the title, …

Member Avatar for atalkingfish
0
125
Member Avatar for amear

i have a smile function i want a simple add on it i want to set the limit for replace codes with smiles function smiles($shout){ //This function searches the shout for the smilies and replaces it with the image code. $FileName="lists/smiles.php"; $list = file ($FileName); foreach ($list as $value) { …

Member Avatar for diafol
0
258
Member Avatar for maxlipman

Hi, My name is Max and I am 14. I need to show warning first time my site is visited. (like SNIP the first time you visit it shows a warning, the seconds time it just takes you to the site, my uncles friends site) Does anyone know a simple …

Member Avatar for maxlipman
-1
138
Member Avatar for edn_781

Suppose I have a PHP SESSION script, which can load in my friend PC but not run into my PC. Code is same and code running a single server machine! What could be possible reasons? HELP me!

Member Avatar for diafol
0
65
Member Avatar for shujat132

Hello seniors, How are you….? I need your help to remove little logical error form user registration form. I have created a user login & registration form. It works fine when I try to reach that form by this method First I put this address in address bar [COLOR="Red"]http://localhost/series/[/COLOR] After …

Member Avatar for diafol
0
316
Member Avatar for abhi10kumar

I am using pagination with search option. Pagination is working perfectly, when I searched and click submit button the no. of records and pagination are showing correctly on first page and pagination. But when I click on next page it will show all records ( means default query) <?php if(isset($_POST['Submit1']) …

Member Avatar for diafol
0
709
Member Avatar for davy_yg

[CODE] <?php // connect to database $con = mysql_connect('localhost', 'root', ''); if (!$con) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully <br>'; $db_selected = mysql_select_db("template", $con); if (!$db_selected) { die ("Can't use template : " . mysql_error()); } else echo 'database connected <br>'; mysql_close($con); //LOAD USER $result …

Member Avatar for antonioatt
0
110
Member Avatar for kaosjon

Hi, i am just adding the last component to my registration page, but i am having a little trouble with it. Basically my website includes a referal based system, wherebye when the user signs up they can add a referal that benefits the referal later on. The code i am …

Member Avatar for kaosjon
0
122

The End.