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

Guys paano ba ung halimbawa online exam. Ung mag set ka ng time let say 30 minutes after that mag lock ung program oh kaya may message mag sasabi time expired. Kailangan javascript dito.diba? Kasi sa php wala namang dynamic page refresh.

try mo moodle.. all you need is there.. ^^
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

hehe ako naman magtatanong guys..

hindi ko kasi makoha kung pano ko i associate to.. simple lang reading from a .txt file lang ang gagawin.

Code:
$file_dir = "pathtothefile/file.txt";
$open_this_file = fopen($file_dir, "r")
$str ="";

if($open_this_file){
    $i = 0;
    while(!feof($open_this_file)){
        $output_text = fgets($open_this_file);
        if(stristr($output_file, 'img')){
            $i++;
           //this line if merong img the line the dapat basahin din include dun sa external output
           $output_text = '<img src="pattoimage/"'.$i.''.$selected_extension.'" />';
        }
        
        if(stristr($output_file, '::'){
                
                //DITO YUNG QUESTION KO, IF YUNG FIRST LINE CONTAINS NG :: GAGAWIN NYANG <OL>YUNG TEXT AFTER NUN 
               //EXAMPLE NG LINES DUN SA TEXT FILE GANITO  
              /*-----------------------------------
                this is the first parent text
                ::
                     this is first line of the child text 
                     this is the second line of the child text 
                     this is the third line of the child text 
                     //DAPAT NAKA <LI></LI>PER LINE YUNG OUTPUT NYA PER LINE.
                :::
                this the second parent text
              -----------------------------------*/
             //THEN AFTER NUN CLOSE NYA </OL> PAG YUNG LINE MERONG :::
        }
        $str .= '<div style="padding: 4px 2px;">'.$output_text.'</div>';
    }

    fclose($open_this_file);
}

echo $str;
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

$(".ffthumb").click(function(){

$("#gall-pop").fadeIn(1000);
$("#gall-wrapper").fadeIn();
$("#gall-wrapper").click(function(){
$(this).hide();
$("#gall-pop").hide();
$("#gall-pop li").remove();
});

});

try mo daw ito, ilagay sa loob yung gall wrapper


di po gumana eh..
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

sir patulong naman po,

meron po ba kayo idea kung pano gagawin ung ganto,

gusto ko is ung naselect ko na student ay lalagyan ko siya ng grade sa 1st grading,
upon save po sana is, hindi siya mag rereload para makuha ko ulet ung ID nun student na lalagyan ko pa ng grade, kumbaga my button pa po ako na ADD ANOTHER!
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Sir use ajax to achieve yung hindi mag re2load upon save,

Personally I prefer the ajax via jquery ms madali eh.. hehehe.. tapos ung "add another" naman achievable din po via jquery but you can also do this via javscript :)
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Hello..
Ask ko lang if you can help me create a mysql table.

In my form, i have fname, lname, gender (na radio button M or F), email, School (na ilalagay nila school nila sa textbox) then plan of enrollment (Radio Button.)

help po please, di ko kasi maconnect si coffe cup webform builder through mysql, gamit po ako xampp.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Tulong naman po mga master. Please. Almost done na po ako sa project namin, patulong naman po sa paglalagay ng jquery/javascript photo slider sa html na ginawa ko.
Palagay po sa ibabaw ng About Skills and Training Institute sa may index.html
:pray: :pray: :pray:
 

Attachments

  • Skills and Training Institute.rar
    733.6 KB · Views: 12
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

ASK Q LNG PO SANA QNG PANO MG-DISABLE/HIDE NG LINK in JAVASCRIPT?

scenario:
kpg click q po ung link1 m-ddisable po ung link2. then kelangan dn po na 1 time lng ung clicking.. pro bago po xa m-disable, gus2 q po muna sna mg-alert.

e2 po ung alert q..nid q po pasok d2 ung mddisable ung link.
**********************
function reject()
{
if(confirm('Do you want to Reject?')==true)
{
return true;
}
else
{
return false;
}
}

hELLLLLPPPPP poooooo:weep:
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Hello..
Ask ko lang if you can help me create a mysql table.

In my form, i have fname, lname, gender (na radio button M or F), email, School (na ilalagay nila school nila sa textbox) then plan of enrollment (Radio Button.)

help po please, di ko kasi maconnect si coffe cup webform builder through mysql, gamit po ako xampp.


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

Hello..
Ask ko lang if you can help me create a mysql table.

In my form, i have fname, lname, gender (na radio button M or F), email, School (na ilalagay nila school nila sa textbox) then plan of enrollment (Radio Button.)

help po please, di ko kasi maconnect si coffe cup webform builder through mysql, gamit po ako xampp.

Hi, hmm 2 ways para ma achieve ang gusto mo either through codes or through xammp admin.

here's the code. to create the table that you've said. you can save this as createdatabase.php
separate mo lang xa ng folder dun sa htdocs kasi isang beses mo lang i rurun tong code the to. otherwise
mag-eeror na xa kasi existing na yung database. then you can executet this line of codes like this, dun sa browser
http://localhost/foldername/createdatabase.php

Code:
<?php 
	//first connect ka muna dun sa host (mostly localhost) 
	//using the username and password
	$host_provider = "localhost";
	$host_username = "root"; //host username configuration
	$host_password = "mysql"; //host password configuration 
	
	
	$connection_string = mysql_connect($host_provider, $host_username, $host_password);
	if(!$connection_string){
		echo "Cannot connect with the host, Please check the connection configuration ". mysql_error();
	}else{
		if(mysql_query("CREATE DATABASE databasename", $connection_string)){						
			mysql_select_db("datbasename", $connection_string);	
			$create_table = "CREATE TABLE persons
			(
				id	int(4),
			    fname varchar(35),
				lname varchar(35),
				gender varchar(1),
				email varchar(35),
				school varchar(255),
				enrollmentplan varchar(255)
			)";
			
			//execute query
			if(mysql_query($create_table, $connection_string)){
                           echo "Database and its tabe has been successfully created";
                        }else{
                          echo "Failed to create database and its table";
                        }

			mysql_close($connection_string);
		}else{
			echo "Failed to create database";
			exit();
		}
	}
?>

Here's the second way. Through xammp admin

type mo sa browser: http://localhost
then navigate ka sa baba, hanapin mo phpmyadmin. after you click the link. meron ka makikita sa middle page the create database. Type mo yung name ng database, then click create. After nun type mo name ng table at kung ilang field meron ang table na yun. CLick mo ang go button. After nyan itytype mo yun mga fields na kailangan example yung fname, lname etc. then kung anung datatype yung example varchar, int ect at kung ilang possible bytes of character. Most importantly yung id which is the primary key ng data mo.
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Hi, hmm 2 ways para ma achieve ang gusto mo either through codes or through xammp admin.

here's the code. to create the table that you've said. you can save this as createdatabase.php
separate mo lang xa ng folder dun sa htdocs kasi isang beses mo lang i rurun tong code the to. otherwise
mag-eeror na xa kasi existing na yung database. then you can executet this line of codes like this, dun sa browser
http://localhost/foldername/createdatabase.php

Code:
<?php 
	//first connect ka muna dun sa host (mostly localhost) 
	//using the username and password
	$host_provider = "localhost";
	$host_username = "root"; //host username configuration
	$host_password = "mysql"; //host password configuration 
	
	
	$connection_string = mysql_connect($host_provider, $host_username, $host_password);
	if(!$connection_string){
		echo "Cannot connect with the host, Please check the connection configuration ". mysql_error();
	}else{
		if(mysql_query("CREATE DATABASE databasename", $connection_string)){						
			mysql_select_db("datbasename", $connection_string);	
			$create_table = "CREATE TABLE persons
			(
				id	int(4),
			    fname varchar(35),
				lname varchar(35),
				gender varchar(1),
				email varchar(35),
				school varchar(255),
				enrollmentplan varchar(255)
			)";
			
			//execute query
			if(mysql_query($create_table, $connection_string)){
                           echo "Database and its tabe has been successfully created";
                        }else{
                          echo "Failed to create database and its table";
                        }

			mysql_close($connection_string);
		}else{
			echo "Failed to create database";
			exit();
		}
	}
?>

Here's the second way. Through xammp admin

type mo sa browser: http://localhost
then navigate ka sa baba, hanapin mo phpmyadmin. after you click the link. meron ka makikita sa middle page the create database. Type mo yung name ng database, then click create. After nun type mo name ng table at kung ilang field meron ang table na yun. CLick mo ang go button. After nyan itytype mo yun mga fields na kailangan example yung fname, lname etc. then kung anung datatype yung example varchar, int ect at kung ilang possible bytes of character. Most importantly yung id which is the primary key ng data mo.
thank you. Try ko yung code mo.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

papano po yung checkboxes and radio button ko?
papano ko masasave yun choice sa database?

meron kasi akong 1 radio button for the gender. at meron din radio button na isa pa.
papano po ito?
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

sir anu ung porpose nang perl sa php para saan ung perl?:noidea:
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

sir anu ung porpose nang perl sa php para saan ung perl?:noidea:

I think PERL in here is not the full language it self. I think you are referring to PERL regular expressions? Ganito kasi kalimitan ginagamit nila sa PHP, kasi yong handling ng regular expressions ng PHP is same as PERL, and more likely naka base sa PERL, strong kasi at mas maganda ang regular expression handling ng PERL.

In PHP parang you refer to mga preg_match() functions and the like.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

papano po yung checkboxes and radio button ko?
papano ko masasave yun choice sa database?

meron kasi akong 1 radio button for the gender. at meron din radio button na isa pa.
papano po ito?

madali lang, yung name ng radio button mo po dapat isa lang
example

Code:
<input type="radio" name="gender" value="male">Male <br/>

<input type="radio" name="gender" vauue="female">Female<br />


tas dun sa submit ng button or after mag click ng submit or register 
-----------------------------------------

if(isset($_POST['submit'])){

  $gender = $_POST['gender']; //which is yung name dun sa radio button

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

Tulong naman po mga master. Please. Almost done na po ako sa project namin, patulong naman po sa paglalagay ng jquery/javascript photo slider sa html na ginawa ko.
Palagay po sa ibabaw ng About Skills and Training Institute sa may index.html
:pray: :pray: :pray:

Repost ko po. Patulong. T.T
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

B0ss pag nag log in ako gusto ko pag ka lag in ko ung data ng user ma seselect sa profile ma eecho lahat ng nilagay sa sign up pa zip naman example salamat
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

madali lang, yung name ng radio button mo po dapat isa lang
example

Code:
<input type="radio" name="gender" value="male">Male <br/>

<input type="radio" name="gender" vauue="female">Female<br />


tas dun sa submit ng button or after mag click ng submit or register 
-----------------------------------------

if(isset($_POST['submit'])){

  $gender = $_POST['gender']; //which is yung name dun sa radio button

}

Question..

Papano ko naman po ito maeedit yung checkbox and radio via php code??

<table border="1">

<?php
include("db.php");


$result=mysql_query("SELECT * FROM nyfdata");

while($test = mysql_fetch_array($result))
{
$id = $test['id'];
echo "<tr align='center'>";
echo"<td><font color='black'>" .$test['id']."</font></td>";
echo"<td><font color='black'>" .$test['fname']."</font></td>";
echo"<td><font color='black'>". $test['lname']. "</font></td>";
echo"<td><font color='black'>". $test['email']. "</font></td>";
echo"<td><font color='black'>". $test['contact']. "</font></td>";
echo"<td> <a href ='view.php?id=$id'>Edit</a>";
echo"<td> <a href ='del.php?id=$id'><center>Delete</center></a>";

echo "</tr>";
}
mysql_close($conn);
?>
</table>
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

mga bossing, patulong po sana. i got this code from the internet..newbie po kasi ako pagdating sa javascript.. :weep:

$("#fileUpload2").fileUpload({
'uploader': 'uploadify/uploader.swf',
'cancelImg': 'uploadify/cancel.png',
'script': 'uploadify/upload.php',
'folder': 'files',
'multi': true,
'buttonText': 'Select Files',
'checkScript': 'uploadify/check.php',
'displayData': 'speed',
'simUploadLimit': 1

});

gusto ko po sana yung value ng 'folder' ay nagbase sa value ng textbox

<input type="text" name="item_id" id="item_id" class="input" value="" size="20" tabindex="10" readonly="readonly">

nakuha ko na po yung pag upload po ng picture magcrecreate sa ng folder pagwala kaso lang dapat ikaw mag set sa name ng folder..yung gusto ko po sana ay magdepende yung ng folder sa item_id..
d ko po makuha eh.. i tried doing this

var g=document.getElementById['item_id'].val;

then tinawag ko dun sa
'folder':g,

ayaw po gumana..
:weep:

patulong naman po sana.. :weep:
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

patulong po ako ./ ayaw po mg input ng mga data s adatabase :(( patulong nmn po . pki ayos tong code po plss?
 

Attachments

  • thesis_bago.rar
    3 KB · Views: 4
Last edited:
Back
Top Bottom