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

may sample code ba dito ng para sa news archives?? php & mysqli gamit ko.. di ko kasi mapalabas ung name ng month
ganito ung output

Archives
2014
1(1)
2(4)
3(3)
4(2)
5(1)

Dapat ganito

Archives
2014
January(1)
February(4)
March(3)
April(2)
May(1)

eto ung code ko..

Code:
<?php        
    include("connection/connect.php");
    $result=mysqli_query($con,"SELECT DISTINCT YEAR(post_date) AS myyear FROM posts");
    while($fetch=mysqli_fetch_array($result)) {
        echo "<b>".$fetch['myyear']."</b><br />";    
        $q1="SELECT MONTH(post_date) AS postmonth,count(*) AS postcount FROM posts WHERE year(post_date)=".$fetch['myyear']." GROUP BY MONTH(post_date)";
        $temp1=mysqli_query($con,$q1);
        while($temp=mysqli_fetch_array($temp1))

        echo "<b>".$temp['postmonth']."</b> (".$temp['postcount'].")<br />";
    }
    mysqli_close($con);        
?>

Salamat sa tutulong :)

- - - Updated - - -

Gawa ka ng index.php tpos dun sa loob nun lagyan mo ng code para maredirect yung site sa form.php mo i think heading yun eh. Di ko matandaan pero search m nlng yung code sa google.

ito ilagay mo sa index.php file mo
Code:
<?php 
session_start();

if(!isset($_SESSION['username'])){

header("location: file na gusto mo maunang makita .php");
}
else {

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

mga master pa help gumawa ng dropdown menu para sa site ko dropdown menu on hover po. salamat
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

youtube brad.. madami dun
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

may sample code ba dito ng para sa news archives?? php & mysqli gamit ko.. di ko kasi mapalabas ung name ng month
ganito ung output

Archives
2014
1(1)
2(4)
3(3)
4(2)
5(1)

Dapat ganito

Archives
2014
January(1)
February(4)
March(3)
April(2)
May(1)

eto ung code ko..

Code:
<?php        
    include("connection/connect.php");
    $result=mysqli_query($con,"SELECT DISTINCT YEAR(post_date) AS myyear FROM posts");
    while($fetch=mysqli_fetch_array($result)) {
        echo "<b>".$fetch['myyear']."</b><br />";    
        $q1="SELECT MONTH(post_date) AS postmonth,count(*) AS postcount FROM posts WHERE year(post_date)=".$fetch['myyear']." GROUP BY MONTH(post_date)";
        $temp1=mysqli_query($con,$q1);
        while($temp=mysqli_fetch_array($temp1))

        echo "<b>".$temp['postmonth']."</b> (".$temp['postcount'].")<br />";
    }
    mysqli_close($con);        
?>

Salamat sa tutulong :)

- - - Updated - - -

[/code]

Sa SQL Query mo, pwede atang derecho using MONTHNAME, pero mabagal kapag maraming icoconvert.
Pwede ka din mag-create ng function

function int_to_monthNum($monthNum) {
$monthName = date("F", mktime(0, 0, 0, $monthNum, 10));
return $monthName;
}

tapos sa while mo :

echo int_to_monthNum($temp['postmonth']);

Di ako sure ha :)) bigla ko lang naisip. AHAHHA
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

cge try ko brad :D.. thanks.. sana gumana :)
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Hello po master tanong lang po pano po ba iframeset to beginner pa lang po ako madali lang po yung framset kaso nhihirapan ako pagdating nung sa mga contents inshort di ko talaga alam pano ko po gagwin yung pinaka itsura nung page huhuh layout ko po yan. :-( Sana po matulungan mo ako salamat po master. <3
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Hello po master tanong lang po pano po ba iframeset to beginner pa lang po ako madali lang po yung framset kaso nhihirapan ako pagdating nung sa mga contents inshort di ko talaga alam pano ko po gagwin yung pinaka itsura nung page huhuh layout ko po yan. :-( Sana po matulungan mo ako salamat po master. <3

frameset ang pnapagamit sa inyo ng prof nyo?
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Mga boss pa help naman sa CSS/HTML.. paano ba mag sstick sa bottom ng page ang footer?

Ito po codes ko..



Tapos ito naman po structure ng HTML ko..



Thanks po. :yipee:

Code:
<div style="clear: both;"></div>
</div> 
<div id="Footer">Footer</div>
</div>

lagay mo ito
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Mga boss ano magandang hosting site na free bukod sa hostinger..
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

pa help naman sa CSS panu po ba yung code sa header ng page ko gawing 3d ung apperance ? ung may bar ? o_O ?

Html naman po

panu po mafit ung background picture sa page po ? o_O?

thanks and advance ... :praise:
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

pa help naman sa CSS panu po ba yung code sa header ng page ko gawing 3d ung apperance ? ung may bar ? o_O ?

panong 3d? baka fixed positioning ung gusto mo mangayri, ung nakastick lang ung bar sa taas kahit magscroll ka?

Html naman po

panu po mafit ung background picture sa page po ? o_O?

sa css mo den to gawin... no need for IMG tag..
Code:
html {
      background: url("../cssFolder/bgIimage.jpg") center center fixed;
      background-size: cover;
}

pwede den gawin mo lang ay target mo ung image tag using a class na may 100% width.. dapat ung IMG tag mo ay direct child ni BODY element at nasa labas ng MAIN WRAPPER...
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

elp nmn need ko po sana gumawa ng button n pa-click mgllbas ng form then save ... pagka save mcrecreate sya ng mga button (view ,delete) n nka save dun ung fill-up dun s form.. i think ggmitan sya ng database pra masave un laman at khit irfresh or i close ung browser nkasave din ung button pwera nlng qng click ung delete button tnx in advanced hope you can help me :pray::pray::pray:

gamit po PHP,JS

PS. d ko po alam qng anu ang dapat i-type s google k d ko po kc alam tawag s process n yn
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

hello po guys pa help naman po sa php :( ganito po ang output dapat

output: dapat ma sesearch sa database (sql) yung mga naka input na username

eto po pala yung fields nung nasa sql

View attachment 959696

ayan po yung fields na nasa sql

at eto naman po yung html files ko

View attachment 959697

eto po yung php file ko ng search


<? //search.php
$hostname = ”localhost”;
$username = “root”;
$password = " “;
$database = “dbcastro”;

$S = $_POST[‘pattern’];
mysql_connect($hostname,$username,$password);
mysql_select_db($database) or die (“Unable to connect to database”);

$query =“select username from tb_login where username = “%.$s.%”;
$result = mysql_query($query);
$n = mysql_num_row($result);
if($s==0){
echo “no records found”;
}else{
$row = mysql_fetch_array($result);
$u = $row[‘username’];
echo “Username is $n”;
}

ang nakakapagtaka po wala siyang output as in blank page di ko po alam kung pano next

question: ggawa pa po ako ng new page? para sa output? sensya noob po


ang gagawin po search add username ,edit tapos save po
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

hi ! mga sir / mam.. advice naman po thesis po kasi namin e, my naumpsihan na po ako.. school management po ng school namin.. question po anu po bang mggndang features? admin page... faculty portal.. at student portal..

anu po kaya magandang laman ng bawat page? advice naman po sir.. yung pong isang nag tuturo sakin sabi nya po mas maganda kung yung sa admin page nakatago.. admin lang po mkaka access.. kaso busy po ata sya d nya po masydo naasikaso..

tyaka po sa design advice din po.. panget ko po talaga mag design eh, website po to.. willing po aku matuto.. pls help po
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

hello po guys pa help naman po sa php :( ganito po ang output dapat

output: dapat ma sesearch sa database (sql) yung mga naka input na username

eto po pala yung fields nung nasa sql

View attachment 959696

ayan po yung fields na nasa sql

at eto naman po yung html files ko

View attachment 959697

eto po yung php file ko ng search


<? //search.php
$hostname = ”localhost”;
$username = “root”;
$password = " “;
$database = “dbcastro”;

$S = $_POST[‘pattern’];
mysql_connect($hostname,$username,$password);
mysql_select_db($database) or die (“Unable to connect to database”);

$query =“select username from tb_login where username = “%.$s.%”;
$result = mysql_query($query);
$n = mysql_num_row($result);
if($s==0){
echo “no records found”;
}else{
$row = mysql_fetch_array($result);
$u = $row[‘username’];
echo “Username is $n”;
}

ang nakakapagtaka po wala siyang output as in blank page di ko po alam kung pano next

question: ggawa pa po ako ng new page? para sa output? sensya noob po


ang gagawin po search add username ,edit tapos save po

e post mo sa *** BANNED LINK - DO NOT POST *** ung code mo para mabilis ma review yong code mo..
dapat ma debug mo muna yung connectionmo sa mysql ;
kung gusto mo ma resolve agad yan.. pm me in my facebook

https://www.facebook.com/ramel.p.cabugos
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

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

mga MASTER.. baka pwedeng makahingi ng sample program nyu sa php.. ung may Database at may edit,update,delete,create, Tia :) :)
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

panong 3d? baka fixed positioning ung gusto mo mangayri, ung nakastick lang ung bar sa taas kahit magscroll ka?



sa css mo den to gawin... no need for IMG tag..
Code:
html {
      background: url("../cssFolder/bgIimage.jpg") center center fixed;
      background-size: cover;
}

pwede den gawin mo lang ay target mo ung image tag using a class na may 100% width.. dapat ung IMG tag mo ay direct child ni BODY element at nasa labas ng MAIN WRAPPER...

Ung bar ? ung bar na nasa taas lang po ang sakop lang ( Home,View,Etc. )


pero ...
Maraming thank you sir :)
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Guys I'm average CSS-PHP-HTML at sa tingin ko below average na jquery/javascript coder pero hindi ako gumagamit ng responsive and bootstrap


kasi may thesis kami gusto kong inconvert yung ginwa kong lan-base na record management system into bootstrap/responsive.

kung pag-aaralin ko ngayon yung bootstrap and responsive sa tingin nyo matutunan ko kaagad?
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

mga sir help naman po sa code bakti po hindi nagcecenter yung mga elements kapag zinoom out ko eh nagdeclare naman na po ako ng css reset ko at nagdeclare na din po ako ng margin: 0 auto; thanks i hope matulungan niyo ako

html code

<!doctype html>
<html>
<head>
<title> SNHS Website </title>
<meta charset="utf-8" />
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="container">
<div class="header_wrapper">
<div class="logo">
</div>
<div class="nav">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Info</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Gallery</a></li>
</ul>
</div>
</div>
<div id="content">
<p> lorem ipsum gaming is lorem ipsum gaming </p>

</div>






</body>
</html>


css code

html, body {

background: url('../img/bg.gif');

}

#container {
margin: 0 auto;
height: 1200px; /sample lang to para makita ko yung sakop ng container ko
background-color: red; /sample lang to para makita ko yung sakop ng container ko
}

.header_wrapper {

background-color: #2c3e50;
width: 100%;
margin-top: 0;
margin-left: 0;
height: 150px;
}

.logo {
background: url('../img/hs.png');
background-repeat: no-repeat;
float: left;
width: 100px;
height: 100px;
margin: 20px 50px;
}

.logo:hover {
border: 2px solid white;
}

.nav ul {
float: right;
margin-right: 170px;
margin-top: 60px;
font-size: 22px;
font-family: sans-serif;
list-style: none;
}

.nav ul li {
display: inline;
padding: 15px;
}

.nav ul li a {

color: #c0392b;
text-decoration: none
}

.nav ul li a:hover {
border-bottom: 5px solid white;
color: #7f8c8d;
}

#content {

}
 

Attachments

  • ayaw niya magcenter.jpg
    ayaw niya magcenter.jpg
    162.6 KB · Views: 9
  • snhs.rar
    493.5 KB · Views: 1
Back
Top Bottom