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

Ano po ba ang mgandang error checker para sa php? parang visual studio makikita mo agad error mo lalo na sa syntax.

notepad++ po kasi gamit ko walang pancheck ng code.. tska para magaan lang po.

kayo ano gamit nyo? share naman po.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Ano po ba ang mgandang error checker para sa php? parang visual studio makikita mo agad error mo lalo na sa syntax.

notepad++ po kasi gamit ko walang pancheck ng code.. tska para magaan lang po.

kayo ano gamit nyo? share naman po.

Try mo netbeans, there improving the support for PHP. Yon nga lang I don't know if you like. Parang mabigat.


I'm using gedit as my text editor (native Ubuntu (Gnome Shell). Nice naman cya. I used snippet at function completion para mapadali yong coding ko.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

DreamWeaver has extensive php tools too that can show errors as you type.. Pero im not using it, mabigat din.

Previously i'm using E-Texteditor, Textmate clone for windows, malupit siya, pero not free. Now im using Sublime Text 2, the best so far. Fully customizable with snippets, bundles, scripts. Hindi rin free, pero yung evaluation version niya is full version rin, meron lang nag screen na rare magpakita.
I have tried Gedit rin with Textmate modification. Its ok rin.. But i do feel more comfortable with Sublime.

Tas yung error reporting, via apache nalang. That is sa browser, refresh method. Hehe.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Try mo netbeans, there improving the support for PHP. Yon nga lang I don't know if you like. Parang mabigat.


I'm using gedit as my text editor (native Ubuntu (Gnome Shell). Nice naman cya. I used snippet at function completion para mapadali yong coding ko.

salamat sa pagsagot po.. Natry ko na po ata ung netbeans alam ko po mabigat nga po un. sobrang bagal ng pc ko dun. :lol: balak ko lang po sana halimbawa marami na akong code mahaba na.. to check syntax error lang para mas mabilis makita kung ano ang mali. Free lang po ba ang gedit editor sir? nachecheck din po ba ang inyong syntax error?


DreamWeaver has extensive php tools too that can show errors as you type.. Pero im not using it, mabigat din.

Previously i'm using E-Texteditor, Textmate clone for windows, malupit siya, pero not free. Now im using Sublime Text 2, the best so far. Fully customizable with snippets, bundles, scripts. Hindi rin free, pero yung evaluation version niya is full version rin, meron lang nag screen na rare magpakita.
I have tried Gedit rin with Textmate modification. Its ok rin.. But i do feel more comfortable with Sublime.

Tas yung error reporting, via apache nalang. That is sa browser, refresh method. Hehe.

Mukang magaganda po ang editor nyo pero ndi nga lang free.. ahaha.. wala pambili eh.. :lol: gusto ko lang talaga merong magchecheck ng syntax error.. bakit kasi ayaw gumawa ng notepad++ ng ganun.. :lol:
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

salamat sa pagsagot po.. Natry ko na po ata ung netbeans alam ko po mabigat nga po un. sobrang bagal ng pc ko dun. :lol: balak ko lang po sana halimbawa marami na akong code mahaba na.. to check syntax error lang para mas mabilis makita kung ano ang mali. Free lang po ba ang gedit editor sir? nachecheck din po ba ang inyong syntax error?




Mukang magaganda po ang editor nyo pero ndi nga lang free.. ahaha.. wala pambili eh.. :lol: gusto ko lang talaga merong magchecheck ng syntax error.. bakit kasi ayaw gumawa ng notepad++ ng ganun.. :lol:

bakit sir, di po kayo gumagamit ng mga cracked/portable apps?
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

pano po tanggalin yung duplicate?

e2 codings ko:

<?php
echo "<table id=\"rooms\">";
echo "<tr><th></th><th>ROOMS</th><th>CAPACITY</th><th>RATES</th></tr>";
$tcount = 0;
$t = mysql_query("SELECT * FROM rooms WHERE id_faci ='$id'");
while ($trow = mysql_fetch_array($t)){
$id_room = $trow['id'];
$name = $trow['name'];
$succ = $trow['succ'];
$info = $trow['info'];




$u = mysql_query("SELECT * FROM room_capacity where id_room = '$id_room'");
while ($urow = mysql_fetch_array($u)){
$capacity = $urow['capacity'];


$v = mysql_query("SELECT * FROM room_price where id_room = '$id_room'");
while ($vrow = mysql_fetch_array($v)){
$rate = $vrow['rate'];
$time = $vrow['id_time'];

if($time==1){
$title_time = "(8hrs. Daytime)";
}

else {
$title_time = "(8hrs. Nightime)";
}




echo "<tr><td></td><td>" . $name . "</td><td>" . $capacity ."</td><td> Php" . " " . number_format($rate) . $title_time . "</td></tr>";
echo "<tr><td></td><td>". $succ . "</td><td>" . $info . "</td><tr>";


}

}
}



echo "</table>";
?>
 

Attachments

  • duplicate.JPG
    duplicate.JPG
    69.9 KB · Views: 11
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

@Hitman

yung sublime text sir, pag mali ang syntax, nagiiba ng color yung text. Pero hindi siya nagpapakita ng error kung aling syntax ng mali, magiiba lang ng color yung mga affected area ng code.

Actually parang good as free rin siya. Meron lang nagpapakitang nag screen pag yung free version ang kunin mo. Pero bihira lang, arround 5 hours or so.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

may ask poh ako paano poh ba gumana ng oval na textbox ??
yung madaling code lang mga sir
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

mga sir patulong naman kung papano gumawa ng page Number sa web page. example is yung parang page number dito sa symbianize
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

question po. new lng po ako sa php panu po pa fix ung ganitong prob?
Wampserver po gamit ko pag click ko po ng myPhpadmin ganto po ang lumabas


The mysqli extension is missing. Please check your PHP configuration. <a href="Documentation.html#faqmysql" target="documentation"><img class="icon" src="./themes/pmahomme/img/b_help.png" width="11" height="11" alt="Documentation" title="Documentation" /></a>
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

may ask poh ako paano poh ba gumana ng oval na textbox ??
yung madaling code lang mga sir

rounded ba ung gusto mo? gamitan mo ng border-radius :thumbsup:
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

question po. new lng po ako sa php panu po pa fix ung ganitong prob?
Wampserver po gamit ko pag click ko po ng myPhpadmin ganto po ang lumabas


The mysqli extension is missing. Please check your PHP configuration. <a href="Documentation.html#faqmysql" target="documentation"><img class="icon" src="./themes/pmahomme/img/b_help.png" width="11" height="11" alt="Documentation" title="Documentation" /></a>


enable mo yong mysqli extension ng php. sa php.ini.

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

question po. new lng po ako sa php panu po pa fix ung ganitong prob?
Wampserver po gamit ko pag click ko po ng myPhpadmin ganto po ang lumabas


The mysqli extension is missing. Please check your PHP configuration. <a href="Documentation.html#faqmysql" target="documentation"><img class="icon" src="./themes/pmahomme/img/b_help.png" width="11" height="11" alt="Documentation" title="Documentation" /></a>

enable mo yong mysqli extension ng php. sa php.ini.

uncomment extension mysqli

this... or download the lastest wampserver installer, alam ko by default, naka-enable na un...
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

To add:

which is which MySQL or MySQLi?

Both were the same, they were pdo both to link your PHP scripts to mysql database server.
Either one can be used. But to the extent there were many benefits ang MySQLi compared to MySQL. If I'm not mistaken, MySQLi supports both procedural and OOP while MySQL only procedural. MySQLi uses the native library from MySQL so this is more like database programming within the database server. Faster and better coding.

For comparison

http://www.php.net/manual/en/mysqlinfo.api.choosing.php
 
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
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

To add:

which is which MySQL or MySQLi?

Both were the same, they were pdo both to link your PHP scripts to mysql database server.
Either one can be used. But to the extent there were many benefits ang MySQLi compared to MySQL. If I'm not mistaken, MySQLi supports both procedural and OOP while MySQL only procedural. MySQLi uses the native library from MySQL so this is more like database programming within the database server. Faster and better coding.

For comparison

http://www.php.net/manual/en/mysqlinfo.api.choosing.php


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:
 
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

Code:
	<?php
		$backupfilename = 'sample_file_name';	//dump filename
		if(isset($_POST['submitted']))
		{
			function backup_tables($host,$user,$pass,$name,$backupfilename,$tables = '*')
			{
				
				$link = mysql_connect($host,$user,$pass,$backupfilename);
				mysql_select_db($name,$link);

				if($tables == '*')
				{
					$tables = array();
					$result = mysql_query('SHOW TABLES');
					while($row = mysql_fetch_row($result))
					{
						$tables[] = $row[0];
					}
				}
				else
				{
					$tables = is_array($tables) ? $tables : explode(',',$tables);
				}
				$return='';
				
				foreach($tables as $table)
				{
					$result = mysql_query('SELECT * FROM '.$table);
					$num_fields = mysql_num_fields($result);
					
					$return.= 'DROP TABLE '.$table.';';
					$row2 = mysql_fetch_row(mysql_query('SHOW CREATE TABLE '.$table));
					$return.= "\n\n".$row2[1].";\n\n";
					
					for ($i = 0; $i < $num_fields; $i++) 
					{
						while($row = mysql_fetch_row($result))
						{
							$return.= 'INSERT INTO '.$table.' VALUES(';
							for($j=0; $j<$num_fields; $j++) 
							{
								$row[$j] = addslashes($row[$j]);
								$row[$j] = preg_replace("#\n#","\\n",$row[$j]);
								if (isset($row[$j])) { $return.= '"'.$row[$j].'"' ; } else { $return.= '""'; }
								if ($j<($num_fields-1)) { $return.= ','; }
							}
							$return.= ");\n";
						}
					}
					$return.="\n\n\n";
				}
				
				$handle = fopen($backupfilename . '.sql','w+');
				fwrite($handle,$return);
				fclose($handle);
			}
			$datengayon=date('Y-m-d H:i:s');
			$backup_user=$_SESSION['user'];
			$backup_directory=$backupfilename . '.sql';
			$q="insert into backuplog (backup_date, backup_user, backup_directory) values ('$datengayon','$backup_user', '$backup_directory')";
			$r=mysqli_query($dbc, $q);
			
			backup_tables(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME,$backupfilename);		// supply the corresponding database credentials here
			
			echo '<fieldset style="border: 2px solid #06c; width: 400px;">';
			echo '<legend style="display: block; font: 16px Arial, Helvetica; font-weight: bold; color: #06c;">Database back-up status</legend>';
			echo '<span style="display: block; font: 12px Arial, Helvetica; color: #f33; margin-left: 20px;">';
				if($r)
				{
					echo 'Back-up process successful!';
				}
				else
				{
					echo 'Back-up process failed!';
				}
			echo '</span>';
			echo '</fieldset>';
		}
	?>

check this code here... I'm using this one to dump my sql databases
 
Back
Top Bottom