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

^ eto ung binago nya:

var myLatLng = {lat: <?php echo $lat; ?>, lng: <?php echo $lon; ?>};
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

HI sir ask lang po if may links kayo ng complete vids ng tutsplus? ung kung pano mag code ng CSS and pano mag web design basically? Gusto ko po kasi ulit mag aral eh. :)
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

HI sir ask lang po if may links kayo ng complete vids ng tutsplus? ung kung pano mag code ng CSS and pano mag web design basically? Gusto ko po kasi ulit mag aral eh. :)

sir may mga vids ako pero udemy galing. pm me kung gusto mo.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Quick solution,

Hi sir gumana sya kaso iisang marker lng po ang lumbas..
yun po yung problema ehh isang marker lang lumalabas..
eh kumporme sa dame ng rows ang dame ng marker kapg ngquery sya ng data sa database.
nsa labas kasi po ng PHP code and ng while loop yung script so di po sya mgiincrement ng data iisang data set lng po ang lalabas kya iisang marker lng po pano po kaya yun...?? salamt po sa tulong
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Hi sir gumana sya kaso iisang marker lng po ang lumbas..
yun po yung problema ehh isang marker lang lumalabas..
eh kumporme sa dame ng rows ang dame ng marker kapg ngquery sya ng data sa database.
nsa labas kasi po ng PHP code and ng while loop yung script so di po sya mgiincrement ng data iisang data set lng po ang lalabas kya iisang marker lng po pano po kaya yun...?? salamt po sa tulong

Kailangan din nakaloop yun marker mo pra gumana. Try mo experiment, try mo mag echo ng variables sa loob ng while loop mo. O subukan mo ito:

while($row = mysqli_fetch_array($query)){
$station = $row['STATION'];
$pei = $row['PEIS'];
$pga= $row['PGA'];
$pgv= $row['PGV'];
$lat = $row['LAT'];
$lon = $row['LON'];

echo'<pre>'.print_r($row).'</pre>';
}

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

Kailangan din nakaloop yun marker mo pra gumana. Try mo experiment, try mo mag echo ng variables sa loob ng while loop mo. O subukan mo ito:

while($row = mysqli_fetch_array($query)){
$station = $row['STATION'];
$pei = $row['PEIS'];
$pga= $row['PGA'];
$pgv= $row['PGV'];
$lat = $row['LAT'];
$lon = $row['LON'];

echo'<pre>'.print_r($row).'</pre>';
}

Ano output?



Hi sir ang out put 1

View attachment 277986
 

Attachments

  • webpage.png
    webpage.png
    163 KB · Views: 14
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Bago ba ako mag tuto ng jquery kaylangan marunong muna ako mag javascript?
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Bago ba ako mag tuto ng jquery kaylangan marunong muna ako mag javascript?


Yup! Javascript muna bago Jquery. jQuery is the most popular JavaScript library.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Yup! Javascript muna bago Jquery. jQuery is the most popular JavaScript library.

... and the most abused at the same time.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Bitnami Wordpress + XAMPP sakin localhost ko para sa staging ng website.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

sir need q po ng link para sa gagamitin q bbcode editor with file attachment!!. baka po meron kayo alam n link na pde q pgkuhanan!! salamat po! :)
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Pano po mag send ng sms sa PHP through gsm sa localhost server? Badly needed lang po.
TIA.
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

pa help nmn guys hnd ko lang mapagana yun holidays . dapat excluded sya. thnks

<?php
$initialDate = '2016-11-14 08:00:00'; //start date and time in YMD format
$finalDate = '2016-11-18 18:00:00'; //end date and time in YMD format
$holiday = array('2016-11-15','2016-11-15'); //holidays as array
$noofholiday = sizeof($holiday); //no of total holidays

//create all required date time objects
$firstdate = DateTime::createFromFormat('Y-m-d H:i:s',$initialDate);
$lastdate = DateTime::createFromFormat('Y-m-d H:i:s',$finalDate);
if($lastdate > $firstdate)
{
$first = $firstdate->format('Y-m-d');
$first = DateTime::createFromFormat('Y-m-d H:i:s',$first." 00:00:00" );
$last = $lastdate->format('Y-m-d');
$last = DateTime::createFromFormat('Y-m-d H:i:s',$last." 23:59:59" );
$workhours = 0; //working hours

for ($i = $first;$i<=$last;$i->modify('+1 day') )
{
$holiday = false;
for($k=0;$k<$noofholiday;$k++) //excluding holidays
{
if($i == $holiday[$k])
{
$holiday = true;
break;
} }
$day = $i->format('l');
if($day === 'Saturday' || $day === 'Sunday') //excluding saturday, sunday
$holiday = true;

if(!$holiday)
{
$ii = $i ->format('Y-m-d');
$f = $firstdate->format('Y-m-d');
$l = $lastdate->format('Y-m-d');
if($l ==$f )
$workhours +=sameday($firstdate,$lastdate);
else if( $ii===$f)
$workhours +=firstday($firstdate);
else if ($l ===$ii)
$workhours +=lastday($lastdate);
else
$workhours +=8;
}
}

echo $workhours; //echo the hours
}
else
echo "lastdate less than first date";

function sameday($firstdate,$lastdate)
{
$fmin = $firstdate->format('i');
$fhour = $firstdate->format('H');
$lmin = $lastdate->format('i');
$lhour = $lastdate->format('H');
if($fhour >=12 && $fhour <14)
$fhour = 14;
if($fhour <8)
$fhour =8;
if($fhour >=18)
$fhour =18;
if($lhour<8)
$lhour=8;
if($lhour>=12 && $lhour<14)
$lhour = 14;
if($lhour>=18)
$lhour = 18;
if($lmin == 0)
$min = ((60-$fmin)/60)-1;
else
$min = ($lmin-$fmin)/60;
return $lhour-$fhour + $min;
}

function firstday($firstdate) //calculation of hours of first day
{
$stmin = $firstdate->format('i');
$sthour = $firstdate->format('H');
if($sthour<8) //time before morning 8
$lochour = 8;
else if($sthour>18)
$lochour = 0;
else if($sthour >=12 && $sthour<14)
$lochour = 4;
else
{
$lochour = 18-$sthour;
if($sthour<=14)
$lochour-=2;
if($stmin == 0)
$locmin =0;
else
$locmin = 1-( (60-$stmin)/60); //in hours
$lochour -= $locmin;
}
return $lochour;
}

function lastday($lastdate) //calculation of hours of last day
{
$stmin = $lastdate->format('i');
$sthour = $lastdate->format('H');
if($sthour>=18) //time after 18
$lochour = 8;
else if($sthour<8) //time before morning 8
$lochour = 0;
else if($sthour >=12 && $sthour<14)
$lochour = 4;
else
{
$lochour = $sthour - 8;
$locmin = $stmin/60; //in hours
if($sthour>14)
$lochour-=2;
$lochour += $locmin;
}
return $lochour;
}
?>
 
Last edited:
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

Pa tambay ako TS aa :) hehe
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

hi mga sir,
patulong naman po pano solution sa Not Found

HTTP Error 404. The requested resource is not found.


pg irurun ko yung php files..beginner only
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

First explain ko muna mga table ko sa mysql:

table: stock_inventory
fields: stock_id (primary key), inventory_id (FK from supplies table), date_received, date_expired, type, price, stock_received, stock_left, no_days

table: supplies
fields: inventory_id (primary key), supply_name, description

table: dispense_supply
fields: dd_id (primary key), batch_id (FK from stock_inventory as stock_id), inventory_id (FK from supplies), quantity, price, date)

First task:
Paano ko po i-display sa datagridview pagnag-search ako sa textbox ng supplies either stock id or name ng supply sa stock_inventory at supplies na tables, need ko idisplay ang stock_id, inventory_id, supply_name, description, stock_left. (mysql query po)

2nd task: mag-dispense ng supply
bali babawasan ko yung stock left ng na-search ko na supply, may textbox ako kung saan kukunin ang quantity ng i-dispense. so bale ma-uupdate ang stock_inventory na table, yung stock_left nya.... and at the same time mag-iinsert ako ng new record sa table na dispense_supply ng binawas ko na supply sa stock_inventory na table. (process at mysql query)
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

hi mga sir,
patulong naman po pano solution sa Not Found

HTTP Error 404. The requested resource is not found.


pg irurun ko yung php files..beginner only

paano mo ba ni ru-run yung php? make sure na may .php siya sa dulo ng file name pag isa-save mo na, then automatic na yun pag inopen mo sa google chrome or kung ano ang gamit mong browser
 
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2

paano mo ba ni ru-run yung php? make sure na may .php siya sa dulo ng file name pag isa-save mo na, then automatic na yun pag inopen mo sa google chrome or kung ano ang gamit mong browser

sir ganito po localhost/xammp/site/home.php

then nka run naman po yung xammp app

pg sa site po ayaw mg open laging error not found 404

thanks po
 
Back
Top Bottom