39,310 Topics

Member Avatar for
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
766
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
486
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
248
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
143
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
374
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
777
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
244
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
641
Member Avatar for bops

Howdy, I'm a relatively experienced PHP developer looking to start building websites in Wordpress. I have previously built my own simple theme consisting of an index page that contains a bunch of posts and a template that is used for single posts with comments etc. I wouldn't say I'm very …

Member Avatar for bops
0
283
Member Avatar for amehra2013

Hi Friends , I am new to PHP . I have designed a page and using MySQL at backend . On my page , I have following logic . 1. There are 4 checkboxes and a search button . 2. On the basis of selection of checkboxes when user clicks …

Member Avatar for amehra2013
0
335
Member Avatar for theonlylos

On my client’s test website at http://cjcdigital.net/selfImprovement/blog/goal/test/ (that’s a direct link to the pod) I’m having an issue where despite installing Pods and configuring it as per this tutorial http://www.openscriptsolution.com/cms/wordpress/pods-2-0-how-to-display-pods-item-using-pods-page-and-pods-template/ I’m having an issue where nothing will display on the pods page, including various echo statements I tossed in my …

Member Avatar for veedeoo
0
364
Member Avatar for dhani09

I'm retrieving products from my database and listing them in a while loop. Like this <?php while($row = mysql_fetch_row($result)){ echo '<div class="product_info">'; echo '<div class="category_product_title"><a href="category-page.php">Product</a>'; echo '</div>'; echo '<div class="category_product_number">#'.$row[0].'('.$row[1].')'.'</div>';//prints id and name echo '<div class="category_product_description">'.$row[2].'</div>';//prints description echo '<div class="category_product_price">'.$row[4].'TL</div>';//prints price echo '<div class="category_details"><a href="productpage2.php">DETAILS</a></div>';//The link to list the …

Member Avatar for dhani09
0
159
Member Avatar for garyjohnson

Hello, I have a php script which detects if an image is vericle or horizontal. Then it resizes it to my certian specifications. An issue is I want the script to resize the image and then create a thumbnail image as well. The script works when resizing an image but …

Member Avatar for garyjohnson
0
135
Member Avatar for RigaConnectCom

This is working code $sql = "REPLACE INTO 2_1_journal (Number,RecordDay, RecordMonth) VALUES "; $insertQuery = array(); $insertData = array(); foreach ($_POST['row_id'] as $i => $row_id) { $insertQuery[] = '(?, ?, ?)'; $insertData[] = $row_id; $insertData[] = $_POST['date_day'][$i]; $insertData[] = $_POST['date_month'][$i]; } if (!empty($insertQuery)) { $sql .= implode(', ', $insertQuery); $stmt …

Member Avatar for RigaConnectCom
0
1K
Member Avatar for dhani09

I have some html code in my php script which i'm executing through echo. Suppose i want to access an image on the server which is saved in my uploads folder from within that echo, how do i do it? I tried this $image = $row[8] //fetching the image name …

Member Avatar for dhani09
0
8K
Member Avatar for simplypixie

As usual I am having a love hate relationship with jQuery and Ajax :) I have a PHP file that uploads and resizes and image and stores the data in the database, which on its own works fine. I am now trying to do this through a jquery modal/dialog box …

Member Avatar for simplypixie
0
330
Member Avatar for bfitzgerald

Hi Guys I'm working on a little log in syetms for my website, hwoever have hit a little snag. I'm using cookies to track which users are logged in. I'm trying to make some pages restricted to vistors that have logged in only, so I decided to use `if($_COOKIE["loggedIn"] == …

Member Avatar for bops
0
250
Member Avatar for mrvijayakumar

Hi all, Currently am developing a wordpress blog to download free resouces. I need a pure PHP script that allow useres to download files after liking my facebook page/follow my twitter page. Thanks in advance...

Member Avatar for mrvijayakumar
0
99

The End.