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

Sir,

Ano ano po ang need para makagawa ka ng isang website?

Local lang po ah..

lahat po apps and software na need.

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

otoy, paturo naman mag gawa ng website na may mga menu , tpos pag iclick mo ung menu eh, ndi siya mapupunta sa bagong tab, same page parin siya maglabas. >.< waaa

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

image {
float: left;
}

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

sir panu mag add page delete page and update page ?
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Sir,

Ano ano po ang need para makagawa ka ng isang website?

Local lang po ah..

lahat po apps and software na need.

Thanks..

Download nyo po yung XAMPP kung kakailanganin nyo ng database.. Kung simpleng HTML lang para magpraktis eh kahit hindi na.

otoy, paturo naman mag gawa ng website na may mga menu , tpos pag iclick mo ung menu eh, ndi siya mapupunta sa bagong tab, same page parin siya maglabas. >.< waaa

TASUKETE....

HTML lang po ba yan? Parang ganito po..

Example HTML for menu:

<div id="menu">
<div class="container">
<div class="region-menu">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="about.php">About Us</a></li>
<li><a href="services.php">Services</a></li>
<li><a href="contact.php">Contact Us</a></li>
</ul>
</div>
</div>
</div>

Tapos sa CSS:

.region-menu ul li {
float: left; /* Para inline yung title */
}

Para hindi mag open sa new tab, i default nyo nalang para same page din sya mag open.. wala na kayo i aadd.. Sa attributes kasi yun ng target ng link.. Eg. target="_blank" <=== mag oopen sya new tab.

sir panu mag add page delete page and update page ?

Kakailanganin nyo po ng database dyan at PHP sir. Dapat po pag aralan nyo muna yung HTML tapos pag medyo kabisado nyo na, PHP naman. Try nyo sa codecademy. Dun lang din aq natuto mag PHP :)

- - - Updated - - -

alam mo ba yung html code for kapag icliclick mo yung button magiging black ung background color tapos white yung font text. tapos pag cnlick mo ulit, babalik sa dati, magiging white bg ulit at black font?

CSS lang po yan sir,
:focus selector po gamit dun.

Sample:

a {
color:#333;
background: #FFF;
}
a:focus {
color:#FFF;
background:#333;
}

Mga sir paano po ba ito? ang balak ko po kasing gawin ialin yung text sa image bali image tapos nasa right yung text

eto po codes ko

<html>
<head>
<style type="text/css">
body{
background-image:url("C:\Users\myAsus\Desktop\image\r3.png" align="middle");
background-repeat:no-repeat;
background-position: 50% 50%;
background-attachment:fixed;
}

#box{
border:solid 2px #ccff33;
padding:15px;
margin-left:30%;
margin-right:24%;
margin-top:5%;
` margin-bottom: 20%;
border-radius:15px;
box-shadow:5px 5px 5px #888888;

}
img{
vertical-align:middle;
height:200px;
width:200px;
padding-right: 50%;
}
li{
display:inline;
padding:10px;
background-color:CCCCCC;
border-radius:10px;
box-shadow:5px 5px 5px FF9933;

}
li:hover{
display:inline;
padding:10px;
background-color:0066CC;
}
a:link{
color:33FFFF;
font-weight:bolder;
text-decoration:none;
}
a:hover{
color:FF6633;
font-weight:bolder;
text-decoration:none;
font-style:italic;
}
ul{
margin-top:15%;
margin-left:30%;
margin-right:20%;
}

</style>
</head>
<body>
<UL>
<li><a href="#">Input device</a></li>
<li><a href="#">Output Device</a></li>
<li><a href="#">Software Application</a></li>
<li><a href="#">Operating System</a></li>
</UL>
<div id="box">
<div style="color:000099;font-family:Times New Roman;
font-size:15px;font-weight:bold;">In computing, an input device is a peripheral (piece of computer hardware

equipment) used to provide data and control signals to an information processing system such as a computer or

other information appliance. Examples of input devices include keyboards, mouse, scanners, digital cameras and

joysticks.
<img src="C:\Users\myAsus\Desktop\image\download.jpg">

</div></div>
</body>
</html>

Ibig mo bang sabihin naka inline yung dalawang div? I- float mo lang sila mag iinline na yan tapos para mas OK, lagyan mo ng width yung left at right div.

Check mo po dito yung sample html at CSS...

http://jsfiddle.net/ekpne6uq/
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Mga Master help po! bakit po gnun pag nag login na si member pwede nia maacces si admin.php??:upset::upset::upset:pero ayus nmn po pag guest ka lang di mo maacces.
-------------------------
problem solved :D
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

good morning guys..^^ ahm, may problem po kasi ako sa chatbox ko, gumwa po ksi ako ng simple chatbox using php. gumagana naman po sya, kaso, gusto ko po kasing parang maging facebook yung chat nya, yung pag nag chat ka ng sobrang haba, hindi gagawa ng scroll bar yung website mo, pero patataasin nya yung mga chat mo. yung sakin po kasi lumalapad.. hahahaha.. sorry po ah, replyan nyo po ako if di nyu naintindihan. bale ito po yung codes ko:

ito po yung shoutbox.php, papakita nya po yung shouts.php para pag may nag chat, automatic nyang ipapakita:


<?php

mysql_connect("localhost","root","");
mysql_select_db('try');

$submit=isset($_POST['sub']);

if ($submit)
{

$message=$_POST['message'];
mysql_select_db('try');
$queryreg=mysql_query("INSERT INTO message(ID,message) VALUES('','$message')") or die (mysql_error());
}
?>

<html>
<head>
<meta http-equiv="content-type" content="html/text"/>
<style type="text/css">

body
{
font-family:Tahoma;
font-size:10pt;
background-image:url(dota2background.jpg);
-moz-background-size: cover;
-webkit-background-size: cover;
background-size: cover;
background-position: top center !important;
background-repeat: no-repeat !important;
background-attachment: fixed;
}
#shouts
{
border:1px solid #000;
width:1248px;

white-space: nowrap;
}
</style>
</head>

<body>

<form action="shoutbox.php" method="post">
<table border="1" width="1248" style="border:0;" cellpadding="5">
<tr>
<td><br/>Message:<textarea cols="50" rows="2" name="message" style="resize:none;"></textarea><input type="submit" name="sub" value="send">
</tr>
<tr>
<td width="1024px"><div id="shouts">
<iframe name="shouts" src="shouts.php" width="1248px" height="720px" frameborder="0" scrolling="auto"></iframe>
</div>
</tr>
</table>
<b>




</form>
</body>
</html>


ito naman po yung shouts.php:
<?php

$connection=mysql_connect("localhost","root","") or die (mysql_error());
$select_db=mysql_select_db('try') or die (mysql_error());
session_start();
?>

<html>
<head>
<style type="text/css">
td
{
max-width:50%;
min-width:150px;
background: #ffeec0;
padding:2px;
margin:3px;
border-radius: 2px;
border:1px solid #ffdd7c;
float: left;
clear: left;
}
</style>
<meta http-equiv="content-type" content="html/text"/>
<meta http-equiv="refresh" content="10;url=shouts.php"/>
</head>
<body bgcolor='white'>

<?php
$sql="SELECT * FROM message ORDER BY id DESC";
$res=mysql_query($sql,$connection) or die (mysql_error());

echo "<table>";
while ($row=mysql_fetch_assoc($res))
{
echo "<tr>"."<td>"."<center>".$x=$row["message"]."</center>";

}
echo "</table>";
?>
</body>
</html>

ito po yung screenshot:
View attachment 202418

salamat po in advance sa inyo..^^

- - - Updated - - -

tangalin nyo nalang po pala yung mga di need na mga codes, hehehe, nagtry po kasi ako ng mga codes jan para gumana, sorry po di ko na naedit.. salamat po ulit..^^
 

Attachments

  • Untitled.png
    Untitled.png
    85.3 KB · Views: 12
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

@iLArgeLo
Download ka Xampp or Wamp
gamit ka notepad++ for editor

@sherlyngomez18
gamit ka div imbes na table...
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

ahm sir.. pwede po paexplain? di ko po kasi alam kung saang part ko ilalagay yung div eh. pasensya na po, bale tinry ko pong ilagay yung div before dun sa <tr>, then ito po yung result:View attachment 1003441

- - - Updated - - -

ahm sir.. natry ko na po.. bale ito po yung result. yung ibang mga chat naman sumunod and di sila nag overlap, pero yung iba po nagoverlap padin. tingi nyo po, anu yung problem nito? oh ako po mismo yung prob? hahahaha.. pasensya na po, noob po..

dito ko po s shouts.php nilagay:
<?php

$connection=mysql_connect("localhost","root","") or die (mysql_error());
$select_db=mysql_select_db('try') or die (mysql_error());
session_start();
?>

<html>
<head>
<style type="text/css">
#gg
{
max-width:50%;
min-width:150px;
background: #ffeec0;
padding:2px;
margin:3px;
border-radius: 2px;
border:1px solid #ffdd7c;
float: left;
clear: left;
}
</style>
<meta http-equiv="content-type" content="html/text"/>
<meta http-equiv="refresh" content="10;url=shouts.php"/>
</head>
<body bgcolor='white'>
<?php
$sql="SELECT * FROM message ORDER BY id DESC";
$res=mysql_query($sql,$connection) or die (mysql_error());

while ($row=mysql_fetch_assoc($res))
{

echo "<div id='gg'>"."<center>".$row["message"]."</center>"."</div>"."<br/>";

}

?>
</body>
</html>


then ito po yung result:
View attachment 202442
 

Attachments

  • Untitled.png
    Untitled.png
    73.8 KB · Views: 10
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

ahm sir.. pwede po paexplain? di ko po kasi alam kung saang part ko ilalagay yung div eh. pasensya na po, bale tinry ko pong ilagay yung div before dun sa <tr>, then ito po yung result:View attachment 1003441

- - - Updated - - -

ahm sir.. natry ko na po.. bale ito po yung result. yung ibang mga chat naman sumunod and di sila nag overlap, pero yung iba po nagoverlap padin. tingi nyo po, anu yung problem nito? oh ako po mismo yung prob? hahahaha.. pasensya na po, noob po..

dito ko po s shouts.php nilagay:
<?php

$connection=mysql_connect("localhost","root","") or die (mysql_error());
$select_db=mysql_select_db('try') or die (mysql_error());
session_start();
?>

<html>
<head>
<style type="text/css">
#gg
{
max-width:50%;
min-width:150px;
background: #ffeec0;
padding:2px;
margin:3px;
border-radius: 2px;
border:1px solid #ffdd7c;
float: left;
clear: left;
}
</style>
<meta http-equiv="content-type" content="html/text"/>
<meta http-equiv="refresh" content="10;url=shouts.php"/>
</head>
<body bgcolor='white'>
<?php
$sql="SELECT * FROM message ORDER BY id DESC";
$res=mysql_query($sql,$connection) or die (mysql_error());

while ($row=mysql_fetch_assoc($res))
{

echo "<div id='gg'>"."<center>".$row["message"]."</center>"."</div>"."<br/>";

}

?>
</body>
</html>


then ito po yung result:
View attachment 1003446

na loloop din yung div nyo po

try this

echo "<div='gg1'>"; <!--nilabas ko lang yung div -->
while ($row=mysql_fetch_assoc($res))
{

echo "<center>".$row["message"]."</center><br/>";

}
echo "</div>";
?>
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

na loloop din yung div nyo po

try this

echo "<div='gg1'>"; <!--nilabas ko lang yung div -->
while ($row=mysql_fetch_assoc($res))
{

echo "<center>".$row["message"]."</center><br/>";

}
echo "</div>";
?>

hala.. hahahahahhaXD salamat po sir imico,
gumana na sya..XD mini chatbox po kasi gagawin ko para pde kaming magchat ng mga friends ko^^
salamat ts..
last question na po, diba po dito sa symbianize, maraming gumagawa ng threads? bale everytime na gagawa sila ng thread tapos napupuno yung isang page, nagdadagdag sila ng panibagong page, pano po ba yung coding dun? bale di ko po kasi magets, ang alam ko lang is href, kaso prang araw araw ko ata gagawin yung code ko para mag dagdag ng page diba? may idea po ba kayo? hahahaha. sorry po ah, gusto ko din po kasing gayahin, kaso di ko alam..
ito po yung picture nya oh:
View attachment 203078
Salamat po in advance..^^
 

Attachments

  • Untitled.png
    Untitled.png
    43.7 KB · Views: 10
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

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

guys pahelp nmn po ! meron po akong 6buttons na pang upload ng file..eton po yung code ko para sa pang upload
eto po yung una
Code:
if(isset($_FILES['q30_barangayClearance'])){
    $errors= array();
// foreach($_FILES['q30_barangayClearance']['tmp_name'] as $key => $tmp_name ){
    $file_name = $_FILES['q30_barangayClearance']['name'];
    $file_size =$_FILES['q30_barangayClearance']['size'];
    $file_tmp =$_FILES['q30_barangayClearance']['tmp_name'];
    $file_type=$_FILES['q30_barangayClearance']['type'];
	$date=date("Y");	
	$file_ext = explode('.',$file_name);
	$file_ext = end($file_ext);
    // if($file_size > 2097152){
        // $errors[]='File size must be less than 2 MB';
    // }       
    $desired_dir="uploaded/$date/";
    if(empty($errors)==true){
        if(is_dir($desired_dir)==false){
            mkdir("$desired_dir", 0700);
			// Create directory if it does not exist
        }
        if(is_dir("$desired_dir".$file_name)==false){
          move_uploaded_file($file_tmp,"$desired_dir"."BrgyClr".$mem_ID.'.'.$file_ext);
		  
        }else{                                  //rename the file if another one exist
          rename($desired_dir,$desired_dir.$file_name.time().$file_ext);/* 
           $desired_dir="$desired_dir".$file_name.time();
           rename($file_tmp,$desired_dir) ;           */
		   
        }
        mysqli_query($conn,"INSERT into documents (`id`,`mem_ID`,`name`,`type`,`size`,`year`,`docType`,`path`) 
            VALUES('','$mem_ID','$file_name','$file_type','$file_size','$date','Barangay Clearance','$desired_dir')") or die(mysqli_error($conn));          
    }else{
            print_r($errors);
    }
 }
if(empty($error)){
    echo "Success";
}

then change ko lang name ng $_FILES[] para sa 5 pang buttong na pang upload
pero kapag lahat ng buttons ng upload ay may selected image wala syang macopy pero pag isa lang selected na image sa isang button ok nmn po sya :/:upset::upset::upset:

ANY HELP!PLS


EDIT:

Problem solved :D
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Pahelp Po PHP auction system.. Idea po

or ung code :D
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

hala.. hahahahahhaXD salamat po sir imico,
gumana na sya..XD mini chatbox po kasi gagawin ko para pde kaming magchat ng mga friends ko^^
salamat ts..
last question na po, diba po dito sa symbianize, maraming gumagawa ng threads? bale everytime na gagawa sila ng thread tapos napupuno yung isang page, nagdadagdag sila ng panibagong page, pano po ba yung coding dun? bale di ko po kasi magets, ang alam ko lang is href, kaso prang araw araw ko ata gagawin yung code ko para mag dagdag ng page diba? may idea po ba kayo? hahahaha. sorry po ah, gusto ko din po kasing gayahin, kaso di ko alam..
ito po yung picture nya oh:
View attachment 1004840
Salamat po in advance..^^

ah pagination. pakitry panoorin yung video tutorial sa developphp about pagination. okay naman. naeexplain namang mabuti :)
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

ah pagination. pakitry panoorin yung video tutorial sa developphp about pagination. okay naman. naeexplain namang mabuti :)

ah.. pagination pala yun.. hahaha.. salamat po sir.. tuwing nagsesearch po kasi ako ng how to create page, lage po akong dinadirect sa how to create a simple html eh..XD salamat po sir amebapico.^^
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

help po high school website po kasi thesis namin. tanong ko lang po sana necessary pabang may registration ng mga student para may account sila at makapaglogin sa website or yung id number nalang po nila? paano po ba yung logic na gagawin ko? and regarding din po sana sa image upload 1 week na kasi hindi ko pa rin magawa gawa eh thanks sana matulungan niyo po ako.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

guys pahelp nmn po ! meron po akong 6buttons na pang upload ng file..eton po yung code ko para sa pang upload
eto po yung una
Code:
if(isset($_FILES['q30_barangayClearance'])){
    $errors= array();
// foreach($_FILES['q30_barangayClearance']['tmp_name'] as $key => $tmp_name ){
    $file_name = $_FILES['q30_barangayClearance']['name'];
    $file_size =$_FILES['q30_barangayClearance']['size'];
    $file_tmp =$_FILES['q30_barangayClearance']['tmp_name'];
    $file_type=$_FILES['q30_barangayClearance']['type'];
	$date=date("Y");	
	$file_ext = explode('.',$file_name);
	$file_ext = end($file_ext);
    // if($file_size > 2097152){
        // $errors[]='File size must be less than 2 MB';
    // }       
    $desired_dir="uploaded/$date/";
    if(empty($errors)==true){
        if(is_dir($desired_dir)==false){
            mkdir("$desired_dir", 0700);
			// Create directory if it does not exist
        }
        if(is_dir("$desired_dir".$file_name)==false){
          move_uploaded_file($file_tmp,"$desired_dir"."BrgyClr".$mem_ID.'.'.$file_ext);
		  
        }else{                                  //rename the file if another one exist
          rename($desired_dir,$desired_dir.$file_name.time().$file_ext);/* 
           $desired_dir="$desired_dir".$file_name.time();
           rename($file_tmp,$desired_dir) ;           */
		   
        }
        mysqli_query($conn,"INSERT into documents (`id`,`mem_ID`,`name`,`type`,`size`,`year`,`docType`,`path`) 
            VALUES('','$mem_ID','$file_name','$file_type','$file_size','$date','Barangay Clearance','$desired_dir')") or die(mysqli_error($conn));          
    }else{
            print_r($errors);
    }
 }
if(empty($error)){
    echo "Success";
}

then change ko lang name ng $_FILES[] para sa 5 pang buttong na pang upload
pero kapag lahat ng buttons ng upload ay may selected image wala syang macopy pero pag isa lang selected na image sa isang button ok nmn po sya :/:upset::upset::upset:

ANY HELP!PLS
patingin nga ng form mo sir yung may upload na function..ty
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

good eve po ulit. grabe, hirap na ko.. hahahaha..XD

bale gumawa po ako ng php file na gumagawa ng another php file,
ito po yung code nung creator:

if (isset($_POST["Submit"])) {
$name=$_POST['name'];
$string = '<?php
echo "'. $_POST["message"]. '";

?>
';
$fp = fopen("$name.php", "w");

fwrite($fp, $string);

fclose($fp);

}


pero nung natry ko na pong iupload sa ftp,
every time po na nagsusubmit ako, pag dating ko po sa mga files ko, wala naman pong nadagdag,
pero gumagana po sya pag gamit ko po is xampp.

Salamat po sa mga makakatulong.. Medyo sumakit na po kasi ulo ko eh,.Pasensya na po sa istorbo..^^
 
Back
Top Bottom