39,393 Topics
![]() | |
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 … | |
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 … | |
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: … | |
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 … | |
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: … | |
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] | |
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> … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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"] == … | |
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... | |
hey guys how are you, I want to create a function ( or more than function ) to show most uploaded users in the site, so I've created simpple code to test this and its worked <?php $sql = "SELECT username FROM users"; $run = mysql_query($sql); if (mysql_num_rows($run) > 0 … | |
Hello, For me it is weird this thing: Let say there is a part of xml: <result comments="LAST :T3 DIST : 3/4" favouritenews="WINNER & T3" id="3131846" message="OFF" nonrunners="0" ran="6" settlingstatus="D" statuscode="O"> <position fav="jf" id="8669343" name="Elizas Impact" num="1" photo="N" position="1" runnernumber="4" selectionref="26973474" sp="11/4" winnersTime="00:00:28.920"/> <position id="8669348" name="Amazing Madam" num="2" photo="N" position="2" … |
The End.