39,393 Topics
![]() | |
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']) … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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. | |
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 … | |
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 | |
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 … | |
Does anybody know where i could get some information or guides on designing my own CMS??? | |
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 … | |
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 … | |
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 | |
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 … | |
Hello.. I want to compare my database date with current system date and i can do some oprations by that.. Wating ... Shanti | |
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 … | |
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 … | |
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: … | |
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... | |
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.... … | |
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> … | |
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. … | |
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 … |
The End.