Symbianize Forum

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!

Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok dito

Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Help naman po:

Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\Gunsmith\web\checklogin.php:9) in C:\xampp\htdocs\Gunsmith\web\checklogin.php on line 39

Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\Gunsmith\web\checklogin.php:9) in C:\xampp\htdocs\Gunsmith\web\checklogin.php on line 39

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\Gunsmith\web\checklogin.php:9) in C:\xampp\htdocs\Gunsmith\web\checklogin.php on line 41

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively in Unknown on line 0

Yan ung sinasabi nya pag nag-lologin ako.
eto codes ng checklog.php
<?php
$host="localhost"; // Host name
$username="root"; // Mysql username
$password=""; // Mysql password
$db_name="db_login"; // Database name
$tbl_name="members"; // Table name

// Connect to server and select databse.
mysql_connect($host,$username,$password) or die ("Unable to connect");
mysql_select_db($db_name)or die("Cannot select DB");

// username and password sent from form
$myusername=$_POST['myusername'];
$mypassword=$_POST['mypassword'];

// To protect MySQL injection (more detail about MySQL injection)
$myusername = stripslashes($myusername);
$mypassword = stripslashes($mypassword);
$myusername = mysql_real_escape_string($myusername);
$mypassword = mysql_real_escape_string($mypassword);

$sql="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'";
$result=mysql_query($sql);

// Mysql_num_row is counting table row
$count=mysql_num_rows($result);
// If result matched $myusername and $mypassword, table row must be 1 row

if($count==1){
// Register $myusername, $mypassword and redirect to file "login_success.php"
session_register("myusername");
session_register("mypassword");
header("location:login_success.php");
}
else {
echo "Wrong Username or Password";
}

?>

eto naman ung sa login_success.php

// Check if session is not registered , redirect back to main page.
// Put this code in first line of web page.
<?
session_start();
if(!session_is_registered(myusername)){
header("location:index.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>




<body>
Login Successful
</body>
</html>


ok na po to mga sir. napagana ko na.
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

boss marunong ba kayo e commerce??
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

sir baka pwedeng humingi ng simple add edit delete search sa php mysql

ung simple lang ung code at madaling ma gets

TIA
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Help naman po:

Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\Gunsmith\web\checklogin.php:9) in C:\xampp\htdocs\Gunsmith\web\checklogin.php on line 39

Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\Gunsmith\web\checklogin.php:9) in C:\xampp\htdocs\Gunsmith\web\checklogin.php on line 39

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\Gunsmith\web\checklogin.php:9) in C:\xampp\htdocs\Gunsmith\web\checklogin.php on line 41

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively in Unknown on line 0

Yan ung sinasabi nya pag nag-lologin ako.
eto codes ng checklog.php


eto naman ung sa login_success.php


bossing luma n yung session_register di n yan advisable gamitin.
Code:
//gnyan n bagong pag lagay ng session
$myVar = $_SESSION['val'];
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

ts extension name po b .php
tas kailangan po b a ng compiler?
nasan po ung compiler di po kasi ako marunong mag php
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

hindi na kailangan ng compiler sa php sir. server side scripting language kasi ang php, yung compiler nya yun na yung server.. Apache2 ang server na gamit nya usually pag LAMP or winLAMP ang gamit mo.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

I'm a junior web developer pho.....patambay d2 TS...sana meron k rin tut about Umbraco....
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

hindi na kailangan ng compiler sa php sir. server side scripting language kasi ang php, yung compiler nya yun na yung server.. Apache2 ang server na gamit nya usually pag LAMP or winLAMP ang gamit mo.

sir tanung lang nasan po ung dinadownload po b ang winlamp?
Pasensya na po gusto ko kasing matuto ng php mas maganda kasi kaysa html
:p
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Pasensya na po gusto ko kasing matuto ng php mas maganda kasi kaysa html:p

Bundled package
XAMPP:
http://www.apachefriends.org/en/xampp-windows.html#641

If you like Postgresql as your backend you can found and installer in here.
http://www.enterprisedb.com/products-services-training/pgdownload#windows
It has Apache, PHP and Postgresql na.


Manual setup per applications.
Apache
http://httpd.apache.org/download.cgi
Win32 Binary without crypto (no mod_ssl) (MSI Installer) httpd-2.2.19-win32-x86-no_ssl.msi
PHP
http://windows.php.net/download/
VC9 x86 Non Thread Safe Zip
MySQL
http://www.mysql.com/downloads/mysql/#downloads
Windows (x86, 32-bit)(mysql-5.5.13-win32.msi)

To install PHP under Apache
http://www.php.net/manual/en/install.windows.manual.php
http://www.php.net/manual/en/install.windows.apache2.php
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

sir example naman poh ng comment box using php and using kohana v2.3.4 as a framework.... thanks poh in advance if ever meron.. thankyou poh..
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

pa bookmark po..
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Sir pwede magtanong tungkol sa CSS
paano ba pag lapitin yung text

attachment.php


ito yung footer part ng page, laki kasi masyado space nila

ito yung css part nya

Code:
#footer {
webkit-border-radius: 10px;
khtml-border-radius: 10px;
moz-border-radius: 10px;
border-radius: 10px;
margin: 0 auto; margin-top: 0px; margin-bottom: 0px;
text-shadow: #000 2px -4px 2.5px;
text-align:center;
background:#ffffff url(images/footer.jpg) repeat-x;
font-size:15px;
color:#ffffff;
font-family: Times New Roman, Times, serif, sans-serif, Arial;
clear:both;
width:960px;
height:131px;
border-bottom:1px solid #ccc;
}
 

Attachments

  • footer.jpg
    footer.jpg
    65.2 KB · Views: 219
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Sir pwede magtanong tungkol sa CSS
paano ba pag lapitin yung text

attachment.php


ito yung footer part ng page, laki kasi masyado space nila

ito yung css part nya

Code:
#footer {
webkit-border-radius: 10px;
khtml-border-radius: 10px;
moz-border-radius: 10px;
border-radius: 10px;
margin: 0 auto; margin-top: 0px; margin-bottom: 0px;
text-shadow: #000 2px -4px 2.5px;
text-align:center;
background:#ffffff url(images/footer.jpg) repeat-x;
font-size:15px;
color:#ffffff;
font-family: Times New Roman, Times, serif, sans-serif, Arial;
clear:both;
width:960px;
height:131px;
border-bottom:1px solid #ccc;
}


try adding line-height. **line-height: 20px;** :)
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Help naman po di ko mapagana log in and register. ung register po gumagana na, ung log in ayaw.
 

Attachments

  • php.zip
    12.3 KB · Views: 50
  • db_login.rar
    2.1 KB · Views: 51
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Help naman po di ko mapagana log in and register. ung register po gumagana na, ung log in ayaw.

Look on file index.php line 60.

<div style="display:none">

remove mo yong style ng div. Dahil sa style na yan yong login form mo nakahide.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Look on file index.php line 60.

<div style="display:none">

remove mo yong style ng div. Dahil sa style na yan yong login form mo nakahide.

hindi po un ang problem. nakajquery kasi ung log in ko, nasa index.php xa. pag click mo sa log in may magpo-pop na fancybox, working po un. ung php ang hindi gumagana.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

hindi po un ang problem. nakajquery kasi ung log in ko, nasa index.php xa. pag click mo sa log in may magpo-pop na fancybox, working po un. ung php ang hindi gumagana.

Walang naka.attached na CSS at javascript. Please reattached the CSS at Javascript para matest talaga. :) HTML lang kasi kaya I was thinking yong display ng login form ang problem. :)
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

eto sir. di ko include images ha mabigat iupload. hehe
 

Attachments

  • web.rar
    44.1 KB · Views: 68
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Di mo na load ang yong jquery.fancybox-1.3.4.js.
Ang jquery.fancybox-1.3.4.pack.js lang ang naload mo.

<script type="text/javascript" src="jquery.fancybox-1.3.4.js"></script>

Add mo lang yan sa index.php mo. :)
 
Last edited:
Back
Top Bottom