39,323 Topics
| |
hey guys. I have two MySQL tables. I'll try to keep it short :-/ Basically I'd like to join these tables, and get the data from the database. Not here's the detailed info. I usually use the JOIN function, but this time, no join statement does the job. Neither LEFT, … | |
I accidentally posted in the wrong section of the forum... [URL="http://www.daniweb.com/forums/thread279411.html"]http://www.daniweb.com/forums/thread279411.html[/URL] Im trying to use php echo to display domaincom (with no dot in between) and can't figure it out. [CODE]<?php echo(preg_replace('/^[a-z]*./','',$_SERVER["HTTP_HOST"])); ?>[/CODE] works to display domain.com but I need domaincom | |
Hi all, i want php code which will add website's logo in user's uploaded doc file. So whenever that doc file is downloaded from website logo appears at top. How can i achieve this in windows/Linux both. any help will be appreciated. | |
hello... i am doing registration form .in this without submit form can i get alert box....email already exists using javascript. can any body tell me. thnks. | |
Warning: array_sum() [function.array-sum]: The argument should be an array in pdf.php on line 112 i am getting this error and i dont see what the problem is. it calls values and adds them [CODE]$result = mysql_query("SELECT * FROM sold_produce WHERE invoice_id='$invoice_id' "); while($myrow = mysql_fetch_assoc($result)) { $total2[] = $myrow['total']; } … | |
hi all, i am having a user table in which userid and username are present. i had a delete button also. so wen i click on the delete button that person details only should get delete. so all i had done. I can delete the information using 'userid'. how can … | |
I have two systems krulu with them in this google phpbb lovepowerman.net All right adense seems that my other blog if you google lovepowerman.com adense not seem to mind the wisdom what causes yicem pls help | |
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 … | |
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 … | |
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? | |
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) … | |
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 … | |
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 :) | |
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 … | |
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\" … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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! … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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']; … | |
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 … | |
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; … | |
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 … |
The End.