Manhag
-
Posts
27 -
Joined
-
Last visited
Posts posted by Manhag
-
-
hello
i found that script chained selection script
for countries states cities
http://www.sitepoint.com/forums/showthread.php?350291-Country-State-City-Dropdown-list
demo
http://www.manhag.net/salaty/missing-cities/
how can i store selection value to database ?
-
There are two options. You could have them sign-up for your site to store the data in a database or create cookie that will last a certain amount of time (say a year). The database would be perminent while the cookie would be temporary. You should read the tiles of HTML, CSS, Javascript, PHP, and MYSQL at www.w3schools.com then come back here and ask questions so you understand the basics. That is how I started learning. I just finished setting up a database and now my site can let people sign-up and delete their accounts. Pretty basic stuff, but super fun to learn!
thanks
already the user is registered in the site
how can i show the selection value ??
-
i stored the selection to database
but i want to show the selection for that user in the next time he enters the site
-
i want to make a nested select-boxes
i tried this tutorial and it works
www.blueicestudios.com/chained-select-boxes-using-php-mysql-ajax/
i want to store the result to database
so i the user enter the site again...he will find the selection he did
is it possible ?
thanks
-
thanks
i want to open multiple url in one file which make a certain operation "a facebook app"
but this operation takes much resources "memory & processor"
-
hello
i want to remotely open url using php file in cronjob
which one uses less memory ??
file_get_contents
iframe
PHP curl: CURLOPT_URL
??
or it doesn't matter ?
-
hello
i want to echo the date"day" of another timezone
i tried this but no change in day value
$day1 = date("Y-m-d H:i:s");
$day = new DateTime($day1, new DateTimeZone('Pacific/Fiji'));
echo "asd".$day->format('j')."asd";
-
line between
as i told u
i can make a line between 2 fixed points
but i can't make a line between center and a fixed point
here is the code
<!DOCTYPE html> <html> <head> <script src="http://maps.googleapis.com/maps/api/js?key=AIzaSyCwID2UsBJvwVKEMx_U53brmIC8EOLsBFo&sensor=false"> </script> <script> var bounds = new google.maps.LatLngBounds(); var length = markers.length; for (var i = 0; i < length; i++) { bounds.extend(new google.maps.LatLng(markers[i].lat, markers[i].lng)); map.fitBounds(bounds); } var x=new google.maps.LatLng(52.395715,4.888916); var stavanger=new google.maps.LatLng(markers[i].lat, markers[i].lng); var london=new google.maps.LatLng(51.508742,-0.120850); function initialize() { var mapProp = { center:x, zoom:4, mapTypeId:google.maps.MapTypeId.ROADMAP }; var map=new google.maps.Map(document.getElementById("googleMap"),mapProp); var myTrip=[stavanger,london]; var flightPath=new google.maps.Polyline({ path:myTrip, strokeColor:"#0000FF", strokeOpacity:0.9, strokeWeight:2 }); flightPath.setMap(map); } google.maps.event.addDomListener(window, 'load', initialize); </script> </head> <body> <div id="googleMap" style="width:500px;height:380px;"></div> </body> </html>
-
i already searched for it
i can make a line bet 2 points
but i can't make a line bet center and a fixed point
-
hello
i found this site
using google maps api
http://apps.qiblalocator.com/ext/embed/?address=usa
is there any suggestion
-
hello
to store a list in a column of a database table......is it a good idea ??
i want to export that xml file to database
http://www.islamicfinder.org/prayer_service.php?country=tunisia&city=qabis&state=&zipcode=&latitude=33.8833&longitude=10.1167&timezone=1.00&HanfiShafi=1&pmethod=1&fajrTwilight1=&fajrTwilight2=&ishaTwilight=0&ishaInterval=0&dhuhrInterval=1&maghribInterval=1&dayLight=0&simpleFormat=xml&monthly=1&month=
any help please ??
last question : reading data from xml is faster or from database ?
thanks
-
i goggled it and found this answer
it fixed my problem
may help any one
$string = preg_replace('/%u([0-9A-F]+)/', '$1;',$string); $string =html_entity_decode($string, ENT_COMPAT, 'UTF-8');
-
when i click submit
a message appears that it is done + data sent
%u 06 45 %u 06 35 %u 06 31
remove space bet characters
-
output before storing in database
-
i used this example to create a submit form to database
http://www.simonerodriguez.com/form-submit-in-ajax-script-per-principianti.html
input in arabic like مصر
the output appears like %u0645%u0635%u0631||%u0645%u0635%u0631||%u0628%u062F%u0648%u0646 %u0635%u0648%u06
how can i enable arabic in ajax
-
it shows time in gmt
i want it depends on machine time zone
did u get it ?
-
<?=date('H', ($min));?>;
it shows hours in gmt
i wana show it depends on machine time
any help ?
-
you need to use AJAX to be able to auto update it try this link http://stackoverflow...ipt-auto-update
thanks
could u please help me to use that code ??
-
hello
this code shows time differnce bet 2 times in minutes
$to_time = strtotime("2012-12-13 10:42:00"); $from_time = strtotime(now); echo round(abs($to_time - $from_time) / 60,2). " minute";
can it be auto updated ?
thanks
-
Then just manipulate your code to ensure the correct values are being placed in the option value:
<option value=\"$city_key\">...</option>
that was i did
echo "<option value=\"$city_key\" name=\"$city_key\" id=\"$city_key\" ";
so i wana to print $city_realname
and store in database $city_key
is it clear now ??
-
okay i read it agian
i edited my file to add this line
$location = $_POST['choose_city'];
the output is the selected value "cairo
but i want get the option attribute of the selected value "eg_cairo"
-
That's not your issue. See my last post for your issue.
You're not understanding how form submissions work.
okay i read it
is there any way to get the value i need?
-
now it stores $city_realname
but i wana store $city_key
$choose_city = array('0' => 'Please choose user group', 'eg_cairo' => 'cairo', 'eg_alex' => 'alex', 'eg_giza' => 'giza'); foreach($choose_city as $city_key=> $city_realname)
-
database doesnot updated with the selected city
it always "0"
how to store chained selection to mysql ?
in PHP Coding Help
Posted
i want to update mysql database using php "i think it is related to that forum"
chained selection is in javascript ...true
it is like html code>>>>> it is a part of code
i know how to store selection form values
but i failed to do it here
can u help me pleasse:)