39,326 Topics
| |
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 issue... janrain is a application that allows for other websites to login using facebook/myspace/yahoo and various other providers. When I put it on my phpox website, it goes thru the process but when it comes back to my website, it sometimes says authenticaion canceled. It has never let a … | |
I have tested out my procedure on my home machine. It woks pretty well I know there is output from the sql. Now I want to try it out on the host. It gives no output. Here is my php code $bob="call seeker($profound)"; if (mysqli_multi_query($conn,$bob)) { echo "<hr>"; echo "<table><th>Section</th><th>Author</th><th>Title</th>"; … | |
Hi Good evening all I am trying to capture the below multi dimensional array using either POST or GET. the data is passed from a form and is displayed in the array format using print_r(GET); The packagecount = 2 indicates the mumber of packages and also corresponds to 1 and … | |
Hi Guys wanna ask some assistance/ help I'm making something like notification with jquery and php and its working fine now the only problem that i encounter is on the notification its only show one data repeatedly its not showing the other data that supposed to be showed Here's my … | |
<?php //global $wpdb; /* Plugin Name:new plugin Description: A simple hello world wordpress plugin Version: 1.0 Author: arti shrivas Author URI: http://yourdomain.com License: GPL */ /* This calls hello_world() function when wordpress initializes.*/ //Note that the hello_world doesnt have brackets. add_action('init','new_plugin'); function new_plugin() { //echo "Hello World"; global $wpdb; $table_name … | |
Hi Guys I'm trying to create a page which uses session data to find a user in a database and then sends the events that this user has signed up to. I'm a bit of a newbie and have got very confused with where I am at. I am using … | |
<td width="186" align="right"><label for="collegetxt"></label> <select name="collegecategory" dir="rtl" id="collegecategory" class="title"> <option value="-1">Choose college</option> <?php $rs=$db->GetAllCollegCategory(); while(list($name)=mysql_fetch_array($rs)){ echo "<option ".($collegSearch==$name?" selected=selected ":"")." value='$name'>$name</option>"; } ?> </select> </td> </tr> <tr> <td> <strong>Teacher Number:</strong></td> <td width="217" align="right"><label for="Teachesearch"></label> <label for="TeacherNo"></label> <input type="text" name="TeacherNo" id="TeacherNo" class="title" checked="checked"/></td> <input type="submit" name="evlBtn1" id="evlBtn1" value="Evaluate" style="width:119px;height:39px;font-size:16px;" /> Hi, … | |
Hi guys. Can you tell me what do you think of No Glue project? The aim is to create a set of loose components in PHP that can be used individually or combined to make web applications. Whoever likes the idea can join the project too. [Click Here](https://bitbucket.org/npavlicevic/no-glue) No Glue … | |
Hello Friends, Am actually trying to get a Foreign key which is a Primary key in Diagnosis table Controller: <?php class AppTreatment extends CI_Controller { function AppTreatment() { parent::__construct(); $this->view_data['base_url'] = base_url(); $this->load->model('Apptreatment_model'); $this->load->model('Patient_model'); if(!$this->session->userdata('is_logged_in') ){ $this->session->set_flashdata('login_error', TRUE); redirect(base_url() . 'index.php/homepage'); } } function index() { $data['patient']=$this->Patient_model->getAllpatients(); $data['AppTreatment']=$this->Apptreatment_model->findAll(); foreach($data['AppTreatment'] as … | |
I have some IP list and 10 links stored in mysql. How to visit all links automatically in browser with assigning IP from database? After 10 links visited, how to change IP again i.e. (1 IP for 10 links) I want to use javascript to redirect to new page after … |
The End.