39,320 Topics

Member Avatar for
Member Avatar for chrispitt
Member Avatar for mr.unknown

i want to install php but i don'y know how plz give me guide and all the things that i need plz provide complete instalation here???

Member Avatar for jkon
0
255
Member Avatar for phfilly

Hi! I have a problem with the unlink() php function. What I try to do is to delete a certain file in a directory. Now the function works fine. But when I call it then it deletes ALL the files inside of that directory. What I want is for it …

Member Avatar for phfilly
0
2K
Member Avatar for dina85

after press submit button to upload the image, the information will display at new window, i need the information will be display below submit button. my code: <?php if($_GET['action'] == "upload") { ?> <div id="upload"> <br/><br/> <form action="upload_image.php?action=upload" method="post" enctype="multipart/form-data"> <label for="file">Gambar yang ingin dimuat naik:</label> <input type="file" name="file" id="file"><br><br/> …

Member Avatar for minitauros
0
260
Member Avatar for McLaren

I was writing unit tests for half year or more at my work, hoping that I do good job. But the problem is I rarely see the benefit of them. So I don't understand, why it is good. Many of the test functions look like this - they test model …

Member Avatar for davidkroj
0
509
Member Avatar for dina85

can't download file from database, got error, help me please.. <?php require("conn2.php"); $sql="select image from images where id='$_GET[id]';"; $result = mysql_query($sql); $row = mysql_fetch_array($result) $name = $row['image']; // the name of the file that is downloaded $FilePath = "upload"; // the folder of the file that is downloaded , you …

Member Avatar for minitauros
0
266
Member Avatar for sushants
Member Avatar for igabc
Member Avatar for Sp!ke

This little snippet will teach you all about arrays and arrays of arrays, and so on and so forth.

Member Avatar for LastMitch
2
226
Member Avatar for mrvijayakumar

Friends, Kindly suggest me best PHP Open Source for Social Networking website. Looking forward your best suggestions. Thanks in advance...

Member Avatar for diafol
0
533
Member Avatar for geneh23

Hey everyone, I don't have any code but I was wondering if it was possible to have a list of houses or properties for sale and have it connected to google maps to show the location. Is there anyway to do this in php? Sorry for the lack of knowledge. …

Member Avatar for geneh23
0
131
Member Avatar for while(!success)

Hi guys, I have php code that generates a table based on the results of a mysql query. My questions is how do I update edit the html table row and push the changes to a mysql table? I am using this example: http://bootsnipp.com/snipps/table-with-users The thing I am trying to …

Member Avatar for while(!success)
0
767
Member Avatar for dbalas

Hi! Ok, I have tried every pssible way to make this possible but it looks like im running in to cercles... My script simply doesnt want to send embaded logo... It wants to send it as an image like `<img src="http'//..." />` but than i have problem with viewing the …

Member Avatar for paulkd
0
495
Member Avatar for dhani09

I'm reading data from my DB and displaying it in a table like this while($row = mysql_fetch_row($result)){ $_SESSION['edit'] = $row[1];//it says undefined index 'edit' echo '</tr>'; echo ' <td class="product"><a href="manage-products-2.php?prod_id ='.$row[0].'">'.$row[1].'</a></td>';//it says undefined index 'prod_id' echo'<td class="quantity">'.$row[5].'</td>'; echo '<td class="item_price">'.$row[4].'</td>'; echo '<td class="item_total">'.$row[6].'</td>'; echo '<td class="item_unsold"><a href = "manage-products.php?prod …

Member Avatar for minitauros
0
1K
Member Avatar for akkbkht

Hello. I am having a bit problem with the insert query, Every thing is fine but don't know why its not inserting the queries. Have a look onm code; function insert() { var table=document.getElementById("myTable1"); var table=document.getElementById("myTable"); <?php $con=mysqli_connect("localhost","root","","bsc_db"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: …

Member Avatar for EvolutionFallen
0
210
Member Avatar for PF2G

Hi, i have this bas_facebook.php to login with facebook on my website, but it gives me error with the exception: if (!function_exists('curl_init')) { throw new Exception('Facebook needs the CURL PHP extension.'); } if (!function_exists('json_decode')) { throw new Exception('Facebook needs the JSON PHP extension.'); } /** * Thrown when an API …

Member Avatar for pritaeas
0
249
Member Avatar for adityamadhira

Hi This is my pdf file upload code [CODE]<html><head> <title>Upload a .pdf to a database</title> <h2>Please select your .pdf</h2> <form enctype=multipart/form-data action=test.php method=post> <input type=hidden name=MAX_FILE_SIZE value=1000000> <input type=hidden name=completed value=1> Please choose a .pdf to upload: <input type=file name=imagefile><br> Please enter the title of that document: <input name=whatsit><br> then: …

Member Avatar for TonyG_cyprus
0
144
Member Avatar for ak47carbon

i want to redirect my query base url to pretty url,i am trying this on local host, i want if any one try to access http://localhost/something/index.php?page=zen it will redirect to http://localhost/something/zen.html, ie http://localhost/something/index.php?page=zen => http://localhost/something/zen.html RewriteEngine On RewriteCond %{REQUEST_URI} ^/index\.php$ RewriteCond %{QUERY_STRING} ^page=([a-zA-Z0-9_-])$ RewriteRule ^(.*)$ http://localhost/cmsmadesimple/%1.html [L,R=301]

Member Avatar for ak47carbon
0
278
Member Avatar for MasterHacker110

I am writing a few webpages and i want to use some php in one of them. The problem is that my php code never displays an ouput even of the simplist form. I have this very basic code: <html> <head></head> <body class="page_bg"> Hello, today is <?php print("Hello"); ?>. </body> …

Member Avatar for MasterHacker110
0
213
Member Avatar for sushants
Member Avatar for bradly.spicer

Just a quick question really, I'm using a database which is for Moodle, and I want to extract the login details for an Android app I am writing so they can login to that database and See their information. Part of it is in PHP... so it's Java > PHP …

Member Avatar for LauraLemana
0
135
Member Avatar for ahudson

Hello Guys! I had two questions, but I seem to have forgotten the other, if I remember, I will reply to this thread with it. Sorry. I have no idea what this would be called (maybe digital certificate), however, I saw an awesome feature on the USPTO website (https://ppair.uspto.gov/authenticate/AuthenticateUserLocalEPF.html) where, …

Member Avatar for JorgeM
0
375
Member Avatar for zippee

Is there any way I can convert dynamic URL into static URL in php? i.e. convert php file into html so that the page is search engine friendly. For example: Change this: [url]http://mysite.com/pagename.php[/url] To this: [url]http://mysite.com/pagename[/url] or this: [url]http://mysite.com/pagename.html[/url] I know there is something called mod_rewrite in Apache, but not …

Member Avatar for mikerock
0
780
Member Avatar for neville.solomon2

Hi everyone, I joined this forum because I was hoping to learn from experts in programming. I know next to nothing about it. I want to develop a web app for lawyers, and plan to outsource it's development to a programmer. But I have no idea what I should look …

Member Avatar for chrishea
0
217
Member Avatar for mpc123

Hi Im trying to get mysql_query result with foreach set up and i am just planning what i am going to do but I am stuck with adding foreach into my code so far. Basically F field has several different options which are duplicated lots of times, so i need …

Member Avatar for mpc123
0
256
Member Avatar for mjsmitten

I have the following function for resizing to (also) thumbnails, and widht and height for big, smaller and thumbs is fixed sizes, but the problem is this: If an uploaded image is small in dimensions there is a large white space around the thumb to make it a fixed size; …

Member Avatar for pritaeas
0
193
Member Avatar for akkbkht

Hello. Please guide me how to start a session when a user clicks on login page and the info finds correct? How to check this session on other pages which i want to secure from unauthorised access? if the session found then open this secure page, otherwise redirect the user …

Member Avatar for OsaMasw
0
323
Member Avatar for chrispitt
Member Avatar for rolandbleyer91
0
553
Member Avatar for smgeshi

Hi all, I want to develop a search functionality in my php website. My requirement is as below.. I have a text field for entering the required key word.After enter my search keyword and hit the "search" button, it should list all the data with respect to the entered item. …

Member Avatar for OsaMasw
0
102
Member Avatar for eburlea

Hello. I have created a new Zend project, created a new model class to get some data from the database. If the environment is set to 'development', the data from the database are displayed properly in the browser, but after setting the environment to 'production', the following error appears: **An …

Member Avatar for eburlea
0
642

The End.