Jump to content

abhijitp

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

abhijitp's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Need help on the code below. I am trying to store a database field into a variable and viceversa. I also used the code generated by phpmyadmin by running a query but it does'nt help. $dbtable = Database::get_course_table('lp'); $rest = mysql_query("SELECT `prerequisite` FROM `lp` WHERE id = 2"); $display_line = '<td align="left" valign="top">' . '<div style="float: left; width: 35px; height: 22px;"><a href="'.$url.'">' .$image.'</a></div><a href="#">'. - ".$rest.'</a>'."</td>\n";
  2. Can you share any example. I really dont know how to use it.
  3. Hi, I am a newbie and have very little knowledge of PHP. I want to create dependencies on links using a checkbox (or any easier tool). Eg: Link 1 Link 2 Link 3 If the checkbox on link 2 is clicked, then the link 2 should not be active unless Link 1 in opened. Where as Link 3 should be accessible. I have written below code: /* Loop for No. of items/links */ $counter = 0; foreach ($item as $item_id => $details) { if($details['visible'] == 0) { continue; } $counter++; /*Checkbox created */ $typec = "Checkbox"; $namec = "formDoor[]"; $valuec = ""; $checking = "<form method=".'POST'.">". "<input type="."'".$typec."'"."name="."'".$namec."'"."value=".$valuec." />". "</form>"; /*Dependency condition */ $dsp_ord = ''; $aDoor = $_POST['formDoor']; $result = ""; if(is_null($aDoor)) { $result = '<td align="left" valign="top">'.'<a href="#" onClick="javascript:window.open('."'".$url."'". ",'mywindow1','width=1000, height=600'".');">'.$url_name . '</a>' . "</td>\n"; } else { $result = '<td align="left" valign="top">'.'<a href="#">'.$url_name . '</a>' . "</td>\n"; } With above code the checkbox only appears but doesnt do anything when the page is reloaded, the checkbox is also reloaded. It doesnt get saved.
  4. I am trying to search php files containing specific words thru windows search option but its not working. Can someone help me with this?
  5. I am have installed Dokeos LMS and trying to create Auto login feature thru cookies or Windows Login information. Can someone help with the code. I can share the PHP files used if required.
×
×
  • 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.