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 tanong ko lang kung pano mag export ng database using php na di gumagamit ng php myadmin. ung datadump kasi di ko makita kung saan nya nilalagay ung nadudump eh. T_T


Try using mysqldump with passthru or system()

then the output would be in the location you set in your mysqldump command.

Code:
<?php

$command = "mysqldump --opt -h localhost -u root --password=password db_name > backup-file.sql";

passthru($command);

?>
I haven't tried this with mySQL.

Then I guess the backup-file.sql will be located same sa php file mo.
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

sana matutunan ko ung MySQLi na yan.. :lol:

sir my gusto akong matutunan, pero hindi ko po makita sa google kasi ndi ko alam paano ko sya hahanapin kasi hindi ko sya maexplain. :upset:

Paano po ba ung paggawa ng mga button na BOLD, ITALIC, HREF LINK, UNDERLINE ung mga nakikita nating toolbar tulad dito sa symbianize kapag nagpopost tau..

yung pwede ibahin ang kulay ng text, button na wrap.. mga ganun po ba.. paturo naman po baka alam nyo po.. gusto ko po kasi makagawa ng pwede magedit ng ganun sa mga site na gagawin ko.

:thanks: po in advance sir.. :salute:

para na din sa mga baguhang tulad ko.. :thumbsup:

You mean ganito wysiwyg editor?

Try this one sir :D

http://www.tinymce.com/tryit/full.php

http://www.tinymce.com/download/download.php
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Mga ka symb pa help naman dito sa code na na DL ko sa net.
Eto po yung link
http://www.mediafire.com/?eip1dps4o8ji6eq
Pa help naman po dito sa mga error
http://i1052.photobucket.com/albums/s443/sktxkudos/register.png
http://i1052.photobucket.com/albums/s443/sktxkudos/login.png
http://i1052.photobucket.com/albums/s443/sktxkudos/admin.png
Note: Newbie lang po ako sa PHP/MySQL kya po dinownload ko yung codes sa net selfstudy lang po kasi :]]
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Mga ka symb pa help naman dito sa code na na DL ko sa net.
Eto po yung link
http://www.mediafire.com/?eip1dps4o8ji6eq
Pa help naman po dito sa mga error
http://i1052.photobucket.com/albums/s443/sktxkudos/register.png
http://i1052.photobucket.com/albums/s443/sktxkudos/login.png
http://i1052.photobucket.com/albums/s443/sktxkudos/admin.png
Note: Newbie lang po ako sa PHP/MySQL kya po dinownload ko yung codes sa net selfstudy lang po kasi :]]


Try putting isset.

if(isset($_POST) && $_POST['doRegister'] == 'Register')

::Make your coding consistent lalo na sa indentation. :D
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Try putting isset.

if(isset($_POST) && $_POST['doRegister'] == 'Register')

::Make your coding consistent lalo na sa indentation. :D
Ano po ba yung reason kung bakit may undefined index tapos yung variable e.g. Notice: Undefined index: doRegister in C:\xampp\htdocs\e\r\register.php on line 21
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Ano po ba yung reason kung bakit may undefined index tapos yung variable e.g. Notice: Undefined index: doRegister in C:\xampp\htdocs\e\r\register.php on line 21

ivalidate mo kung nakaset yung value nung text sa form

<input type=text name="txtName"/>

if(isset($_POST['txtName'])) {
echo "success";
} else {
echo "Please make sure that everything has values!";
}
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Sino po nakakaalam paano ung reset ng id sa mysql gamit ang php?
ung halimbawa meron kang delete all na button sa website tapos dedelete mo ng laman ng table na un.

tapos marereset na ung id nya.. kasi ndi narereset ung id ng sa akin..

kailangan ko pa gamitin ung empty sa phpmyadmin talaga.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Ano po ba yung reason kung bakit may undefined index tapos yung variable e.g. Notice: Undefined index: doRegister in C:\xampp\htdocs\e\r\register.php on line 21

1. If yong error_reporting mo sa PHP shows all errors (E_ALL) or notices (E_NOTICE). Mag didisplay to.
2. If you are accessing a key within an array in which yong key don't exists.

Code:
    $data = array(
        "key1"    => "value1",
        "key2"    => "value2"
    );
    
    echo $data["key3"];
Mag notice error ka nito. Read error levels in PHP here
http://www.php.net/manual/en/errorfunc.constants.php

3. To fix this one, you may add validation if key exists or if the array exists.

Code:
    $data = array(
        "key1"    => "value1",
        "key2"    => "value2"
    );
    
    if (isset($data) OR isset($data["key3"]) OR array_key_exists("key3", $data))
    {
        echo "No notice will be displayed if you will use $data["key3"]";
    }
    else
    {
        echo "Notice undefine index if you will use $data["key3"]...";
    }

4. If you use E_NOTICE you might have notice errors if you invoke this way

echo $data[key];

use echo $data["key"]; or echo $data['key']; instead. This is a good PHP practise.
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Sino po nakakaalam paano ung reset ng id sa mysql gamit ang php?
ung halimbawa meron kang delete all na button sa website tapos dedelete mo ng laman ng table na un.

tapos marereset na ung id nya.. kasi ndi narereset ung id ng sa akin..

kailangan ko pa gamitin ung empty sa phpmyadmin talaga.

imbes na delete query, truncate ang gamitin mo

syntax

TRUNCATE TABLE <table name>
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

imbes na delete query, truncate ang gamitin mo

syntax

TRUNCATE TABLE <table name>

ganito po ba?

$deleteall = mysql_query("TRUNCATE TABLE table1") or die (mysql_error());
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

yep, subukan mo yan gawin sa isang table, afterwards mag-insert ka ng panibagong values, at kapag bumalik sa 1 yung primary key mo or yung field na autonumber, it means gumana yan code mo
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

1. If yong error_reporting mo sa PHP shows all errors (E_ALL) or notices (E_NOTICE). Mag didisplay to.
2. If you are accessing a key within an array in which yong key don't exists.

Code:
    $data = array(
        "key1"    => "value1",
        "key2"    => "value2"
    );
    
    echo $data["key3"];
Mag notice error ka nito. Read error levels in PHP here
http://www.php.net/manual/en/errorfunc.constants.php

3. To fix this one, you may add validation if key exists or if the array exists.

Code:
    $data = array(
        "key1"    => "value1",
        "key2"    => "value2"
    );
    
    if (isset($data) OR isset($data["key3"]) OR array_key_exists("key3", $data))
    {
        echo "No notice will be displayed if you will use $data["key3"]";
    }
    else
    {
        echo "Notice undefine index if you will use $data["key3"]...";
    }

4. If you use E_NOTICE you might have notice errors if you invoke this way

echo $data[key];

use echo $data["key"]; or echo $data['key']; instead. This is a good PHP practise.
Sir how can i reach you? andami ko pa po kasing tanong eh. Meron po ba kayong email or Fb account?
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Hahaha, you can post your questions in this thread or di kaya you can send me a PM here in symbianize. :D
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

pwede pa help dito?
madami akong tanong ..
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

sir, gagawa kc ako ng conversion calculator ask ko lng po sana kung papaano anu po ilalagay ko sa action,, parang ganito po.

<form action="---" method="get">

kc sa index na dn po sana ung conversion method ko pra hindi na po pupunta sa ibang page, gusto ko po sana na sa mismong page na dn po ung php code ko,
TIA po...

sir pede na dn po hinge ako ng registration form using php lng po wala pong jquery xaka po sample ng ung pede ng gumawa ng thread at comments kung meron po kau sir.. tnx po ulit..
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

sir, gagawa kc ako ng conversion calculator ask ko lng po sana kung papaano anu po ilalagay ko sa action,, parang ganito po.

<form action="---" method="get">

kc sa index na dn po sana ung conversion method ko pra hindi na po pupunta sa ibang page, gusto ko po sana na sa mismong page na dn po ung php code ko,
TIA po...

sir pede na dn po hinge ako ng registration form using php lng po wala pong jquery xaka po sample ng ung pede ng gumawa ng thread at comments kung meron po kau sir.. tnx po ulit..

tangalin mo nalang po yung action at get, by default kasi get method ang attribute..

<form>
</form>

ganan, at automatic na sa page din nayan magcoconvert
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

master pano po ba gumawa ng dropdown list sa PHP tas ma sasave xia sa DATABASE mo?
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

sir, gagawa kc ako ng conversion calculator ask ko lng po sana kung papaano anu po ilalagay ko sa action,, parang ganito po.

<form action="---" method="get">

kc sa index na dn po sana ung conversion method ko pra hindi na po pupunta sa ibang page, gusto ko po sana na sa mismong page na dn po ung php code ko,
TIA po...

sir pede na dn po hinge ako ng registration form using php lng po wala pong jquery xaka po sample ng ung pede ng gumawa ng thread at comments kung meron po kau sir.. tnx po ulit..


use

<form action="<?php echo $_SERVER["PHP_SELF"]: ?>"


PHP_SELF - PHP contant that refers to the script itself. If you name your file with sample.php, ang maprint jan is sample.php. Maging dynamic na cya. If papalitan mo yong sample.php to index.php no need to modify the action property. :D
 
Last edited:
Back
Top Bottom