- Messages
- 781
- Reaction score
- 0
- Points
- 26
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2
sir hakuna.. baka last na checking mamaya.. hohoho..
sir hakuna.. baka last na checking mamaya.. hohoho..
Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.
All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!
Good Day!! I have a table named sales and salesdetails..At present its accumulating data for almost 200 rows /day on sales and 2000rpws/day on salesdetails. My problem is what is tha maximum rows for a table?
Scalability and Limits:
- Support for large databases. We use MySQL Server with databases that contain 50 million records. We also know of users who use MySQL Server with 200,000 tables and about 5,000,000,000 rows.
- Support for up to 64 indexes per table (32 before MySQL 4.1.2). Each index may consist of 1 to 16 columns or parts of columns. The maximum index width is 1000 bytes (767 for InnoDB); before MySQL 4.1.2, the limit is 500 bytes. An index may use a prefix of a column for CHAR, VARCHAR, BLOB, or TEXThttp://127.0.0.1:8001/mySQL/data-types.html#blob column types.
sir ganun pa rin may lumalabas pa rin na codings >_< ano kaya problema d2, browser kaya..., na test ko na din kasi sa google chrome ganun din
hAHAHA copy & paste lang talaga oh?
di man lang alam ano gamit ng var_dump() ng PHP?
search po nyo yan sir, makakatulong yan sa inyo specially when debugging.
foreach ($users as $key => $value) /* fetch the array users not the username. */
{
if ($key == $username && $value == $password) /* Added condition if username is a valid user and has valid password. */
{
return true;
}
else
{
return false;
}
}
}
user_valid(){
header('Location: home.php');
}
/* Missing }. */
?>
dun sa mising ko ilalagay?
foreach ($users as $key => $value) /* fetch the array users not the username. */
{
if ($key == $username && $value == $password) /* Added condition if username is a valid user and has valid password. */
{
return true;
}
else
{
return false;
}
}
}
/* Missing }. */
?>
/*
$username - ito yong variable na ina.signan mo ng $_POST["username"];
$password - ito yong variable na ina.signan mo ng $_POST["password"];
*/
if (user_valid($username, $password))
{
header("Location: home.php");
exit;
}
else
{
/* Walang gagawin. */
}
sir hakuna ask ko lang kung bakit may lumalabas na
0 => string '009' (length=3)
1 => string '010' (length=3)
after deleting the selected checkboxes.
den kapag edit ko ayaw naman ma edit,
im pretty sure may kinalaman to sa array eh, ung mag aassign ata un, penge naman sample sir, para sundan ko salamat
(field1, field2) = ('value1', 'value2')
Bakit may lumabas na parang garbage string?
First nag.read ka na ba ng var_dump()?
I put that, in order for you do debug and check if tama ba yong values na dapat ma receive mo. Remove that var_dump() and you will be ok na.
Di naman talaga ma.edit yong code ko. Tignan mo?
Yong naka.lagay sa queries ko. Hahaha pati ba naman yon di mo pinalitan? Modify it to make your codes edit your records.
I only put the algo and idea how to deal with it. Di yan talaga mag.rurun. And I never run it with PHP. I only coded it.
<?php
$username = $_REQUEST['username'];
$password = $_REQUEST['password'];
function user_valid($username, $password)
{
global $users;
$users = array(
"maver" => "maver",
"pogi" => "pogi",
"nice" => "nice",
"super" => "super",
"lala" => "lala",
);
foreach ($users as $key => $value)
{
if ($key == $username && $value == $password)
{
if (user_valid($username, $password))
{
header('Location: home.php');
exit();
}
else
{
return false;
}
}
}
/* Missing }. */
?>
sir tama ba? hina ko talaga sa webprog
<?php
$username = $_REQUEST['username'];
$password = $_REQUEST['password'];
function user_valid($username, $password)
{
global $users;
$users = array(
"maver" => "maver",
"pogi" => "pogi",
"nice" => "nice",
"super" => "super",
"lala" => "lala"
);
foreach ($users as $key => $value)
{
if ($key == $username && $value == $password)
{
return TRUE;
}
else
{
return FALSE;
}
}
}
if (user_valid($username, $password))
{
header("Location: home.php");
exit;
}
else
{
echo "Invalid account.";
}
?>
yap napansin ko nga un sir eh, ung ilalagay ba sa field is yung column name sa mysql?