How do I get a variable from the new User Class to echo out in this clasS?
class MyApp
{
function __construct()
{
global $dbHost;
global $dbUser;
global $dbPass;
global $dbName;
$this->DB = new Database;
$this->DB->connect($dbHost, $dbUser, $dbPass, $dbName);
$User = new User;
echo $User->login;
echo $this->User->login;
}
}
get url?
how do i get the url of the page i'm currently on, on my website.. i think its get header.. how do i do that?
why preg_match_all does not return the number of matches
My regex looks likeX[^\x{4e00}-\x{9fa5}]*Y(where X and Y are two Chinese characters)and my expression looks likepreg_match_all("/".$regex."/iu", $content, $out,
Error in Configure System Landscape Directory phase
Hi
How do I get the row number from from an sql table query
Hi allI have a table that I query and it returns a number of rows.mysql_num_rows($query) = $totalI want to have next and previous buttons, is there a way of retrieving the current row number, and can
search query in mysql in php problem
my search query wont work, i know, that my codes are correct.please helpCode: [Select]<table width="300" border="0" align="center" cellpadding="0"
True way to see if action was successful?
If this is a good way to see if action was successful to continue:Code: function changeGameState($GameId) { mysql_query("UPDATE challenges SET status=status+1 WHERE id='$GameId'");
Run function every 5 mins ??
I have a function PostMessage()How can I run it every 5 mins ??
image upload script not working with png
The basic process of this php code is to take the submitted file, convert it to a small JPG thumbnail and put it into one directory and save the original file into another, but it seems that when
Error in query: Resource id #4??
hey guys, having a minor (i think) problem here that i havent been able to figure out. long story short, im building a hockey stat tracking site for a local hockey league around here.my problem is, i
SQl num_rows problem
when i try to count rows from an SQL select i get an warningCode: [Select]$countviews = mysql_query("SELECT * FROM viewed WHERE sfw = '0' AND cookieid = $id");$num_rows_viewed =