Tagged Questions
PHP is an open-source server-side scripting language widely used in web development. Use this tag for questions about PHP classes, methods, functions, syntax and use.
0
votes
0answers
9 views
json formatting_adding a tag to it
here is the PHP file that im using to generate the JSON with:
<?
$databasehost = "wbw.com";
$databasename = "wtest";
$databaseusername ="w";
$databasepassword = "123";
$query = "SELECT * FROM ...
0
votes
0answers
4 views
Wordpress - Order by multiple meta values after date, only showing dates beyond today
I have some custom fields named 'date' and 'start_time' and would like to order the posts by my custom field of 'date' and then the 'start_time'. I've got the following query - if anyone can point out ...
1
vote
2answers
23 views
Retain textbox value
My Code:
<html>
<head>
<title>A BASIC HTML FORM</title>
<?PHP
if (isset($_POST['Submit1'])) {
$username = $_POST['username'];
}
?>
</head>
<body>
<Form ...
0
votes
0answers
6 views
How to input data in d3.js AreaChart And what need to code to achieve one chart and individual tootip info
I am trying to implement D3.js charts and using nvd3.js examples for it, I want to show two data set in one area(Means Want to Draw Chart for Sum of Facebook and Twitter positive sentiments with ...
0
votes
0answers
14 views
Call to a member function getElementsByTagName() on a non-object PHP RSS Error
Below is the code for PHP RSS reader
$xml = "http://www.huffingtonpost.com/feeds/verticals/technology/index.xml";
$xmlDoc = new DOMDocument();
$xmlDoc->load($xml);
//get elements from ...
-1
votes
1answer
28 views
How do I make my form work. I designed it using bootstrap. I don't know php.
I designed a contact form using html bootstrap, but I don't know how to make it work. I have the following code. I saw few tutorials online that used php to get the contact form work, but I don't have ...
0
votes
1answer
12 views
htaccess redirection in codeigniter
I have the following code in my .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /annsenglishmediumschool
RewriteCond %{HTTP_HOST} shops.annsenglishmediumschool.com
...
0
votes
5answers
37 views
php mysql username variable contains two values
I am wondering if we could have one variable equals two string values? I made a login form which is not required username, only requires password. if the password matches, then it displays the the ...
1
vote
1answer
14 views
Best way to call Rest API presented on the same server
I have a JSON based REST API implemented using PHP that will be called from my mobile app. I have a website deployed on the same server where the REST API existed.
What is the best way to use the ...
0
votes
0answers
5 views
Saving Shipping Method programatically in Magento
I am trying to save Free Shipping method with the order save by the following way:
$checkout = Mage::getSingleton('checkout/type_onepage');
$checkout->initCheckout();
...
0
votes
1answer
39 views
How to create own language using php
Hello everyone I am wondering if its posible to create own language tags for CMS using php or perl for Content management system.
Like for examples
{% title %},
{% description %},
{% menu %}
so ...
0
votes
3answers
26 views
PHP Infinite Loop “While” with Class
I made my scripts without class. (framework). Now I have changed my mind & I wanna make my scripts with classes. I like it. But there I have a problem.. Infinite Loop While. I didn't take this ...
1
vote
1answer
33 views
Regular expression to replace words in web pages
I was looking for a regular expression (php) to find/replace some words in a web page. But, it cant replace words between all html tags, only between: italic <i>, bold <b> and plain text.
...
0
votes
0answers
19 views
how to add different qtip in foreach loop?
I've been pulling my hair for hours about this, I've got my qtip dynamically generated inside a foreach loop. When I hover over my second or third image, the qtip still appears under the first image ...
0
votes
4answers
25 views
How to filter and recognise hash strings in PHP?
At the beginning of every php script, I loop through the possible POST and GET inputs, filter them properly, so later when I need an input, I can use my custom, safe, filtered variable, (which is an ...