Tagged Questions
0
votes
0answers
9 views
Using gettext and database driven translations simultaneously
I am currently developing a website in PHP and I decided to go with gettext to manage the translations. I set up a nice Pootle server so that I can easily manage the translations and a bash script ...
0
votes
0answers
7 views
Doctrine OneToMany Relation
I created 2 entities: Users and Product.
The relation between them is Bidirectional OneToMany.
-If use $entityManager->find("Users",1), it returns user with all his products, which is correct.
-But ...
0
votes
0answers
41 views
PHP comments with replies. How to loop
I am building an application that let's users add their own contribution to a stream of posts, and these are ordered ascending by contribution ID (i.e. comments display one after the other in the ...
0
votes
1answer
18 views
Form will not submit to Microsoft SQL database using PHP PDO 5.4
I have a HTML form I'm trying to get to connect to Microsoft SQL Server 2012. I had the form working and submitting the data, but it was vulnerable to SQL injections so I rewrote the PHP with some ...
-1
votes
1answer
34 views
Implementing a basic Twitter/Facebook @mention system
I'm trying to create a basic @mention system for a microblogging application that I am creating (it's a project for me to learn PDO).
I read a few other similar questions and threads,but I still ...
-2
votes
1answer
25 views
XML vs Database for storing data that will be pulled by other sites
I'm developing a sort of content management system that allows users to log on, type up posts, and then by linking their desired url and copy/paste some code that my site generates, the posts will ...
1
vote
1answer
40 views
Call to a member function fire_query() on a non-object
I keep getting the error Call to a member function fire_query() on a non-object, it's really frustrating, I just don't know what is wrong.
my class:
require_once("MySQLDatabase.class.php");
...
1
vote
1answer
486 views
Change php mysql to php mssql
Hey Everyone hope all well. I have this code that works perfectly on a mysql database
<?php
// visit http://php.net/pdo for more details
// start error handling
try
{
// connect
$pdo = new ...
0
votes
2answers
30 views
Is this a good PHP OOP structure for a Database Implementation?
I have a series of Classes:
abstract class Database extends PDO {}
abstract class OracleDatabase extends Database {}
abstract class MySQLDatabase extends Database {}
abstract class MSSQLDatabase ...
0
votes
2answers
42 views
Registration script.php does not work
I have a registration script that doesn't work. It used to work but then suddenly it stopped working. I dont know what I've done or what happend. I have tried for like an hour now to find out where ...
0
votes
0answers
22 views
PHP & RSS Query from DB
I have this query;
<?php
include '../thisfile.php';
include '../scripts/thisscript.php';
$this = $_GET ['this'] ;
$query = "SELECT this FROM tablename WHERE this='$this' LIMIT 1";
$feedlist = new ...
1
vote
2answers
66 views
A basic form programm PHP
I have a little problem with my first programm in PHP and i'm asking for your help
my POST is not working
this is the html part
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" ...
0
votes
0answers
18 views
Optimal dataset merge MySQL & MSSQL
Note: I'm using JSON only to demonstrate my points.
I have product inventory data in an MSSQL database on server A:
"inventory":[
{"foo":[{"color":"Blue","price":"49.95","qty":10}]},
...
0
votes
1answer
59 views
Forbid apostrophes when keyed into html form
I have a form that works flawlessly with microsoft sql server 2012, only promblem is when a user enters an apostrophe in a textarea and submits the form, I get this error.
Array ( [0] => Array ( ...
1
vote
6answers
54 views
Check if user is logged in with session instead of database query
I'm wondering if it would be better to check if a user is logged into a website with his session instead of querying my database.
Isn't it a little bit too much to query the database on every ...