hi,
I am using flex builder 3 to insert into mysql database using php and everything is working perfectly in my localhost, the problem is when I deploy the project in the web server and run it, it connect to the database but i can't insert data ( it shows nothing when i insert data )
another stupid thing is in another piece of code for r...
Our current ORM solution uses Data Mappers to represent tables / views in the database which then return a Collection object that can be used to iterate through the retrieved records as Model objects. Between the Data Mapper and Model layers is a Repository layer that handles domain requests to the data mappers and returns the correspond...
I am writing a Facebook app in PHP/FBJS. I have some code where I attach an addEventListener() to two buttons. When I run the app, the first button I click on fires the addEventListener() and the event handler is invoked as expected. But if I click on the second button or click on the same button again, the event handler is not invoked. ...
When using the admin generator to upload a video, my form is acting quite strangely.
If the file is too large, i.e. it is larger than the PHP upload limit, the form displays the first error in the edit.yml file, or no error at all.
My admin generator defines the video in the following way
video_filename:
help: Videos must ...
I am currently creating a table with php and data from a mysql db...
So I need to use Jquery in the table....
How can I do this? Im guessing I have to import the library somehow?
Thanks
...
Hello
I'm trying to build a safe user authentication system.
The code is from http://net.tutsplus.com/tutorials/php/simple-techniques-to-lock-down-your-website/
But Im trying to change from md5 to sha-256, But It wont login.
I just changed from
$auth_pass = md5( $row['salt'] . $password . $stat_salt );
to
$auth_pass = hash('sha25...
Hi
i have table "User" and a Controller "users_controller.php"
and i have another table called "cateogry", need to retrieve values from this table in the
"listall" action(site.com/users/listall).
how can i get values from another table.
...
I'm looking for a way to use the MySQL timestamp column type in Doctrine 1.0. I was able to get it working by modifying Doctrine_DataDict_Mysql to return TIMESTAMP instead of DATETIME when the specified type is timestamp, but I'm fairly certain that it's not the right way, and it will probably break at some point.
Doctrine 2.0 seems to ...
I want to be able to select the column from users and dusers. example:
select u.user, d.user FROM users u JOIN dusers .... etc.
...like so:
echo $row['u.user']
echo $row['d.user']
I tried this, but no go. How do I specify what table to retrieve the user from?
...
I'm new to php. I've been looking at php login tutorials but they all seem relatively insecure. I would prefer to use a php authentication api or framework. Does anyone know what I can use to implement robust login functionality into my site?
...
Hello,
I would like to get the list of XBOX friends for a certain gamercard (http://live.xbox.com/en-US/profile/Friends.aspx) and display it in a widget for my site.
I know that there are alot of iPhone apps that do just that, but I would like to do it on the web, without an iPhone.
Does anyone know of a PHP class to either login via ...
Hi, iam not sure if iam doing it the right way. My Goal is to display in my Layout an Login or an Navigation at the header section.
My implementation looks like this (without logic):
2 Layout scripts:
login.phtml
navigation.phtml
An FrontController Plugin:
class Plugin_Header extends Zend_Controller_Plugin_Abstract {
/**...
So I'm trying to make a mysql database class, and I want to keep my db selection in a seperate method from the constructor. For some reason it the setDb() function doesn't want to work.
class mysql
{
public function __construct($server,$user,$pass)
{
if(!$this->mysql_connection = mysql_connect($server,$user,$pass))
print 'Could n...
I would like to search for keywords in a text, I have around 6000 keywords and I need to know what's the best way to do it in PHP.
What's the best way to implement a hashtable in php?
...
By default view files need to end in "Success". So my index view file would be named "indexSuccess.php". Is there a way to globally change this suffix? I'd like to set it to blank so that my view file could simply be named "index.php"
...
I've got
Parse error: syntax error, unexpected T_STRING
and I think it might be somewhere in this line (it's postdata that i'm using with curl)
Is this line causing this error? How do i fix it?
...
If I do
set_time_limit(50) or ini_set('max_execution_time',50)
when I echo ini_get('max_execution_time') on my localhost i get 50, when i do on another server it echoes the default 30 and completely ignores my request.
why is this?
...
I use DBG because I heard you can debug from browser but it doesn't seem to be well supported by IDE's and is pain in the ass to setup.
Do you guys use xdebug or dbg? Any other suggestions are very very welcome!
...
Hi, I'm new to feeds.
I want to create feeds, so first, should I use rss 1, 2 or atom, whatever is best/standard?
Second, do you know any easy to understand tutorials or code-examples?
Any other good to know for feeds is more than welcome.
I'm using php and mysql.
Thanks in advance.
/Johan
...
I was wondering if you can specify the order in which table definitions and data fixtures are loaded using the CLI. My problem is that I have two tables, each having a foreign key constraint pointing to the other, so one of the constraints needs to be added after a record has been added. Or maybe there's a better way of doing this...I'm ...