39,393 Topics

Member Avatar for
Member Avatar for Designer_101

Hi The user clicks on a buttons to delete all posts in a thread (this also deletes the parent post). The code is bellow. This however isnt working, its deleting all the parent posts, even those that dont correspond to the topic clicked on. Any ideas [CODE] if (isset ($_GET['delete']) …

Member Avatar for humbug
0
273
Member Avatar for phpNewbie

i'm still struggling with php - its soooo confusing to me this is the code i have now - is it in the wrong order? or whats missing please to make it work - i'm trying to get a result if 'both' genders are selected and if 'any' origin is …

Member Avatar for phpNewbie
0
152
Member Avatar for cosby

hi everyone i have a script that upload a file to the server and i am running apache2 so the default apache usersis www-data and group www-data,so as i upload the file i want each and every file that uploaded to the server to change from www-data to staff user …

Member Avatar for digital-ether
0
130
Member Avatar for GavinHolt

Hi everyone! One of the things that many websites don’t have, or have a poor implementation of is a contact form. Contact forms are one of the easiest methods to get feedback from users and often underestimated... I know many people don’t have the skills or time to write a …

0
54
Member Avatar for Renzokouken_22

Guys We have a project.. . Its' a sales and inventory system.. . My question is can PHP and Java plus MySQL.. Work together.. PHP obviously runs in a web browser. But I wanted also the java program to run also in the web browser, can I also run the …

Member Avatar for digital-ether
0
94
Member Avatar for sikka_varun

Hi All, I have a PHP Application and a folder in that say, online_training. Now i want this online_training to be secured.. It contains some pdf and swf files... I am using databases and PHP Sessions for user validation but i can still directly access my pdf files without logging …

Member Avatar for digital-ether
0
141
Member Avatar for Designer_101

Hi I've quite a while into my PHP course now however I seem to have missed something, I keep seeing things like: [CODE]if ($variable_name) {..[/CODE] It's quite scary because I should really know this and it seems extremely basic so sorry for the questions simplicity. Is it asking wether the …

Member Avatar for Designer_101
0
108
Member Avatar for BASSUHG

I have a table with roll num,name,games. Roll num is primary key, I am able to store the data in mysql table and able to retrieve it back using PHP. I enter the details through the form using php script. 01 A Tabletennis 02 A Cricket 03 B Tabletennis 04 …

Member Avatar for BASSUHG
0
54
Member Avatar for BASSUHG

hi everyone, i am retrieving some 25 dates from html table, and calculating. suppose date is 03-feb-2009 i am converting it to 03-02-2009 and calculating with present date. It gives the same answer to each and every date calculated, any one helpme, i have tried google n php.net, its urgent …

Member Avatar for BASSUHG
0
191
Member Avatar for gagan22

Hi everyone, I found that problem is not in session probem is that when i am login in one php page where i already used session but when i am doing login with login name and password . I have seen that when i am printing value login name and …

Member Avatar for nav33n
0
203
Member Avatar for siri_ajay

Hi every body I have a problem.I m uploading images from main domain in admin side.I want to display those images in subdomain.Is it possible to point the images path in subdomain.Presently what i did is i create separate admins for main domain and subdomain and uploading same images from …

Member Avatar for chrishea
0
34
Member Avatar for AutoC

Hi, I'm new to php.I had to include common content to a lot of webpages in my website like menubar etc. and i was told i could load them dynamically from a single file using php.Can someone help me with this?

Member Avatar for kadimi
0
122
Member Avatar for serkan sendur

hi guys, i need to know what should i type to my browser to access apache/tomcat webservers root web folder. there should be some config files that i could see. help please thanks.

Member Avatar for nav33n
0
60
Member Avatar for rEhSi_123

Hello, Basically I am creating a Forum system and I want to add a feature in which the the 'admin' of the forum can delete the topic created inside the forum. I know I would need the following sql statement: [code=php] $sql = "DELETE FROM `forum_topics` WHERE `id`='".$id."'; [/code] Currently …

Member Avatar for rEhSi_123
0
246
Member Avatar for veledrom

Hi, Can i use sleep() for 1 hour? I mean is there any expiry time for it or browser or session so on. Purpose is to send 2000 emails every one hour. Thanks

Member Avatar for digital-ether
0
195
Member Avatar for santhanalakshmi

Hi, Anyone,please help me ............... my first page called `index.php` (which has username and password field to enter to move on to next page) index.php code <?php session_start(); mysql_connect("localhost", "root", "")or die("cannot connect"); mysql_select_db("artedb")or die("cannot select DB"); if (isset($_POST) && ($_POST == "submit")) { if($_POST=="" && $_POST=="") { $msg="Please enter …

Member Avatar for Designer_101
0
362
Member Avatar for sacarias40

Does anybody know where i could get some information or guides on designing my own CMS???

Member Avatar for sacarias40
0
107
Member Avatar for rjrasmussen

Hi there, Although I wouldn't consider myself a noob, I am still learning about the many facets of PHP. I have encountered a need to write an if statement that will generate an error if the specific criteria are not met. Here's the deal... There are four fields that a …

Member Avatar for nav33n
0
80
Member Avatar for sam1

hi, i have this script, which i want to order by name. but when i say order by name asc at the end i get error: here is the bit i am changing [CODE]$genre_id = $_GET['id']; $items = ITEMS_PER_PAGE; if(isset($_GET['page'])) { $offset = $_GET['page']; $offset *= $items; $query = 'select …

Member Avatar for almostbob
0
106
Member Avatar for nmakkena

My system is a stand alone system, I want to connect to MYSQL using PHP, I am giving hostname as localhost, and the needed username and passoword. In the browser i am getting Internal server error 500. Any sort of help much appreciated, Thank you

Member Avatar for nav33n
0
138
Member Avatar for bimaljr

Hi I have a variable like this : [CODE]$fulltext = '<h1>Welcome</h1> <h2>Welcome to this website</h2> <p>Some text here. </p>';[/CODE] Now I want to get only [B]Welcome to this website[/B] in another variable. I want to copy text between [B]<h2>[/B] and [B]</h2>[/B] I don't know how to do this? Please help …

Member Avatar for nav33n
0
142
Member Avatar for Shanti C

Hello.. I want to compare my database date with current system date and i can do some oprations by that.. Wating ... Shanti

Member Avatar for Shanti C
0
157
Member Avatar for madristaa

Hello friends i need help with onclick and onsubmit events At the bottom of my page I have two button 1)save 2)submit. When the user click on save button it will go to save_button.php page When the user click on submit button it will go to submit_button.php but It will …

Member Avatar for samarudge
0
362
Member Avatar for crazynp

Hi,Will anyone plz suggest me on how to build a html file from rss feed and store it in a webserver or is it possible to make and store html file from the contents of mysql database using php and then store the html file in the webserver. Thanks in …

Member Avatar for alan_ot
0
392
Member Avatar for rajeesh_rsn

Hi i need ti delete a file from the server using php. I wrote the code and working fine in my localhost . But when i uploaded in to my ftp server then the following error came. code: [ICODE]if($phototo<>'defaultv.jpg'){ unlink('../share/'.$phototo); } header('Location: '.'manage_auto.php');[/ICODE] -------------------------------------------------------------------- Directory permission is 777 ------------------------------------------- Error: …

Member Avatar for somedude3488
0
126
Member Avatar for mangel.murti

hi all, Donn't know much php........... i want that when user register,his registration date store in db.i want to use server date not his system date in db. thankx in adva...

Member Avatar for Designer_101
0
141
Member Avatar for rajeesh_rsn

Hi i had a database table which stores images in columns. ie [ICODE]idno + image name + name 1 | lal.jpg | raj 2 | lal2.jpg | raj2 3 | lal3.jpg | raj3 .....[/ICODE] Now I need to show this images and these names in a page as 3 columns.... …

Member Avatar for mrcniceguy
0
76
Member Avatar for achiman

SQL QUERY if ($_SERVER ['REQUEST_METHOD'] == 'POST') { if ($_POST['mylist1'] == 'm2') { $sql="SELECT Products, TABLE 1"; $rs=odbc_exec($conn,$sql); } elseif ($_POST['mylist'] == 'm3') { $sql="SELECT Products, Table2"; $rs=odbc_exec($conn,$sql); FORM 1 echo ' <form name="input" action="kkl.php" method="GET"> <div align= "left"> <b>City:</b> <select NAME="list1"> <OPTION VALUE="m1"></option> <OPTION VALUE="m2">London</option> <OPTION VALUE="m3">Paris</option> <OPTION VALUE="m4">Tokoyo</option> …

Member Avatar for nav33n
0
90
Member Avatar for stevehart808

Hi guys, hoping someone can shed some light. I have a script that I've been using for a while to submit a date to Mysql. Its been working fine but now I'm trying it on a site I'm building and when I hit submit NO date is entered into Mysql. …

Member Avatar for stevehart808
0
86
Member Avatar for tominic

So I've created an array based on posted information (a big list of numbers separated by lines which has then been exploded) So this array may contain numbers from 0-100 or whatever So I have one array of numbers Now for each number I want to find out many numbers …

Member Avatar for nav33n
0
85

The End.