Hi, I am running a plugin called Category Posts Widget for WordPress: http://wordpress.org/extend/plugins/category-posts/
It uses a while loop to display the names of all posts in a certain category. I want to get it so that there is a different class attached to the li tag on every second output.
Here is the block of code for the plug...
I am going to use a small SQLite database to store some data that my application will use.
I cant however get the syntax for inserting data into the DB using PHP to correctly work, below is the code that i am trying to run:
<?php
$day = $_POST["form_Day"];
$hour = $_POST["form_Hour"];
$minute = $_POST["form_Minute"];
$t...
Is server side pagination where the pagination script calculates the number of entries in a database then make the links?
All I know is server side is faster and better if there is alot of data and client side is using javascript?
What makes a pagination script server or client side?
Also, right now I am planning to use this paginatio...
I want to display total number of user who only have posts at Wordpress. I can get all users by this query
<?php $user_count = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->users;"); echo $user_count ?>
But for the user count only with posts, i think i might need to join another table, does anyone have snippets ? Thanks.
...
I have a script that allows users to 'save as' a pdf, this is the script -
<?php
header("Content-Type: application/octet-stream");
$file = $_GET["file"] .".pdf";
header("Content-Disposition: attachment; filename=" . urlencode($file));
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream"...
I turned this case into a simple PHP page that submits to itself. My issue is that I am submitting track meet results and one of the girl's names is Echo...a lovely name.
The problem text I'm submitting is:
Pole vault - Rachel Simons, Tow, 8-6; Echo Wilson, Cit, 8-0; Molly Randall, Tow, 7-0;
So you see a semicolon followed by white sp...
I have daemon script written in Perl that checks a database tables for rows, pulls them in one by one, sends the contents via HTTP post to another service, then logs the result and repeats (only a single child). When there are rows present, the first one is posted and logged immediately, but every subsequent one is delayed for around 20 ...
I am looking for a copy php_apc.dll that was built with VC8. I found one built with VC9, but my PHP distro I got with the ZendServer CE says it needs to be built with VC8.
Any help would be greatly appreciated. Thanks,
Dave
...
I'm not sure if there is an explanation on SO for beginners, but if so, could you provide the links.
I am interested in creating a "recent viewed" function that shows what links they clicked on before.
I'm not sure if this is the 'correct' way to do it, but this is what I have so far...
user clicks on a link(say ad.php?posting_id=12)...
I have an existing app written in PHP (using Kohana framework) and I want to do long polling. From some things I read it seems that doing long polling with PHP is not advisable and using something like nodejs is a better choice. My question is what's the best way to integrate nodejs (or some other well suited tool for long polling) with ...
I've been working at this for a few hours, but the poor documentation is of no help.
All I want to do is grab the data that exists at https://graph.facebook.com/cocacola/ as an example, and I cant even do that.
I'm using the latest php API from facebook.
This is my code, which returns nothing:
<?php
require '../src/facebook.php';
/...
Hi
I am using an image by default But i need the image only when i am doing my mouse over option
This is the div In which Ihave the image
<div style="float:left; height:90px; width:90px; background-color:#CCCC99"
style="display:block" onmouseover="return mouseOver();" >
<img src=<?=base_url()?>images/m11on.gif name=b1 width=...
I once saw an article about how to use a specific type of numbering system to manage roles. A user would be assigned a specific role number and depending on a calculation, the number could stand for multiple roles.
Can anybody share this technique with me or share a link? Thanks!
...
I have written some tags in PHP as
<a href="<?php bloginfo('url'); ?>/?cat=<?php $cate_id ?>"><?php echo $resid->post_content ?></a>
or even this one
echo "<li><a href = '?cat=$cate_id'>".$resid->post_content."</a></li>";?>
Does this in any case affect the performance on the live server. I am no getting the image to appear on the ...
Hi there everyone im new to PHP and Joomla and I have developed a component in Joomla but my code is giving me errors. I have tried to solve the problem but I’am unable to solve it. So can anyone suggest me what is the problem with my code? Thanks in advance.
Here are my two files:
1st view.html.php
defined('_JEXEC') or die('=;)');
j...
hi,
i cant get the value of session variable on paypal transaction processing.when transation complete my table is updated, for updation i use a session variable,at that time i can't get the value of the session variable.
is sessions not get in paypal? please help me to find a solution......
...
Hello,
Is there a way to read a file in PHP5 from line X to line Y into a string, without reading the entire file.
I would like to return huge files (10,000+ lines) using ajax requests. Each request will provide the client with additional lines. And due to the fact that the file can reach large sizes, I would like to avoid reading it w...
Hello,
I'm still quite a mySQL newbie, so I would like to do this right to avoid future mishaps.
What is the right way to detect when do I need to UPDATE an entry in a table or INSERT a new one?
Thank you.
...
How can I make a 404 php page with the 404'd file name in the link, example would be:
http://website.com/WrongPageName.html
would go to
http://website.com/404.php?page=WrongPageName.html
...
Hi
I am getting the image path from database in this foreach
foreach($image as $row){
$value = $row['dPath'];
$imgpath =base_url()."images/".$value;//this is not taken
$imgpath = base_url()."images/con_icon.jpg";//this$imgpath is taken
echo $value;
when i give $imgpath as $imgpath = base_url()."images/con_icon.jpg"; it ...