Jump to content

mjahkoh

Members
  • Posts

    104
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

mjahkoh's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Kindly sort me in establishing the jquery i need to add new, delete row and save in this tabular form http://demos.krajee.com/builder-details/tabular-form Thanks folks
  2. OpenSSL Error messages 1 week and still cant download composer. the error generated is Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org Request to https://getcomposer.org/installer failed with errors: SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed. Failed to enable crypto. Failed to open stream: operation failed OS = Windows 7 using XAMPP. My php.ini has openssl.cafile=C:\xampp\php\openssl\cert.pem from the command line => $ php -r "print_r(openssl_get_cert_locations());" the reply is Array ( [default_cert_file] => f:\repo\winlibs_openssl_vc11_x86/cert.pem [default_cert_file_env] => SSL_CERT_FILE [default_cert_dir] => f:\repo\winlibs_openssl_vc11_x86/certs [default_cert_dir_env] => SSL_CERT_DIR [default_private_dir] => f:\repo\winlibs_openssl_vc11_x86/private [default_default_cert_area] => f:\repo\winlibs_openssl_vc11_x86 [ini_cafile] => C:\xampp\cert.pem [ini_capath] => ) their isnt f: drive where do i go from here. Please help
  3. the sql statement dont execute: what would be the problem? $sql = "UPDATE ".prefix("loanapplication")." SET firstname = :firstname, secondname = :secondname, surname = :surname, officialworkemail = :officialworkemail"; $sql.= " WHERE username=:username"; $sql.= " WHERE username=:username"; echo "$sql: $sql<br>"; //print_r($sql); $stmt = $database->connection->prepare($sql); $stmt->bindParam(':username',$session->username); $stmt->bindParam(':firstname',$firstname); $stmt->bindParam(':secondname',$secondname); $stmt->bindParam(':surname',$surname); $stmt->bindParam(':officialworkemail',$officialworkemail); $stmt->execute(); sql =UPDATE `emr_loanapplication` SET firstname = :firstname, secondname = :secondname, surname = :surname, officialworkemail = :officialworkemail WHERE username=:username
  4. where do i download a login script like this used here at phpfreaks
  5. I got a modal window which picks some variables from parent window. the user selects more options and then saves. this is supposed to relocate bat alas. the entire code is. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="profile_list.php_files/admin.css" type="text/css"> <link rel="stylesheet" href="profile_list.php_files/jquery_ui_zenphoto.css" type="text/css"> <title>Gallery admin: profile-profile</title> <script src="profile_list.php_files/jquery_003.js" type="text/javascript"></script> <script src="profile_list.php_files/jquery_ui_zenphoto.js" type="text/javascript"></script> <script src="profile_list.php_files/zenphoto.js" type="text/javascript"></script> <script> $(document).ready(function() { //setup new person dialog $('#setuppopup').dialog({ autoOpen: false, modal:true, //draggable: true, //resizable: true, title: "Add Season Profile", width: 600, zIndex: 1, height: 310 }); }); function Cancel() { $("#setuppopup").dialog("close"); return false; } function Save() { launchScripts("test.htm"); } function launchScripts(script, params) { window.location = script+'?'+params.join('&'); return false; } function newMenuSet() { $("#setuppopup").dialog("open"); } </script> </head> <body> <div id="main"> <br clear="all"><!-- needed so the nav sits correctly --> <div id="content"> <h1> </h1> <form action="profile_list.php?fname=Seasons" method="post" name="update" onsubmit="return confirmAction();"> <input id="Button3" type="button" value="Add Season Profile" onclick = "return newMenuSet()" /> <br clear="all"><br> <div class="bordered"> <div class="headline"> <strong>Edit the profile</strong> <select name="sno" style="" id="sno" size="1" onchange="window.location='?sno='+$('#sno').val()+'&fname=Seasons'+'&level_id=2011'"> <option value="417">Westlands</option> <option value="639">Zanzibar Safari Club</option> <option value="757">Zara Tanzania Adventures</option> </select> <select name="level_id" style="" id="level_id" size="1" onchange="window.location='?fname=Seasons&sno=544&level_id='+$('#level_id').val()"> <option value="2013">2013</option> <option value="2011" selected="selected">2011</option> <option value="2009">2009</option> </select> </div> </div> <br> <div class="body"> <div scrollleft="0" scrolltop="0" style="width: auto; min-height: 0px; height: 261.767px;" class="ui-dialog-content ui-widget-content" id="setuppopup"> <div style="z-index: 100; left: 40px; position: absolute; top: 64px">Supplier</div> <select name="snoid" style="left: 112px; position: absolute; top: 65px; z-index: 101;" id="snoid" size="1" onchange="window.location='?sno='+$('#sno').val()+'&fname=Seasons'+'&level_id=2011'"> <option value="417">Westlands</option> <option value="639">Zanzibar Safari Club</option> <option value="757">Zara Tanzania Adventures</option> </select> <div style="z-index: 102; left: 40px; position: absolute; top: 96px">Year</div> <select name="_id" style="left: 112px; position: absolute; top: 93px; z-index: 103;" id="_id" size="1" onchange="window.location='?fname=Seasons&sno=544&level_id='+$('#level_id').val()"> <option value="2013">2013</option> <option value="2012">2012</option> <option value="2011" selected="selected">2011</option> <option value="2009">2009</option> </select> <input id="Button1" value="Cancel" onclick="return Cancel()" style="left: 168px; position: absolute; top: 200px; z-index: 120; width: 56px;" type="button"> <input id="Button2" value="Save" onclick="return Save()" style="left: 115px; position: absolute; top: 200px; z-index: 121; width: 48px;" type="button"> </div> </form> </body> </html>
  6. I got a modal window which picks some variables from parent window. the user selects more options and then saves. this is supposed to relocate bat alas. the entire code is. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="profile_list.php_files/admin.css" type="text/css"> <link rel="stylesheet" href="profile_list.php_files/jquery_ui_zenphoto.css" type="text/css"> <title>Gallery admin: profile-profile</title> <script src="profile_list.php_files/jquery_003.js" type="text/javascript"></script> <script src="profile_list.php_files/jquery_ui_zenphoto.js" type="text/javascript"></script> <script src="profile_list.php_files/zenphoto.js" type="text/javascript"></script> <script> $(document).ready(function() { //setup new person dialog $('#setuppopup').dialog({ autoOpen: false, modal:true, //draggable: true, //resizable: true, title: "Add Season Profile", width: 600, zIndex: 1, height: 310 }); }); function Cancel() { $("#setuppopup").dialog("close"); return false; } function Save() { launchScripts("test.htm"); } function launchScripts(script, params) { window.location = script+'?'+params.join('&'); return false; } function newMenuSet() { $("#setuppopup").dialog("open"); } </script> </head> <body> <div id="main"> <br clear="all"><!-- needed so the nav sits correctly --> <div id="content"> <h1> </h1> <form action="profile_list.php?fname=Seasons" method="post" name="update" onsubmit="return confirmAction();"> <input id="Button3" type="button" value="Add Season Profile" onclick = "return newMenuSet()" /> <br clear="all"><br> <div class="bordered"> <div class="headline"> <strong>Edit the profile</strong> <select name="sno" style="" id="sno" size="1" onchange="window.location='?sno='+$('#sno').val()+'&fname=Seasons'+'&level_id=2011'"> <option value="417">Westlands</option> <option value="639">Zanzibar Safari Club</option> <option value="757">Zara Tanzania Adventures</option> </select> <select name="level_id" style="" id="level_id" size="1" onchange="window.location='?fname=Seasons&sno=544&level_id='+$('#level_id').val()"> <option value="2013">2013</option> <option value="2011" selected="selected">2011</option> <option value="2009">2009</option> </select> </div> </div> <br> <div class="body"> <div scrollleft="0" scrolltop="0" style="width: auto; min-height: 0px; height: 261.767px;" class="ui-dialog-content ui-widget-content" id="setuppopup"> <div style="z-index: 100; left: 40px; position: absolute; top: 64px">Supplier</div> <select name="snoid" style="left: 112px; position: absolute; top: 65px; z-index: 101;" id="snoid" size="1" onchange="window.location='?sno='+$('#sno').val()+'&fname=Seasons'+'&level_id=2011'"> <option value="417">Westlands</option> <option value="639">Zanzibar Safari Club</option> <option value="757">Zara Tanzania Adventures</option> </select> <div style="z-index: 102; left: 40px; position: absolute; top: 96px">Year</div> <select name="_id" style="left: 112px; position: absolute; top: 93px; z-index: 103;" id="_id" size="1" onchange="window.location='?fname=Seasons&sno=544&level_id='+$('#level_id').val()"> <option value="2013">2013</option> <option value="2012">2012</option> <option value="2011" selected="selected">2011</option> <option value="2009">2009</option> </select> <input id="Button1" value="Cancel" onclick="return Cancel()" style="left: 168px; position: absolute; top: 200px; z-index: 120; width: 56px;" type="button"> <input id="Button2" value="Save" onclick="return Save()" style="left: 115px; position: absolute; top: 200px; z-index: 121; width: 48px;" type="button"> </div> </form> </body> </html> regards
  7. <?PHP $edumenu = array( 0 => array ('title'=>'Home', 'link'=>'www.edukenya.com') ,'Chat' => array ('title'=>'Chat', 'link'=>'chat.php') ,'Forums' => array ('title'=>'Forums','link'=>'forum.php') ,'Gallery' => array ('title'=>'Gallery', 'link'=>'index.php') ,'Search' => array ('title'=>'Search', 'link'=>'search.php') ,'=>2' => array ( 'title'=>'Businesses' ,'link'=>'search.php?listing==>2&busstype_id=0' ,'busstype_id'=>array( 0=>'All Businesses' ,18=>'Booksellers & Stationers' ,12=>'Equipment & Furniture suppliers' ,13=>'Librarys' ,15=>'Printers' ,14=>'Publishers' ,17=>'Uniform Distributors' ) ) ,1 => array ( 'title'=>'Academic' ,'link'=>'search.php?listing=1' ,'busstype_id'=>array ( 0=>'All Academic institutions' ,1=>'Academy' ,"All Colleges and Universitys"=>"All Colleges and Universitys" ,3=>'Kindergaten' ,4=>'Nursery' ,5=>'Pre - unit' ,6=>'Primary' ,7=>'Polytechnic' ,8=>'Research Center' ,9=>'Secondary' ,10=>'Special Schools' ,22=>'100 Best Universities in Africa' ,23=>'100 Best Universities in Asia & Oceania' ,24=>'100 Best Universities in Europe' ,25=>'100 Best Universities in the world' ,26=>'100 best Universities in USA and Canada' ,27=>'100 Best Universties in Latin America' ,28=>'Affiliated Colleges' ,29=>'American Universities' ,30=>'Australian Universities' ,31=>'British Universities' ,32=>'Canadian Universities' ,33=>'COMESA Universities' ,34=>'Constituent Colleges of Public Universities' ,35=>'East African Universities' ,36=>'French Universities' ,37=>'German Universities' ,38=>'Indian Universities' ,39=>'Italian Universities' ,40=>'Kenyan Private Colleges' ,41=>'Kenyan Public Colleges' ,42=>'Russian Universities' ,43=>'South African Universities' ) ) ,'Events' => array ( 'title'=>'Events' ,'link'=>'search.php?listing=Events' ,'busstype_id'=>array ( 0=>'All Events' ,1=>'Athletics' ,2=>'Conferences, Symposium and Congress' ,3=>'Music and Drama' ,4=>'Road shows' ,5=>'Science and Agriculture' ,6=>'Sports' ) ) ,'Jobs' => array ( 'title'=>'Jobs' ,'link'=>'search.php?listing=Jobs' ,'busstype_id'=>array ( 0=>'All Jobs' ,1=>'Community Services' ,2=>'Tuition' ,3=>'Vacancies' ,4=>'Voluntary' ,5=>'Wanted' ) ) ,'Scenaries' => array( 'title'=>'Scenaries' ,'link'=>'search.php?listing=Scenaries' ,'busstype_id'=>array ( 0=>'All Scenaries' ,1=>'Dam' ,2=>'Game park' ,3=>'Grassland' ,4=>'Hill' ,5=>'Lake' ,6=>'Mountain' ,7=>'Ocean' ,8=>'Picnic site' ,9=>'Recreation Park' ) ) ) ; ?> <!-- Having the above array , how can i print after sorting on 'busstype_id' key holistically so I have for instance MainID: '1' : Name: 'Academy': busstype_id: 10 MainID: '=>2' : Name: 'Bookshops': busstype_id: 2 MainID: '=>2' : Name: 'Chemicals and Lab. Equipment': busstype_id: 0 ..... MainID: 'Jobs' : Name: 'Wanted': busstype_id: 5 -->
  8. It actually is. see below Regards; <?PHP $edumenu = array( 0 => array ('title'=>'Home', 'link'=>'www.edukenya.com') ,'Chat' => array ('title'=>'Chat', 'link'=>'chat.php') ,'Forums' => array ('title'=>'Forums','link'=>'forum.php') ,'Gallery' => array ('title'=>'Gallery', 'link'=>'index.php') ,'Search' => array ('title'=>'Search', 'link'=>'search.php') ,'=>2' => array ( 'title'=>'Businesses' ,'link'=>'search.php?listing==>2&busstype_id=0' ,'busstype_id'=>array( 0=>'All Businesses' ,18=>'Booksellers & Stationers' ,12=>'Equipment & Furniture suppliers' ,13=>'Librarys' ,15=>'Printers' ,14=>'Publishers' ,17=>'Uniform Distributors' ) ) ,1 => array ( 'title'=>'Academic' ,'link'=>'search.php?listing=1' ,'busstype_id'=>array ( 0=>'All Academic institutions' ,1=>'Academy' ,"All Colleges and Universitys"=>"All Colleges and Universitys" ,3=>'Kindergaten' ,4=>'Nursery' ,5=>'Pre - unit' ,6=>'Primary' ,7=>'Polytechnic' ,8=>'Research Center' ,9=>'Secondary' ,10=>'Special Schools' ,22=>'100 Best Universities in Africa' ,23=>'100 Best Universities in Asia & Oceania' ,24=>'100 Best Universities in Europe' ,25=>'100 Best Universities in the world' ,26=>'100 best Universities in USA and Canada' ,27=>'100 Best Universties in Latin America' ,28=>'Affiliated Colleges' ,29=>'American Universities' ,30=>'Australian Universities' ,31=>'British Universities' ,32=>'Canadian Universities' ,33=>'COMESA Universities' ,34=>'Constituent Colleges of Public Universities' ,35=>'East African Universities' ,36=>'French Universities' ,37=>'German Universities' ,38=>'Indian Universities' ,39=>'Italian Universities' ,40=>'Kenyan Private Colleges' ,41=>'Kenyan Public Colleges' ,42=>'Russian Universities' ,43=>'South African Universities' ) ) ,'Events' => array ( 'title'=>'Events' ,'link'=>'search.php?listing=Events' ,'busstype_id'=>array ( 0=>'All Events' ,1=>'Athletics' ,2=>'Conferences, Symposium and Congress' ,3=>'Music and Drama' ,4=>'Road shows' ,5=>'Science and Agriculture' ,6=>'Sports' ) ) ,'Jobs' => array ( 'title'=>'Jobs' ,'link'=>'search.php?listing=Jobs' ,'busstype_id'=>array ( 0=>'All Jobs' ,1=>'Community Services' ,2=>'Tuition' ,3=>'Vacancies' ,4=>'Voluntary' ,5=>'Wanted' ) ) ,'Scenaries' => array( 'title'=>'Scenaries' ,'link'=>'search.php?listing=Scenaries' ,'busstype_id'=>array ( 0=>'All Scenaries' ,1=>'Dam' ,2=>'Game park' ,3=>'Grassland' ,4=>'Hill' ,5=>'Lake' ,6=>'Mountain' ,7=>'Ocean' ,8=>'Picnic site' ,9=>'Recreation Park' ) ) ) ; ?> <!-- Having the above array , how can i print after sorting on 'busstype_id' key holistically so I have for instance MainID: '1' : Name: 'Academy': busstype_id: 10 MainID: '=>2' : Name: 'Bookshops': busstype_id: 2 MainID: '=>2' : Name: 'Chemicals and Lab. Equipment': busstype_id: 0 ..... MainID: 'Jobs' : Name: 'Wanted': busstype_id: 5 -->
  9. <?php /* Having the above array , how can i print after sorting on 'busstype_id' key holistically so I have for instance MainID: '1' : Name: 'Academy': busstype_id: 10 MainID: '=>2' : Name: 'Bookshops': busstype_id: 2 MainID: '=>2' : Name: 'Chemicals and Lab. Equipment': busstype_id: 0 ..... MainID: 'Jobs' : Name: 'Wanted': busstype_id: 5 */ $menu = array( '=>2' => array ( 'title'=>'Businesses' ,'link'=>'search.php?listing==>2&busstype_id=0' ,'busstype_id'=>array( 2=>'Bookshops' ,0=>'Chemicals and Lab. Equipment' ,4=>'Librarys' ,8=>'Uniform Distributors' ) ) ,1 => array ( 'title'=>'Academic' ,'link'=>'search.php?listing=1' ,'busstype_id'=>array ( 10=>'Academy' ,2=>'College' ,3=>'Kindergaten' ,10=>'Special Schools' ,11=>'University' ) ) ,'Jobs' => array ( 'title'=>'Jobs' ,'link'=>'search.php?listing=Jobs' ,'busstype_id'=>array ( 1=>'Community Services' ,2=>'Tuition' ,3=>'Vacancies' ,4=>'Voluntary' ,5=>'Wanted' ) ) ) ; ?> Having the above array , how can i print after sorting on 'busstype_id' key holistically so I have for instance MainID: '1' : Name: 'Academy': busstype_id: 10 MainID: '=>2' : Name: 'Bookshops': busstype_id: 2 MainID: '=>2' : Name: 'Chemicals and Lab. Equipment': busstype_id: 0 ..... MainID: 'Jobs' : Name: 'Wanted': busstype_id: 5
  10. Hi Folks. Why cant this work. Its necessary in some instances. How can i do it in 1 line. echo 'one'. if ($x=$y) 'add 2' . if ($a=$b) 'add 4'; Regards
  11. <?php $menu = array( '22' => array ( 'title'=>'Businesses' ,'busstype'=>array( 5=>'Printers' ,2=>'Bookshops' ,6=>'Publishers' ,8=>'Uniform Distributors' ) ) ,21 => array ( 'title'=>'Academic' ,'busstype'=>array ( 5=>'Academy' ,6=>'Primary' ,7=>'Polytechnic' ,11=>'University' ) ) ,'Events' => array ( 'title'=>'Events' ,'busstype'=>array ( 3=>'Music' ,4=>'Road shows' ,6=>'Sports' ,6=>'Yoga' ) ) ) ; I have a dynamically created menu as above. How would i sort on the 'busstype' homogenously and print it while maintaing the key. Results should be like <a href="search.php?listing=21&busstype=5">Academy</a> <a href="search.php?listing=22&busstype=2">Bookshops</a> ....... <a href="search.php?listing=Events&busstype=6">Yoga</a> ?>
  12. Can someone please help me design a three column header. css is foreign language. maybe on a proportion of 60%,20%,20% Regards
  13. I am new to netbeans and intend to debug php $POST search results. How would one go about this becoz currently only urls are allowed. Regard
  14. I can debug a php file but not a php webpage. Ive installed the Zend studio 8. Configurations are as follows; PHP Web Page Server debugger: Zend debugger Php Server: Local Zend Zerver Error generated when i test is 'a timeout occured when the debug server attempted to connect to the following hosts...' Please see attachment Please Help me Regards [attachment deleted by admin]
  15. I have been on this for a fortnight. Please help me. I now have Zendstudio+Zend Server Community working. I can debug php scripts but not "Debug Url" I get the error "the connection was refused when attempting to contact localhost" System Environment OS: Windows Default Workspace: C:\Documents and Settings\Administrator\Zend\workspaces\DefaultWorkspace7 Regards
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.