i try to insert data to mysql with php code or phpmyadmin but the server waiting for a long and finally prints "not responding error".
i can add value to db with logging in mysql using ssh connection.
PHP Version 5.1.6
Mysql Client API version 5.0.77
i see error in the log
Version: '5.0.77' socket: '/var/lib/mysql/mysql.sock' port: ...
I want to allow my users to search the database for a row that was submitted on a certain day. The date is entered into the field in the database using the date() function which is great, but when i use the php strtotime function, of course the dates are not exactly the same.
Is there some clever mysql function that can help me with thi...
Hello!
I'm playing around with an install of HBase cluster, and am trying to access the data via the Stargate REST interface. Most of the read-only functions (i.e. listing tables, getting version, meta data, etc) are work nicely. However, I'm having trouble with actually inserting data into any tables I've created. Here's what I've g...
Using codeigniter to develop my latest project. With that said, what's the "best" way to deal with login sessions? Right now, I check the username/password against the DB. if it's a match, I set various session variables, one of them being the username. Throughout my site, I check to see if the user is logged in. I also read various blog...
I've got a job as .NET developer, when asked if i know PHP I lied about it. I need to learn PHP very fast. What book, course, video training would you recommend? Company is focusing on medium corporate sites.
...
Trying to improve my code's agility and loading time, I thought of doing this,
so that the functions would be required only if the class was instantiated.
class User
{
public function __construct()
{
require('all_user_fns.php');
}
}
Inside all_user_fns.php will reside all User class's functions.
Is that feasible (...
(Rhetorical Question)
I ran into a bizarre scenario today where I wanted PHP to update how the javascript behaved on-the-fly. It was irritating, here is what I tried...
/*
* ajax-php-javascript-function-loader.php
*
* this gets called by AJAX and defines or re-defines the
* definition of dynamicDoStuff()
*/
<script type="text/ja...
i have a upload file form and a iframe. form is submitted to a php script with target to iframe. i want to stop uploading file when user click on a stop uploading button.
how can i stop transfering data to iframe?
...
I need to get information from a php file and put the information in jquery and i also need to know if the information has changed
...
Hello,
I'm trying to build (right now just thinking/planning/drawing relations :] ) little modular system to build basic websites (mostly to simplify common tasks we as webdesigners do routinely).
I got little stuck with database design / whole idea of storing content.
1., What is mostly painful on most of websites (from my experience...
Hi!
I would like to allow some admins to manually enter SQL statements in a textfield (to get statistic data etc.). On the database layer, I protected the data by creating a user which can only select but not update/delete etc.
I would like to add a second security by checking the inserted SQL for bad words such as DROP, DELETE or UPDA...
I have the following form that uses some jQuery to allow an array of files to be submitted:
<form enctype="multipart/form-data" action="index.php" method="post" >
<input type="file" class="multi" name="test[]" />
<input type="submit" value="submit" name="submit" />
</form>
When I use method="get" I get the following URL when submitt...
I've got a pretty popular WordPress theme that has a template switcher (basically just changes the stylesheet assigned to the theme for a completely different look and stores this as setting in the db).
The way I do this is that I have a "styles" directory under my theme folder and inside of that, I have a single folder for every one of...
I just noticed something really nice on the Google Analytics signup page for adding a new domain. First you pick a country them you pick your timezone. Instead of showing a huge Timezone list though they populate the timezone list with only timezones that are available for the country you have selected. I think this is a great idea t...
I have two sets of information.
One is a date that is in Tuesday, January 26, 2010 format.
This is $date
Now i also have one of two things for time.
$stime can be either 7:30pm or Tuesday, January 26, 2010 7:30pm
What i need to do, is first, convert $stime to HH:MM:SS format, then combine it with $date and convert the two together to ...
Hello,
I'm trying to debug a very strange problem with the $_FILES array. When I try to upload a file, only the 'name' key is set, the type, tmp_name, etc. are empty, and it's returning error #1. For example:
Array
(
[name] => test.doc
[type] =>
[tmp_name] =>
[error] => 1
[size] => 0
)
test.doc is a valid file, ...
I have a python script that parses a large set of data into an internal memory structure, and implements various fetch functions on the structure.
I want to built a simple web frontend for this script, with the condition that the data is only initialized/loaded once (since re-loading upon each fetch would consume too much time/resources...
I am trying to get the data from the php file and update every second so when the information changes in the php file it will auto update
$(document).ready(function() {
$.ajaxSetup ({
cache: false
});
$("#hidden").hide();
$("#textfield").val("");
$("#textarea").val("");
var hol=$(this).attr('myval');
var formContent ...
How can I go about seeing if a particular website has a specific link in its content? We have a situation where someone is not necessarily stealing our copyrighted content, but they are posting parts of it and linking to another site as the author and we're wanting to track each time they do this.
Basically what I need is something tha...
Hi,
I've been working with php for about a year now and am finally starting to make some headway in my understanding of OOP. So, now that I'm writing classes I'm looking for the cleanest methods of working my PHP into my HTML. I essentially have written a few classes that output data stored in my database.
For instance I'll instant...