39,316 Topics

Member Avatar for
Member Avatar for venet

Hey team, I want to know how I should go about re-ordering records sent from a db table - but I want to order the data in a custom manner, i.e. allowing a user to change the position of the records. I have a table (for example sakes lets call …

Member Avatar for sallecpt
0
129
Member Avatar for andydeans

Hi, I have been using some tools to generate my php code as i have little knowledge of php. the tools are ok but the support is rubbish. everything is generated in US date and time format and i need it to be in UK. anyway to cut a long …

Member Avatar for almostbob
0
79
Member Avatar for reedd5404

I have a php login scripts and the page is secured. But my images on the page can be viewed if you know the direct url. How can i make it to where only logged in users can view images?

Member Avatar for reedd5404
0
106
Member Avatar for Stefano Mtangoo

I have done a lot of PHP but never JSP. I have checked tutorial but not gone too far. I see there are Java beans and some servlets which I'm zero brain at. So I have two questions: 1. Where to read a concise tutorial (Not too detailed I mean) …

Member Avatar for Stefano Mtangoo
0
186
Member Avatar for k2k

i have been using WAMP so never did a real php install... now i am trying to install php on a windows2003 machine... downloaded php5.3 msi file and finished the installation, added the path to the environmental variable. i can run php file in cmd now. however, i used notepad …

Member Avatar for k2k
0
104
Member Avatar for seularts

How can I change the chmod to 0777 through PhP for a folder with subfolders and all it's content!? Or if I set the chmod for the folder with the subfolders all the subfolders will have 0777 permission as well? Thanks :)

Member Avatar for JRM
0
159
Member Avatar for mstatdaniweb

Hello, I'm trying to pass a $counter2 value from php loop to javascript, but $counter2 is incremented so I'm passing the highest value of $counter2, which i not what I want to do. Is there a way to combine values with html identifiers and pass them to js?I would be …

Member Avatar for mstatdaniweb
0
90
Member Avatar for jazz_vill

I have this function [CODE] function displayOrderList() { $path = "file.csv"; $file = fopen($path,"r"); $row = 0; while (($column = fgetcsv($file,1024," "))!== false) { $row++; $price = $column[0]; $product =$column[1]; $productid = $column[2]; $price_id ="price".$row; $qty_id = "qty".$row; $total_id = "total".$row; echo "<tr align=center> <td><input type=\"text\" name=\"qty[]\" id=\"".$qty_id."\" value=\"0\" size=\"5\" …

Member Avatar for almostbob
0
60
Member Avatar for sonia_demo

Hello friends, I'm creating image slide show. I can isplay images and checked imges (those that i want in slide show). but problem is i want save selectec images so that i can use them in slide show any idea plz help

Member Avatar for rajarajan2017
0
205
Member Avatar for qazplm114477

Hi, Recently I've been reading up on a lot off material regarding PHP to further my knowledge and one of the things I keep reading about are Frameworks for PHP like [B]Zend [/B]or [B]cake [/B]or groovy or the new [B]lithium[/B] So my question is: 1) What framework do you recommend …

Member Avatar for saiprem
0
94
Member Avatar for rukshilag

Hi Does Anyone know how to display a table based on user selected fields? In my search box, once the user searches lets say all the female students, all the female students will show with all the fields of that particular table. then if need to print a report i …

Member Avatar for diafol
0
154
Member Avatar for Scottmandoo

Ok so heres the site: [URL="http://allegro1dancestudio.com/"]http://allegro1dancestudio.com/[/URL] Ive made an event calendar for that site which uses a flat-file database. The calendar part works fine, however, the code is able to make the file but will not write to it and therefore I dont know if i can even get event …

0
61
Member Avatar for rouse

In searching the web I can’t find a clear explanation of how to define an array with a key value combination and then how to reference the elements. I want an array that has a key of date and description, this is for a MySQL result set. This seems to …

Member Avatar for rouse
0
130
Member Avatar for aditya61

Please help me... not able to figure out what is wrong with this code! <?php if($_POST == "submitted") { echo ' <script type="text/javascript"> // Used them both and to my horror, none of them work!!! document.BPC.postback.innerHTML = "postback"; document.getElementById("postback").innerHTML = "postback"; </script> '; } ?> <html> <head> <title> Help me! …

Member Avatar for aditya61
0
83
Member Avatar for freedompeace

Hey everyone, Um, I've been working with PHP and MySQL for a few weeks, and to store text I've always been stripping anything but alphanumeric characters, which has worked fine until now. For my next project [I want to create a simple CMS/forum for my website], I need to store …

Member Avatar for colweb
0
268
Member Avatar for twilitegxa

I'm trying to develop a little game and I have run into a problem. Currently I have the user log in, choose their character, and then go to a page where they can fight random monsters. When they get to the page to fight with the random monsters, the character's …

Member Avatar for almostbob
0
140
Member Avatar for Hypalink

I have a problem with my remember me php function. For some reason it works perfectly in Firefox but not in IE8. I suspect it's something to do with the checkbox? IE seems to automatically remember the user even if the checkbox remains unchecked! So a cookie is set when …

Member Avatar for genevish
0
187
Member Avatar for collizz

Hi I have a basic PHP contact form using JS validation for empty fields, format checks, etc, which all work fine. I now need to add a mail() using the user input. I've made a version work, using some basic validation in PHP and comment out the JS, but I …

Member Avatar for Monster Killer
0
650
Member Avatar for tania88

Hello all....i just wanna ask maybe a simple question.....here it is...i have develop one system..using php ,mysql...and have multiple user login to the system..and..what i want is, after the user log in, all the detail about the logged user would be retrieve in another page based on log in detail …

Member Avatar for tania88
0
94
Member Avatar for rahul8590

i have written a small code to store the checkbox values into the db. But its showing me a parse error . Unable to figure out what it could be . [CODE] <?php $dbc = mysqli_connect('localhost', 'root', '', 'test') or die('Error connecting to MySQL server.'); if(isset($_POST['language'])) { $language = $_POST['language']; …

Member Avatar for rahul8590
0
194
Member Avatar for bobgodwin

I need to get a file name from a jpg without the extension to use as id in a span tag. Here's the code I'm using: [CODE] <?php $result = mysql_query("SELECT * FROM $data_sales_earrings ORDER BY id ASC"); while($row = mysql_fetch_array($result)) echo " <span id=\"need file name from jpg front\"><img …

Member Avatar for bobgodwin
0
224
Member Avatar for tuukie

Want to make a pulldown for hours and I want it to be on the hour now (it is now 22:40 so the pulldown should be on 22). Here is the code: [CODE=php] <?php $hour_now= date(G); $minute_now=date(i); ?> <form action="index.php" method="post" id="schedule_form"> <p> <label>Hour</label> <select name="send_hour"> <?php for($i = 0; …

Member Avatar for tuukie
0
137
Member Avatar for gymangel812

I need to add a new sandwich name, description, origin, price and picture to a database. These are to be added to multiple tables. Ignore the drop down menu, it doesn't have anything to do with the query. The problem I'm having is getting the new product_id which is auto …

Member Avatar for LethargicCoder
0
232
Member Avatar for meganmink

Hello guys, i'm having an issue with updating the record in my database. everything seems to work well except that whenever i try updating the record via the mysql update procedure, it just returns with no errors and the record is not update. i tried echo'ing the $result to see …

Member Avatar for LethargicCoder
0
140
Member Avatar for kingben

Hi. Please refer the code. I am having trouble in the 3 times nested loop (at the end) [code="php"] <?php error_reporting(E_ALL); ini_set('display_errors', true); ini_set('html_errors', true); function remove_blank_spaces($strWhite) { trim($strWhite); $string = ""; for($i=0; $i<strlen($strWhite); $i++) { if($strWhite[$i]!=" ") { $string .= $strWhite[$i]; } } return $string; } function get_all_substrings($input, $delim='') …

Member Avatar for kingben
0
236
Member Avatar for Forged

Hey Guys, I configured PHP myself, included all of the libraries I needed... but then realized I forgot the freetype library. So I went back to my php-5.3.2 directory and ran[CODE] ./configure '--with-free-type=/usr/local/lib'[/CODE] PHP did the configure fine, no errors. But when I run make: [CODE]collect2: ld returned 1 exit …

0
60
Member Avatar for seularts

So lets say i have this url: $url = $_POST['site']; I would like to remove the [url]http://,[/url] the www. and the last "/". The trick is that the $url can be witten like this: $url = 'http://site.com/' like this: $url = 'www.site.com/' or even like this: $url = 'site.com/'. And …

Member Avatar for seularts
0
264
Member Avatar for nonshatter

Hey, I have been trying to devise a way to insert a formatted PHP date() variable ($expires) into a publicly available javascript countdown clock. Obviously, this is made difficult because PHP is server-side and Javascript is client-side. This first piece of code is me adding a number of days to …

Member Avatar for BeachyUK
0
234
Member Avatar for sas4u
Member Avatar for rafik.mulla

how to send session variable from one domain to another domain plz help

Member Avatar for BeachyUK
-4
71

The End.