Member Avatar

[ICODE]<html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>PicNet Table Filter Demo</title> <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.min.js" type="text/javascript"></script> <script type="text/javascript" src="picnet.table.filter.min.js"></script> <script type="text/javascript"> $(document).ready(function() { // Randomly Create Data Rows for (var i = 0; i < 50; i++) { var tr = $("<tr>" + "<td>Value" + Math.floor(Math.random() * 500) + "</td>" + "<td>" + Math.floor(Math.random() * 500) + " </td>" + "<td>" + (Math.random() > 0.5 ? "yes" : "no") + "</td>" + "<td>" + (Math.random() <= 0.333 ? "Item 1" : Math.random() > 0.5 ? "Item 2" : "Item 3") + "</td>" + "<td></td>" + "<td>" + parseInt(10 + Math.random() * 18) + "/" + …

Member Avatar
0
6
Member Avatar

Hi all, i wonder is it possible to display my images from database into table with 4 rows and 4 column? How can i do that? [CODE] $dbConn = mysqli_connect(DBSERVER, DBUSER, DBPASS, DBNAME) or die(mysqli_connect_error()); $sql = "select * from products"; $result = mysqli_query($dbConn, $sql) or die(mysqli_error($dbConn)); echo "<table border = '1'>"; while($row = mysqli_fetch_array($result)){ echo "<tr> <td><img src = 'images/" . $row['img'] . "' width = '200' alt = 'images'></td> </tr>"; } echo "</table>"; [/CODE]

Member Avatar
0
13
Member Avatar

Hi all, how do i compare one date with a list of array which consist of date? [ICODE] $date = 1990-12-3 $viewSchedule = "select * from schedule where id_user = '$idHairstlylist'"; $scheduleResult = mysqli_query($dbConn,$viewSchedule) or die(mysqli_error($dbConn)); while ($row1 = mysqli_fetch_array($scheduleResult)){ for($j=1;$j<=4;$j++){ $day[$j] = $row1['od_week'.$j]; if ($day[$j]!= $date){ echo 'hi'; } } [/ICODE] issit possible?

Member Avatar
0
5
Member Avatar

Hi all, by using form and post method in my program. It seems like my values of calendar are not able to insert into my database. I'm using jquery's datepicker and php to code. Please advice. Thanks

Member Avatar
0
8
Member Avatar

Hi. I have question regarding jquery. I would like to know is it possible to put two href into one therefore i can use two different css for one jquery? [CODE] <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.6.custom.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.6.custom.min.js"></script> <link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.css' /> <script type='text/javascript' src='../jquery/jquery-1.4.4.min.js'></script> <script type='text/javascript' src='../jquery/jquery-ui-1.8.6.custom.min.js'></script> <script type='text/javascript' src='../fullcalendar/fullcalendar.min.js'></script>[/CODE]

Member Avatar
0
6
Member Avatar

Hi all, Im currently working on a project that requires me to use jquery that i have never learnt before. I have downloaded the library online. How can i change the datepicker calendar to able to select multiple date at one time?

Member Avatar
0
2
Member Avatar

Hi! i have problems one query. $day_result has a value of 1 and 4 $sql3 = "Select * from Venue where idVenue != $day_result"; echo $sql3; if i use for loop for the above it will give the result below Select * from Venue where idVenue != 1 Select * from Venue where idVenue != 4 But this is the result i want to get: Select * from Venue where idVenue != 1 and idVenue != 4 how can i do it?

Member Avatar
0
5
Member Avatar

Hi! i have problems one query. $day_result has a value of 1 and 4 $sql3 = "Select * from Venue where idVenue != $day_result"; echo $sql3; if i use for loop for the above it will give the result below Select * from Venue where idVenue != 1 Select * from Venue where idVenue != 4 But this is the result i want to get: Select * from Venue where idVenue != 1 and idVenue != 4 wad loop or is there anyway to append? how can i do it?

Member Avatar
0
2
Member Avatar

Hi! is it possible to put a do while loop in a do while loop? For eg: DO{ CODES DO{ } while } while

Member Avatar
0
3
Member Avatar

Hi, i have problem regarding my code. I using alot of for loop and while loop. However, its been to be one of the while loop is hindering the first loop. Here my code. [CODE]Do{ //assigned day 1-9 for ($i=1; $i<=9; $i++){ echo '<option>Hi</option>'; if($assigned_venue['day0'.$i] != ''){ $assigned_date[$i] = $assigned_venue['day0'.$i]; //store assigned venue $venue_assigned[$i] = $assigned_venue['Venue_idVenue']; echo 'TESTA:'.$assigned_date[$i]; //echo '<br>'; //echo '<option>'.$venue_assigned[$i].'</option>'; //echo '<br>'; //assigning day 1-9 for ($k=1; $k<=9; $k++){ if($assigning_venue['day0'.$k] != '') { $assigning_date[$k] = $assigning_venue['day0'.$k]; //echo 'TESTC:'.$assigning_date[$k]; } if ($assigned_date[$i] == $assigning_date[$k]){ //echo 'Hello!'; do { $day_result = $assigned_day_array['Venue_idVenue']; echo $day_result; } while($assigned_day_array = mysqli_fetch_array($assigned_day_result)); //Check day …

Member Avatar
0
5
Member Avatar

Hi all, I having this error "Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\FYP\assign_venueTest.php on line 104" in my code. I cant find where does my code went wrong. Need you guys to help me out. [CODE] <?php $class_id = $_GET['id']; $HOST = 'localhost'; $USERNAME = 'root'; $PASSWORD = ''; $DB = 'sjas'; $link = mysqli_connect($HOST,$USERNAME,$PASSWORD,$DB); //get class $sql1 = "SELECT * FROM class,course WHERE idClass = $class_id and Course_idCourse = idCourse"; $result1 = mysqli_query($link,$sql1) or die(mysqli_error($link)); $row1 = mysqli_fetch_array($result1); //get students $sql2 = "SELECT * FROM member m,attendance a WHERE Class_idClass = $class_id and Member_idMember = idMember group by …

Member Avatar
0
4
Member Avatar

Hi all, I've errors in my code and i'm unsure whether the way i loop is in a correct method. Pls give me some guidance as it is very important to me. Thank! Error i got-> Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\FYP\assign_venueTest.php on line 118 [CODE]<?php $class_id = $_GET['id']; $HOST = 'localhost'; $USERNAME = 'root'; $PASSWORD = ''; $DB = 'sjas'; $link = mysqli_connect($HOST,$USERNAME,$PASSWORD,$DB); //get class $sql1 = "SELECT * FROM class,course WHERE idClass = $class_id and Course_idCourse = idCourse"; $result1 = mysqli_query($link,$sql1) or die(mysqli_error($link)); $row1 = mysqli_fetch_array($result1); //get students $sql2 = "SELECT * FROM …

Member Avatar
0
2
Member Avatar

[CODE]<link rel="STYLESHEET" type="text/css" href="styles/calendar.css"> <script language="JavaScript" src="javascript/simplecalendar.js" type="text/javascript"></script> <script type = 'text/javascript'> function insCell() { var x=document.getElementById('tr1').insertCell(1); var y=document.getElementById('tr2').insertCell(1); x.innerHTML= 'Day 1'; y.innerHTML='<input type = "text" name = "day"><img src="images/calendar.gif" name="imgCalendar" width="34" height="21" border="0" alt="">[COLOR="Red"]<a href="javascript: void(0);" onmouseover="if (timeoutId) clearTimeout(timeoutId);window.status='Show Calendar';return true;" onmouseout="if (timeoutDelay) calendarTimeout();window.status='';" onclick="g_Calendar.show(event,'frm.day',true,'yyyy-mm-dd'); return false;">[/COLOR]</a> '; } </script> <form id="form2" name="frm" method="post"> <table id = 'class'border='1' cellpadding='0' cellspacing='0'> <tr id = "tr1"> <th>Day</th> </tr> <tr id = "tr2"> <td> <input type="text" name="day" > <a href="javascript: void(0);" onmouseover="if (timeoutId) clearTimeout(timeoutId);window.status='Show Calendar';return true;" onmouseout="if (timeoutDelay) calendarTimeout();window.status='';" onclick="g_Calendar.show(event,'frm.day',true,'yyyy-mm-dd'); return false;"><img src="images/calendar.gif" name="imgCalendar" width="34" height="21" border="0" alt=""></a> </td> <input type="button" onclick="insCell()" …

Member Avatar
0
14
Member Avatar

Hi all, I'm down with a question. How do i add in a javascript function into another function? For eg. I have a button that enable me to create a new table on the page. when the table is created, there is input of text with calendar function. Is it possible to do so? Greatly appreciated for your help.

Member Avatar
0
10
Member Avatar

Hi all, i have difficulties in appending my sql query in php. Need some of your help to guide me along. Tell me where does my code goes who. Thanks. for ($i = 1; $i<=$dayc; $i++){ $daya[] = $_POST['day'.$i]; } $link = mysqli_connect($HOST,$USERNAME,$PASSWORD,$DB); $query = "UPDATE class SET Time_Slot_idTime_Slot = '$time',Course_idCourse = '$name',exam_date = '$exam',closing_date = '$closing',"; $query = $query."day$1 = '$daya[$1]'"; $query = $query."where idClass = ' ". $_GET['id'] ." '"; $echo $query; $result = mysqli_query($link,$query) or die(mysqli_error($link)); am i doing a correct way of append? there seems to be error..Thanks for your help

Member Avatar
0
6
Member Avatar

Hi. I want to know that is there any js that enable to create table in php? Such as <table border=1> <tr> <th>Name</th> </tr> <tr> <td>Gene</td> </tr> </table> I want something like just click upon a button, a new table above will shown on the page. Your help is greatly appreciated!

Member Avatar
0
2
Member Avatar

Hi all! I'm not a very good coder and i'm down here with a question for you all. Firstly, is it possible to code php within javascript? How? function confirmation() { var answer = confirm("Delete class?") if (answer){ window.location = "deleteClass.php?id=<?php echo $row['idClass'];?>"; } else{ alert("Delete unsuccessful!") } } i'm unable to fetch the data using get function on the other page. Your help is greatly appreciated.

Member Avatar
0
33

The End.