Hello,
Could someone guide me how to create a withdraw fund page using PayPal...
I want to create one PHP page (interface) contains a button "Withdraw" and 2 textboxes, one for my customer paypal e-mail and the other to put the amount of money they want to withdraw. When they click the "Withdraw" button, without any redirect to the Pay...
I am loading in the following navbar html from a required PHP file:
<ul id="navlist">
<li id="active"><a href="#" id="current">Home</a></li>
<li><a href="about.php">About</a></li>
<li><a href="news.php">News</a></li>
<li><a href="applying.php">Applying</a></li>
<li><a href="current.php">Curren...
Hello, I'm havin trouble storing an array of data. Below is the code use in the web application to check to see if the data is there, and if it's there serve it, else, cache it then serve it. I am using MySQLi
$id = $db->real_escape_string($_GET['id']);
$key = 'content_' . $app;
$data = apc_fetch($key);
if (!is_array($data)) {
$r...
Hello.
As almost every programmer, I'm writing my own PHP framework for educational purposes. And now I'm looking at the problem with parsing URLs for MVC routing.
Framework will use friendly URLs everywhere. But the question is how to parse them in front controller. For example the link /foo/bar/aaa/bbb may mean "Call the controller's...
hey, I'm trying to insert an embed code in my database, and it's giving me this error
Error adding new data: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'movie.php?id=6001',
type = 'stream',
embed = '<object width=\"500\" ...
Hello there,
The problem is, what I want to develop an application (probably PHP?), capable of making quick connection to a SSL secured server and send/get data from it. My aim is to make it send the query and read the result as quick as possible. I am trying various solutions and benchmarking them all. I have tried fsockopen() and CURL,...
Can I automatically resize an embed code efficiently using PHP (maybe with regex?)
Here's an example of the embed code:
<object width="500" height="350">
<param name="movie" value="http://www.megavideo.com/v/"></param>
<param name="allowFullScreen" value="true"></param>
<embed src="http://www.megavideo.com/v/"
type...
We have some bbcode and I'm trying to setup the ability for a certain code to call a function that loads some images from our photo gallery. So if someone puts in an album number, it pulls 5 of the most recent photos out. When we call this function regularly (on another page, just as a regular php statement), it works as expected. But wh...
I am working on a Facebook app that will allows users to vote on their favorite pictures, based on their friend's profiles pictures. I know how to display the images, just not how to get the list of the current user's friend's IDs. My application is written in PHP. This is the last thing I need to complete the app. Any help would be grea...
Hello,
I have to check for uploaded articles by the user if they not plagiarized (copy of existent article in other websites).
I planning to take title of new uploaded article to my website and search in google to find out if exist already same article.
the problem:
How can i decide with google search results for article title, if u...
I need to implement a system to limit the number of users that can concurrently use my app. I am thinking the best way to go is to count the number of sessions currently active and then limit based on that.
How can I count the number of sessions currently active. I am using memcached to store my sessions if that makes a difference
...
Trying to figure this out and am just getting lost. What I am trying to do...
I have a program that takes a tarot card and gives the user the meaning. So the code passes the card selected as "One of Cups" but the image files names are formatted as "1ofCup" - so I am trying to get the program to check for the Number and card suite and...
Hi,
I've got a fairly extensive data entry task to perform in a PHP application. The application allows you to enter one data set at a time (first name, last name, email), click 'Go', and then uses AJAX to submit the data and blanks the form, putting your cursor back in the first input. I have a data set of 1,300 that needs to be entere...
Hi,
How can I implement the part below that I do not want to display on the last result?
<?php foreach ($products->result() as $row): ?>
<h3><?= $row->header; ?></h3>
<p><?= $row->teaser; ?> </p>
<a href="">Read More</a>
<!-- DONT DISPLAY THIS LAST LINE IF ITS THE LAST RECORD -->
<div class="divider"></div>
...
This may be a tough one for you all, if it is even possible in mysql.
I have a table that stores id, catid, product_name
What i would like to do is select 3 records for each catid then display the result with each 3 sets of records first.
So if i have a catid of 4, 7 then I would like to display 3 results for (4) then 3 results for (7). ...
Hello,
my english is poor.
I have problem with swfupload session. I set session_id in form variable, then it goes with post. Ok it's working but when i get this post and set session by session_id($_POST["session_id"]) I have good session_id, beacouse i checked this, but i dont't have variables in $_SESSION table. In my home computer this...
I want to create a simple search engine for learning purpose.
I want to know how to index a simple blog site.
A blog site has many pages and in every page there is a blogpost.
But in every page there are other stuff in common as well ( header, footer, category block and other stuff ).
In your opinion, How can I index this blog ?
The ...
I'm trying to figure out why this works:
$joe = "hey joe";
$something = "joe";
print_r(${$something});
But this doesn't:
$joe["where_you_going"] = "hey joe";
$something = "joe[where_you_going]";
print_r(${$something});
Why is this? Is there a way to do what I attempted in the second example?
...
Hi
does anyone know a php templating system that is very simple, something like almost as simple as str_replace("{variable}", $variable); ?
I need this for a series of textareas in the administration panel, where the site admin should change templates for various elements of the website (not complex stuff like pages etc, just blocks of...
Guys, I've been using Notepad++ for some time now and I'm kinda sick of the UI it has. I don't know, it's just too... old or what should I say. I need something that is more simple in the UI but still has good functionality, I also need something that is really an eye-candy.
Do you have anything to recommend?
...