Hi!
It's my PHP-codes - http://www.adverts.ru/codes/
Criticism this! Now working one module - "User", his url: http://www.adverts.ru/admin/user
It code basic on MVC model and use php 5.3 version
Alright, PHP is throwing this error at me (in the log) when I run the code mentioned below:
Error
mysql_num_rows() expects parameter 1 to be resource, string given in (place) on line 10
Line 9-11
$queryFP = ("SELECT * FROM db");
$countFP = mysql_num_rows($queryFP);
$aID = rand(1, $countFP);
I think it has something to do with the $queryFP's…
I've got Win2003 w/IIS6, PHP 5 and MySQL installed. I can confirm PHP is installed correctly because I have a testMe.php that runs properly. When I run the Wordpress setup, I get informed that
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
But in my PHP.ini in the DYNAMIC EXTENSIONS section I…
I'm trying to find out if Ruby has en equivalent of php's fopen() method currently used like this:
$fd = fopen("php://stdin", "r");
would that be using ARGV variable?
Basically what I plan on doing is forward raw e-mail messages using the .procmailrc file which I already got working in a test php file, but the project requires the use of…
I have a form being AJAX'd in by jQuery on a page with multiple forms. I'm performing the following function, which is a wrapper for the $.ajax function:
function do_json_get(uri){
var ret = '';
var url = AJAX_URL + uri;
$.ajax({
type: 'GET',
url: url,
async: false,
success: function(data) {
…
We are using jquery for pagination. We are pulling millions of records from the database and then th jquery does the pagination on the front end. that is a very slow process. Can someone advice us of a solution in php and jquery where we pull 50 records at a time?
Thanks
I need a simple and basic MVC example to get me started. I dont want to use any of the available packaged frameworks.
I am in need of a simple example of a simple PHP MVC framework that would allow, at most, the basic creation of a simple multi-page site.
I am asking for a simple example because I learn best from simple real world…
I am trying to use a cookie with authentication.
This page works once entering user and pass
<?
if ((!$_POST[username]) || (!$_POST[password])) {
header("Location: show_login.html");
exit;
}
$db_name = "testDB";
$table_name = "auth_users";
$connection = @mysql_connect("localhost", "user",…
I have a mysql table with over 4 million of data; well the problem is that SOME queries WORK and SOME DON'T it depends on the search term, if the search term has a big volume of data in the table than I get the following error:
Fatal error: Allowed memory size of 1048576000 bytes exhausted (tried to allocate 75 bytes) in…
I'm trying to unit test a controller, but can't figure out how to pass some extra parameters to the routeMatch object.
I followed the posts from tomoram at http://devblog.x2k.co.uk/unit-testing-a-zend-framework-2-controller/ and…
I'v tried converting the text to or from utf8… didn't seem to help
Im getting:
"It’s Getting the Best of Me"
It should be:
"It’s Getting the Best of Me"
Im getting this data from a url -…
My code is as follows:
<?php
include("config.php");
$ip=$_SERVER['REMOTE_ADDR'];
if($_POST['id'])
{
$id=$_POST['id'];
$id = mysql_escape_String($id);
…
Hi!
I am using php4Delphi in Delphi.
In my PHP script I`m using the function:
$ret = @socket_recv_from(....);
In a normal PHP script ran by either PHP itselfs or…
I want to create a unique id but uniqid() is giving something like '492607b0ee414'. What i would like is something similar to what tinyurl gives: '64k8ra'. The…
Hi all:
I have a php script that updates a database via an api. This script works on one server but not on another. Both servers have curl enabled and they…