39,320 Topics
| |
Below is a documented code example showing how to use the [PDO](http://php.net/pdo) classes/objects to connect and query your database (and check for errors). If there are any questions, or you want to see different features, let me know. UPDATE: I've encountered a problem with PDO and bit fields (MySQL). If … | |
I am building a search engine. And when a user types their search into my engine, my script only really checks for words in the statement, and if they match the keywords...the result is returned. But what if iPad is searched and Apple, because is is a higher rank, is … | |
Hi I am trying to get my a paypal system working, where users pay for a product and the information is then stored in a database. I had it working but it has now stopped entering the information into the database and I am not sure why. One reason I … | |
hi i'm new to php and i have problem with header i try to redirect to home page but when i use header nothing happend i tried it in anther page and work but i don't know why it don't work here <?php session_start(); ?> <?php ob_start();?> <form action="index.php" method="POST"> … | |
hello how are you guys i am a new member here and want your assist and this is the first topic for me the question is how can i use <ol><li></li></ol> in while as this <table width='100%' border='1'> while ($row=mysql_fetch_object){ echo " <tr> <td>$row->name</td> /tr>"; } </table> i want to … | |
Hi team, I have a index.html file and a login php plugins([Click Here](http://tutorialzine.com/2009/10/cool-login-system-php-jquery/.) But am not sure how to include it in Index.html script. May the question is very silly. But,I just started learning about web development. I know the basics but practical wise no experience. Please advice the steps. … | |
In a SQL field I have this: GroupManager 2.0 (2.9.3) (Phoenix)<br/>MultiInv 3.1.3<br/>Ptweaks 4.2<br/>WorldEdit 1232-0bc9369 Which spits out this: GroupManager 2.0 (2.9.3) (Phoenix) MultiInv 3.1.3 Ptweaks 4.2 WorldEdit 1232-0bc9369 Multiverse-NetherPortals 2.4-b530 How can I make it so it's two text columns like this when I echo it onto a page: GroupManager … | |
Hi everyone, just wanted to know what type should i use in mysql database to store the urls (for linking purposes) of videos(from youtube,vimeo) and slides (from slideshare)...i just want to store the urls not the whole video..for tht i wud use directory/ file functions.. please help... helpful comments will … | |
Hey everyone, I'm just wondering how the read more feature is achieved in PHP. It is like facebook where it displays a couple of lines then if you're interested in reading more about the status or article click 'read more link' which expands the box. Cheers, | |
hi fellas, Im using javascript framework in uploading image via ajax but the problem is $_FILE is empty here s my code: <form action="upload.php" method="post" enctype="multipart/form-data" id="upload" name="upload"> <input type="file" name="file" id="file" style="border:none"/></center> </form> js var url = 'upload.php'; new Ajax.Request(url, { method: 'post', contentType: 'multipart/form-data', encoding: 'UTF-8', parameters: $('upload').serialize(true), … | |
What is the PHP extension to connect to mysql? I have installed them using wamp sever and they are not connecting because they dont have the extensions, where can I get the extension? | |
$plugins = $Server->Get('plugins'); echo "<br /><br /><b>Plugins</b><br> "; foreach($plugins as $plugin) { echo $plugin."<br>"; } That snippet above spits out a long list of plugins from a server. How can I store each plugin listed into SQL so that its stored as '$plugin[0]<br/>$plugin[1]<br/>$plugin[2]<br/>' and so on so that when I … | |
Hi! as you can read in the title. I want to know how to put the website I am making online. I'm pretty clueless and do not know what to do. I use `wampserver (WAMP5)`, apache version is `2.2.4 (Win32)` and MYSQL. What are the things I should need or … | |
| |
Hi,, Is it possible to get IP of server where the script is running. I used following code <?php echo $ip=$_SERVER['REMOTE_ADDR']; echo $_SERVER['SERVER_ADDR']; ?> But it outputing as "127.0.0.1". Is there any way to print IP ? | |
Hi :) I got a problem with 2 foreach. When i execute it the result repeats X times. This is my code: $tab1=array('name','firstname','age'); $exceptions=array('hide','submitForm'); $test=''; foreach($tab1 as $val){ $test.=$val.'='; foreach($_POST as $key=>$value){ if(!in_array($key,$exceptions)){ $test.=$value.','; } } } echo $test; This is the result obtained: name=Smith,John,30,firstname=Smith,John,30,age=Smith,John,30, I would like to obtain … | |
Hi all, I have a PHP script that takes a string and lists all its permutations, but ONLY based on its length. So for instance, let's just say we had the word "racecar". Yes, it would list all permutations of the 7-character word "racecar" such as "acrerac", etc. but NOT … | |
hi fellas, need some brilliant idea, i want to get the firstname,lastname,middlename of the employee below using javascript. ________________________ Atty.Jan Rex Camvarijan Rex Uy Cambarijan Rex Cambarijan Rex Ma.Rex B. Cambarijan ||| Rex del Rosario __________________________ what i really want is how could i separate lastname firstname middlename in those … | |
hi!i need your help.Here are my question. i need to create a folder for that particular user and store the .pdf file inside, means different user for different folders.and inside the folder.i really need full coding.please help me!! :'( | |
Hi all. I have been working on a action script and finally got it working. I am totally lost of how to write my PHP email codes for when the person press submit all the information they fill in is sent to me via email could someone help me please. … | |
Hi. We had a website designed and it is hosted by Inmotion Hosting. I have an excel spreadsheet that I need customers to view on a web page. There are 10 different spreadsheets what is the easiest way for me to do this? Do I just create a link to … | |
Hi - I am working on setting up a calendar from Google. I'm curious. Is it possible to setup the calendar to use the colors I choose with a layout that fits my needs (more of an Agenda than a actual calendar)? I've spent about all day reading about the … | |
Hi I have created a small program that enables the user to upload a phote and get an email back with a watermark on it. Now the watermark is places in the bottom border with no margin, so I was wondering if anyone knew how I could make a small … | |
Hello, I'm designing my own website, I want to create online assignment submission system which allows to students to upload their assignment through this webpage,and receive feedback immediately via the browser.The teacher can recieve student documents and grade the student for his assignment. Since Im working on my localhost(XAMMP), let … | |
there is some problem fetching data from csv file to database: code, database,csv data and error image is attached please mention the problem. thanks in advance :-) php code: <?php /********************************/ /* Code at http://legend.ws/blog/tips-tricks/csv-php-mysql-import/ /* Edit the entries below to reflect the appropriate values /********************************/ $databasehost = "localhost:3307"; $databasename … | |
I have a url that includes %25 (/CHIPDRIVE%25AE-micro-pro-SCR335_detail_8_196.html) and I am trying to use a Redirect to redirect it to the new URL. Currently using a Redirect 301 and it is currently not working. | |
Hi hope someone can help I have an array with daynames in dutch but when i use the day zondag it is not workin and i don't know why Can someone help me to make it work here is the code if($row3['geboortedatum']!= "0000-00-00") { $rss = $row3['geboortedatum']; $dayNames = array( … | |
hi! I'm pretty new to php and i just want to ask how to update tables in mysql using php? here's my code snippet $product_code = $_POST['pCode']; $submit = $_POST['submit']; $user = $_SESSION['username']; $quantity = $_POST['quantity']; $price = 300.00; $date = date("Y-m-d",mktime()); require('connect.php'); if($submit) { if($product_code) { mysql_query("INSERT INTO `order` … | |
Hello all, Im trying to do this tutorial on cakePHP website for 1.3 It asks me to use the cake bake function to automically create models based on the tables I made. (using .cake bake all) The bake functionality it self works great, but it presents one problem. cakePHP creates … |
The End.