As the title says I am looking for a way to display authors in a way so I can use pagination for the results and split them over several pages. Much like a normal post query where I can use posts_per_page=5&paged=$paged
...
I need to search some information through mysql query,so can I write and or together?If not then what is the procedure?In my query it will show the either any one of the field or more than one field,so how can i write the query?rit now i am writing like:-
$query="select * from fsb_profile
where profile_name = '".$_REQUEST['name...
Guys,
I need to store the XML that i get it from Google Analytics. Its format is XML file. I need to create the script ( PHP ) that will read XML file from Google Analytics and store in my server with user defined name. I tried like that
<?php
$dom = new DOMDocument();
$dom->load('https://www.google.com/analytics/reporting/export?fmt=1...
Hi guys, I am trying to get a users ID from a database within a class, but I have very little to no experience with classes, how could I go about getting the uid from the DB and then return the uid?
so basically something like this,
class hello {
public function getUid(){
//connect to the db
//get all of the users info
...
My question is on how to preserve data during the redirect when using the PRG Pattern on my forms. Specifically, I'm wanting to use this in an ecommerce application. I have three options of storing the data over the redirect, and I have concerns with each. I'm hoping you guys may be able to help me work through this issue:
1.) Store...
Hi,
I just completed a basic PHP course which was funded by my University, however I feel like I need to really put PHP into practice to get familiar with it and become more confident in writing it myself. As I don't currently have a job which involves PHP, I figure I may as well set myself something to do to get me more experienced.
D...
Sorry folks forgotten this one, I need to read the first "batch" of comment in a php file example would be:
<?php
/** This is some basic file info **/
?>
<?php This is the "file" proper" ?>
I need to read the first comment inside another file but I have totally forgotten how to get the /** This is some basic file info **/ as a string ...
<?php
$server = $_SERVER["SERVER_NAME"];
$pathpath = realpath("../../files/uploaded_file.jpg");
echo "You can link to the file using the following link... $server$pathpath";
?>
Unfortunately this produces the following...
www.example.com/home/fhlinux123/g/example.com/user/htdocs/ninja/base/files/1.doc
Whereas what I am a...
I have a that has a list of checkboxes and user can click any number then click submit. The list of checkboxes is generated based on the results of a mySQL query -
echo("<form id=\"target\" action = \"#\">");
echo("<ul>");
while($row = mysql_fetch_array($result) {
$the_value = $row['result_value'];
$the_label = $row['result_label'...
I wanna start with first program in PHP. I have got installed xampp and had a look at sample codes. How to start writing my own code to build web pages. Where to start with. Do i have to write a text file as code and open it in explorer like we did it in HTML.Thanks in advance.
...
hello
Please have a look
<div class="item">
<div class="section">
<a href="/test.php?id=1" class="clickme">Click Item 1 </a>
</div>
</div>
<div class="item">
<div class="section">
<a href="/test.php?id=2" class="clickme">Click Item 2 </a>
</div>
</div>
<div class="item">
<div class="section">
...
How can I go about creating a quadtree in PHP, is it even possible?
I would like a "grid like" layout.
So each "node" has 4 "exits" - north, south, east and west.
Does anyone have some sample PHP code of a Quadtree because I couldn't find any documentation specifically for PHP :(
I'll be your best friend... (possibly some Rep in th...
Does anyone know a free PHP hosting service with Fopen enable ???
(if no ads that would be great)
Thanks
...
OK, it sounds simple, it looks simple and it weighs simple. But it's not.
I can't for the life of me get this working.
Let's say I have this URL structure:
http://www.test.com/%action%[/%param1%/%paramX%]
I need to redirect (actually I want a REWRITE) to:
http://www.test.com/index.php?option=com_%action%&param=[%param1%,%p...
Hello
I have table in postgressql with primare key (pk_user). If i insert wrong parametrs.
postgres call exception:( ERROR: duplicate key value violates unique constraint "pk_user" )
this is ok, but i like catch this error and transform it to user interface ( this username is used)
my php script:
$sql="INSERT INTO user (....) VALUES...
Hi, i need get a old email and compare with a new email using customer_save_before event
Test to listen customer_save_before event, getData('email') return a new email and getOrigData('email') not work
Test me too with customer_save_after and not work, getOrigData('email ') return 1 and getData('email') return a new email.
is there an...
I'm trying to overwrite data in a MySQL table called "login." I want to replace a field called "website" with the variable $cleanURL. The code below is what I have tried to use, but the field just ends up blank / empty after I try to use it.
Any idea why this is happening?
mysql_query("Update login
SET website = $c...
I am trying to use the jQuery plugin Img Notes (here), and I'm a little confused as to how to add notes. I don't know much about PHP and there is very little documentation on the plugin site itself. I want to be able to add notes to an image and have them show up on the image after submitting the form, preferably without going to a diffe...
Is it possible to use CodeIgniter framework in commercial project and distribute it ?
...
I've found that there are two different properties of the order in Magento API available.
order_id and order_increment_id. For sample order they can be something like order_increment_id=100000080 and order_id=81.
The Question Is: What is the difference between them? How they are considered to be used? In the web store UI I see that my ...