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
10 views
Why isn't my PHP POST request going through?
I'm trying to build a system that will give a user a random question, then send the user's answer and the correct answer to the next page via POST, without ever showing the user what the correct ...
-2
votes
1answer
26 views
Php string split, how can i do that?
$mystring = "@blablabla Kayit Ol ogrencino:1176160"
This is my string, placament of ogrencino:1176160 in string can change, but others will be stable.
Like
$mystring = "@blablabla ...
-1
votes
3answers
45 views
PHP simple equation
What's wrong with this? It's not working out
// define
$prv=0;
if(isset($_GET['prv'])) {
$prv = intval($_GET['prv']);
}
// security
if($prv != 0 OR $prv != 2) {
die("<p>Error</p>");
}
...
0
votes
0answers
3 views
flex configure php for hosting
I have FLEX php project and a database at phpmyadmin in wampserver.
these codes below;
web root :c:\wamp\www
root URL: http ://localhost
output folder: c:\wamp\www\PHPmyProject-debug
when I ...
1
vote
2answers
33 views
Ajax returning object instead of data
What is the correct way to handle Ajax success callback events using jquery?
In my code, when I run instead of displaying data, it alerts object:object. However, if I use say msg.box it returns the ...
0
votes
0answers
7 views
Prestashop block cart and cart controller
We have followed this guys tutorial on changing the prestashop add to cart animation
http://nemops.com/better-prestashop-add-to-cart/
However, now the problem we face is if someone adds a quantity ...
0
votes
0answers
6 views
Displaying Word document from Oracle blob (not saving it)
I'm reading a Microsoft Word document (.doc) from an Oracle database BLOB which generates the following code:
...
0
votes
2answers
22 views
HTML form $_POST not being retrieve and set into PDO QUERY
I decided to leave in all the code to make it less confusing to those who see this.
On line #57, the only form on this page, I'm trying to $_POST the id that equals the post_iD.
Everything uploads ...
0
votes
0answers
5 views
Woocommerce Assigning Multiple Quantities variations to a single product
I'm working on rewriting a cookie site (http://opescookies.com). In their order now tab, if you select a quantity for the box of cookies, it opens up a window with the ability to enter custom ...
0
votes
3answers
27 views
Matching an individual character against a list of characters
I would like to know how to see if an individual character that i have pulled out of a string matches any of a list of characters, i know i could do this through iteration but i would prefer not to. I ...
0
votes
0answers
10 views
AJAX call by anchor ID
I'm building a Codeigniter app that utilizes AJAX with jQuery. In one of my views, I have:
views/users/index.php
<?php echo anchor('users/edit', 'Edit Profile', array(
'class' => ...
0
votes
2answers
8 views
Trimming characters off a string
Given the following URL:
http://www.domain.com/reporting/category-breakdown.php?re=updated
I need to remove everything after the .php
It might be "?re=updated" or it could be something else. The ...
0
votes
1answer
11 views
.htaccess re-write rules for appache server, containing usernames as subdomains
I want .htaccess re-write rules for appache server, containing usernames as subdomains
For Example:
user1.xyz.com
to the following URL
user1.xyz.com/profile.php
If a straight request made by user ...
0
votes
2answers
10 views
CodeIgniter call protected method of another controller
I have two classes on my Codeigniter project: Users and Profiles
Users:
class Users extends CI_Controller
{
...
Profiles:
class Profiles extends CI_Controller
{
protected function ...
0
votes
1answer
17 views
Modify insert into to update
I want to modify my code so instead of just inserting a new row in the MySQL table, it can check to see if there is one with the same item number, and update it.
php code
<?php
...