Jump to content

GremlinP1R

Members
  • Posts

    62
  • Joined

  • Last visited

    Never

Everything posted by GremlinP1R

  1. help please! Any one if you can.
  2. Like the style, looks profetional! For the menu at the left try making it a bit larger and make it an inset to background... The gradient makes it hard to read at the bottum so thats not just redbullmarky.. but the rest looks good! keep it up!
  3. Well for a first site its not to bad ;D But if you ask me get some graphical stuff in and break the coulor a bit...
  4. Hi there all. Okay this site were created by me and my brother in feb 2006. Would like to get some feedback of what you guy's think or maybe any sugestions... Working hard to keep it up and running and to get new fetures up and running like the online shop ect. www.Phase1Racing.co.za Please let me know what you guy's think.
  5. Okay stupid ? but what exactly do you whant?
  6. HAHA okay then I have it backwards. $mem = mysql_querry("SELECT memberid FROM members_cat") or die(); $sql = mysql_querry("SELECT * FROM plateau_pros WHERE memberid LIKE ('$mem')")or die(); while ($row= mysql_fetch_array($sql)){$[color=red]field[/color] = $row['[color=red]field[/color]'];} Then your $[color=red]field[/color] would be your data that it would retreve. Rember it has to stay in the while {} to loop through every one.
  7. Well I know on my php server I'm running on my pc for ofline viewing I have to uses the "or die()" statement to get any errors.
  8. Uhmm looking for a script. But dont have money on this stage for a freelance job..... Got this thou looks nice and all but dont really know how to make it edit able.... [code]<html> <head> <style type="text/css"> .calendar {   font-family: arial, verdana, sans serif; } .calendar td {   border: 1px solid #eee; } .calendar-title {   text-align: center;   font-style: italic; } .calendar-day-title {   text-align: center;   font-size: small;   background: #ccc;   font-weight: bold; } .calendar-day, .calendar-outmonth-day {   height: 60px;   vertical-align: top;   text-align: center;   font-size: small;   padding: 0px; } .calendar-day-number {   text-align: right;   background: #ddd; } .calendar-content {   padding: 2px;   font-size: x-small; } .calendar-outmonth-day {   color: #666;   font-style: italic;   background: #ddd; } </style> </head> <body> <?php class Day {   function Day( $inmonth, $month, $day, $year )   { $this->{'month'} = $month; $this->{'day'} = $day; $this->{'year'} = $year; $this->{'inmonth'} = $inmonth; $this->{'number'} = $number; $this->{'text'} = "";   }   function get_day() { return $this->{'day'}; }   function get_month() { return $this->{'month'}; }   function get_year() { return $this->{'year'}; }   function get_inmonth() { return $this->{'inmonth'}; }   function get_number() { return $this->{'number'}; }   function get_text() { return $this->{'text'}; }   function set_text( $text ) { $this->{'text'} = $text; } } function setCalendarText( $days, $m, $d, $y, $text ) {   foreach( $days as $day )   { if ( $day->get_day() == $d && $day->get_month() == $m &&   $day->get_year() == $y )   $day->set_text( $text ); } } function get_last_month( $month, $year ) {   $lastmonth = $month - 1;   $lastyear = $year;   if ( $lastmonth < 0 ) { $lastmonth = 11; $lastyear -= 1; }   return array( $lastmonth, $lastyear ); } function get_next_month( $month, $year ) {   $nextmonth = $month + 1;   $nextyear = $year;   if ( $nextmonth > 11 ) { $nextmonth = 0; $nextyear += 1; }   return array( $nextmonth, $nextyear ); } function makeCalendarDays( $month, $year ) {   list( $nextmonth, $nextyear ) = get_next_month( $month, $year );   list( $lastmonth, $lastyear ) = get_last_month( $month, $year );   $dimlm = cal_days_in_month( CAL_GREGORIAN, $lastmonth, $lastyear );   $jd = cal_to_jd( CAL_GREGORIAN, $month + 1, 1, $year );   $day = jddayofweek( $jd );   $dim = cal_days_in_month( CAL_GREGORIAN, $month + 1, $year );   $days = array( );   for( $d = 0; $d < $day; $d++ ) $days []= new Day( 0, $lastmonth + 1, $dimlm - ( $day - $d ), $lastyear );   for( $d = 1; $d <= $dim; $d++ ) $days []= new Day( 1, $month + 1, $d, $year ); $left = ( ( floor( ( $day + $dim ) / 7 ) + 1 ) * 7 ) - ( $day + $dim ); for( $d = 0; $d < $left; $d++ )   $days []= new Day( 0, $nexmonth + 1, $d+1, $nextyear ); return $days; } $today = getdate(); $year = $today['year']; $month = $today['mon'] - 1; if ( $_GET['year'] ) $year = $_GET['year']; if ( $_GET['month'] ) $month = $_GET['month']; $days = makeCalendarDays( $month, $year ); setCalendarText( &$days, $month + 1, 5, $year, "Meet<br/>Jim" ); setCalendarText( &$days, $month + 1, 10, $year, "Meet<br/>Sue" ); $months = array(   "January", "February", "March", "April",   "May", "June", "July", "August",   "September", "October", "November", "December" ); $day_names = array( "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ); ?> <div style="width:600px;"> <table class="calendar" width="100%" cellspacing="0" cellpadding="1"> <tr><td colspan="7" class="calendar-title" width="13%"> <?php list( $nextmonth, $nextyear ) = get_next_month( $month, $year ); list( $lastmonth, $lastyear ) = get_last_month( $month, $year ); ?> <a href="cal.php?year=<?php echo($lastyear); ?>&month=<?php echo( $lastmonth ); ?>">&lt;&lt;</a> <?php echo( $months[$month] ); ?> <?php echo( $year ); ?> <a href="cal.php?year=<?php echo($nextyear); ?>&month=<?php echo( $nextmonth ); ?>">&gt;&gt;</a> </td></tr> <tr> <?php foreach( $day_names as $day ) { ?> <td class="calendar-day-title"><?php echo( $day ); ?></td> <?php } ?> </tr> <?php $p = 0; foreach( $days as $d ) { if ( $p == 0 ) echo ( "<tr>" ); $day_style = $d->get_inmonth() ? "calendar-day" : "calendar-outmonth-day"; ?> <td class="<?php echo( $day_style ); ?>" width="13%"> <div class="calendar-day-number"> <?php echo( $d->get_day() ); ?> </div> <div class="calendar-content"> <?php echo( $d->get_text() ); ?> </div> </td> <?php $p += 1; if ( $p == 7 ) $p = 0; } ?> </tr> </table> </div> <body> </html>[/code] If some one maybe can help me to make it posible to edit from a interface that would be great, then num 2 is solved. Number one I know thatyou get those pop-up calander's just don't know where.
  9. Just add some zero's in the front. It will not display on your page but will put it in order. The system looks first for all the one's and then go for all the two's ect. like 1 11 111 1111 2 22 222 2222 if you put the zeros in the front it will pick it up as 0001 0002 0011 0022 0111 0222 1111 2222
  10. Hi there I'm looking for a neet and nice calander script. 1) to select from a pop-up calandar to insert a new date. 2) a calander that takes up the whole window in date blocks that can move from one month to another using          arrow's and display the events. with an easy update and edit function. Can some one help please. Thanx
  11. That all depends on how you write your script if you dont tell it to show error if failed then it will not show anything.
  12. ever thought of a search function?? // Search database   $select = $_POST['select'];   $for = $_POST['for']; // Get all the data from the "Users" table   $Result = mysql_query("SELECT * FROM individuals WHERE $select LIKE ('%$for%') ORDER  BY Surname              ASC "); <form name='Search' method='post' action=''>                     <label>                     <select name='select'>                         <option value='Surname'>Surname</option>                         <option value='Names'>Full Names</option>                         <option value='idno'>ID Number</option>                         <option value='Email'>Email</option> <option value='Company'>Company</option>                     </select>                     </label>                       <td width='50' align='left' valign='top'></td>                       <td width='34' align='left' valign='top'><strong>For : </strong></td>                       <td width='144' align='left' valign='top'>                     <label>                       <input type='text' name='for' value='$for'>                     </label>                       </td>                       <td width='71' align='left' valign='top'>                     <label>                       <input type='submit' name='Submit' value='Search'></td>   <td valign='top'><input type='submit' name='All' value='Show All'></td>                     </label>                     </form> It works like a bomb!
  13. okay first your links not working, well at leat here at me. second your code confuses me! and can only see half of it. why not just say: $Plat = mysql_querry("SELECT memberid FROM plateau_pros"); $sql = "SELECT * FROM members_cat WHERE memberid LIKE ('$Plat')"; for you number 2, ????
  14. Okay wait, Your not using the include as you sould here. create your images into a button of a folder like your games image into a form. <form action"" name="games" methop="post"><input type="submit" name="games" value="<img src=images/games.jpg border=0>"></form> Then is should work fine. Okay not sure if that image in there will work, I'm not an webdeveloper only do PHP and MySQL for now. Brother do the designing and stuff.
  15. hehe Daniel where not on the same wave lenght here, wait let me try again. Okay I'm using a search function to search the data base for a sertian part of a 13digit number if (isset($_POST['Get'])){   if ($select == Num32){$result = mysql_query("SELECT * FROM table WHERE row LIKE '__32_________' ORDER BY row ASC ") or die();}   elseif ($select == Num27){$result = mysql_query("SELECT * FROM table WHERE row LIKE '__27_________' ORDER BY row ASC ") or die();} then after that I'm getting it to show but with a twist that digit is a 13digit numer searching using position 3 and 4 op the number. There after I I put it on the page. // keeps getting the next row until there are no more to get       while($row = mysql_fetch_array( $result )){   // Print out the contents of each row into a table       echo "<form action='individualsdetaiils.php' method='post'>";         $ref = $row['ID']; $bid = $row['idno']; if ($bid != 0){ $d_id = $bid{4}.$bid{5}; $m_id = $bid{2}.$bid{3}; if ($m_id == 1){$m_id = one;} elseif ($m_id == 2){$m_id = two;} elseif ($m_id == 3){$m_id = three;} elseif ($m_id == 4){$m_id = four;}           echo "</td><td>";           echo $row['Names'];   echo "</td><td>";   echo "$d_id $m_id";   echo "</td><td>"; Now what I want to do is sort by $d_id that is created here after the query. the $d_id is position 5 and 6 in the 13digit number.
  16. As far as I understand is that each page still needs its own conection. What I'm doing is I wrote a conection.php with just the server username and password in and am including it to all my pages. For the including page that has to do something will have to have a conection. Its working as a combined page but still are a stand alone and have to know where the database are.
  17. okay well if you tell him <tr><td>$row</td><tr> in side of a table colum it will repeat for all until there are no more. But that will put one on each line
  18. thats the problem it not in a query, the data get puled from the database get changed and everything and then the digit only exist with what it has to be orderd by, The query's order are from the database.
  19. Okay well then this sould work. $result= mysql_query("SELECT * FROM [color=red]table[/color]"); while ($row = mysql_fecth_array($result)){echo "<tr><td>$row['[color=red]row in tabels name[/color]'</td><td>[color=red]just repeat, when at number 4 close the line[/color]</td></tr>";} Okay that sould work!
  20. Hi There I have now with a lot of effort and a huge script got to a point I just have to sort some data. But now I cant use the Order by in the mysql_query as the number it sould be sorted by is after all the proceses. I have got a $d_id that = to a 2digit number. How do I sort information only using the page and not the database? using $row = mysql_fetch_array() to display  all data on page! Please help if possible. Thanx
  21. You lost me there with your coding. Not sure how the pics work but I'm sure its almost the same as info. Try this $Pic = [color=red]pathname[/color]; echo"<tr><td>"; echo"$pic"; echo"</td><td>"; echo"$pic2"; echo"</td><td>"; echo"$pic3"; echo"</td><td>"; echo"$pic4"; echo"</td></tr>"; Okay dont need all the echo's
  22. Thanx Thorpe, just had to change the 5 to 4 and 6 to 5 to get position 5 and 6. But working now.
  23. Dont really understand what you mean
×
×
  • 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.