Can I display html tags like links and span tags inside the description in RSS feed code?
Can I display html tags like links and span tags inside the description in RSS feed code using PHP ...
Can I display html tags like links and span tags inside the description in RSS feed code using PHP ...
ok, the title did not make much sense but this is what i am planning to do. I have designed a template for my website, with head body and div for specific stuff and everything. The website consists of header file, footer file, right-side column, header dropdown menu and a main body which would be present beneath the header dropdown menu...
I've got a nice little twitter widget on my website that was created using php. I'd like to be able to make sure that when a link appears it is clickable or when I @reply someone it links to their profile. Any help is greatly appreciated. <?php function getTwitterStatus($userid){ $url = "http://twitter.com/statuses/user_timeline/$useri...
I have uploaded a file. Now I want to disable the downloading. I used the doc.changeSettings function. I have the reference of parameters here. I want to know does the parameter passing order is necessary, the order as given by the above url. My code is as follows: $doc_ids = array("xxxxxxxxxx"); $title = "LC6"; $description = "Updat...
Heres my code <?php session_start(); include('config.php'); if(isset($_GET['search_word'])) { // echo $_GET['search_word'] . '<br />'; // debugging $search_word = $_GET['search_word']; $search_word = mysql_escape_string($search_word); $search_word_fix = str_replace(" ","%",$search_word); $query = "SELECT * FROM art...
Can anybody tell me why is the record not inserted? This is my one page :- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body> <form action="Adduser.php" method="post"> ...
How I can get random words without repeating in PHP? Help ...
// create a string $string = '+7'; // try to match the beginning of the string if(preg_match("{-15 to +12}", $string)) { // if it matches we echo this line return {strip all the + sign} echo 'its a valid gmt time'; } else { echo 'not valid gmt time'; } Question: please see the first {} on preg_match, ...
I am trying to create a custom MySQL for use with the Expression Engine CMS. The purpose of the query is to display events that are happening today or in the future. The problem is that the EE field type that allows you to put in the date and converts it into a unix timestamp. If I pick the 26th July it puts in the date value "25th July...
Hi everybody, I´m fetching my database for images to create a gallery. Every row appear inside a <li>. My question is, is it possible, that the first <li> have a class (for example, "visible"), and all the other <li> have a class named "hidden". So the first $row would have a different class than the following... Hope I made myself clear...
i was wondering how would I convert datetime using PHP to work with RSS feeds pubDate? Why is my browser 3 hours off when displaying the time? Is there a way to correct this? ...
Hello, How do i pass id to delete record in this code? <form action="index.php"> <?php mysql_connect('localhost', 'root', ''); mysql_select_db('user'); $query = mysql_query("Select * from tbluser"); echo "<center>"; echo '<table style="border:solid 2px black;...
Assume that there is a PHP variable: $variable = 'username'; cookie value = 'username' Which one is better to access? get_cookie() or just use $variable? I have a lot of code using get_cookie('cookie_name') (a CodeIgniter function) instead of using variables. Will it increase performance if I change it to access $variable instead of...
When ever I pass a value from a form using submit to a php file using load, $.get or post and try to receive data or load it in general as shown below, I just get ruturned a null or undefined value. Anyone know what im doing wrong ? iNDEX.HTML ` <script type = "text/javascript"> $(document).ready(function(){ $("#NewOrgForm...
hi, how can I print the content of a php variable on screen if the code is inside a function that is called without refreshing the page, but just to store same values in the database ? thanks ...
I would like to put a link back to my site on other "approved" domains. When they click on the link it goes to a page that checks the referrer ($_SERVER['HTTP_REFERRER']) to make sure they came from a domain that is approved to have my link. This can be spoofed so how can I make sure the clicks are actually coming from the approved domai...
I am trying to retrieve two counts from two separate tables into one SQL query to use with PHP. This is the current SQl query: SELECT COUNT(entryid) AS total FROM rh_entries UNION SELECT COUNT(pentryid) AS attended FROM rh_playerentries WHERE playerid=79 This is the PHP I am using to utilize the data: $result = mysql_query($query); $...
Suppose I have the following: $string = "(a) (b) (c)"; How would I explode it to get the contents inside the parenthesis. If the string's contents were separated by just one symbol instead of 2 I would have used: $string = "a-b-c"; explode("-", $string); But how to do this when 2 delimiters are used to encapsulate the items to be e...
I need to distribute a PHP site and want to control the installation, to do this, I extract a unique identifier based on the hardware of the machine where it is installed and send it to a Web site for validation. I want to find a way to extract the unique identifier without using the Win32 API PECL extension. How I can do this? ...
Hi, I am developing the user management portion of a website that will host a webcast. The goal is to prrevent the same user nam (email address) from being used concurrently. That is, we don't want two individuals using one login to view the event. I've already setup a table that holds the user registration data with regID as prima...