Jump to content

sasa

Staff Alumni
  • Posts

    2,804
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by sasa

  1. what is Spry menu? can you post same code
  2. http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_find-in-set WHERE FIND_IN_SET('$colname_producto', id_compania)
  3. $query = "DELETE FROM events WHERE town='colchester' AND date < $some_date";
  4. sasa

    in_array

    http://hr.php.net/array_intersect
  5. SELECT * FROM mytable ORDER BY ranks+0
  6. try <table width="100%" border="0" align="center" cellpadding="2" cellspacing="2"> <tr class="headercolour"> <td width="37%"><div align="center"> <div align="left">><? echo $col1; ?></div> </div></td> <td width="39%"><div align="center"> <div align="left"><? echo $col2; ?></div> </div></td> <td width="16%"><div align="center"> <div align="left"><? echo $col3; ?></div> </div></td> </tr> <? i = 0; while ($row = mysql_fetch_assoc($result)) { if ($i++ == 0) { ?> <tr class="tr" onMouseOver="h(this)" onMouseOut="n(this)"> <?php } ?> <td><? echo $row['customername']; ?>test</td> <?php if($i==3) { $i = 0; ?> </tr> <?php } } ?> </table>
  7. $values= " ('".implode("'), ('", $_POST['podcast_programming_exspertise']). "')"; $sql = "INSERT INTO table_name (field_name) VALUES $values";
  8. <input type="radio" value="225.67;Microsoft Windows Vista Ultimate ($255.67)" name="os">Microsoft Windows Vista Ultimate ($255.67) and explode(';', $_POST['os'])
  9. http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_timediff
  10. try <?php require_once('../Connections/Sencore.php'); ?> <?php mysql_select_db($database_Sencore, $Sencore); $query_subVer = "SELECT * FROM `1067` ORDER BY decoderVersion"; $subVer = mysql_query($query_subVer, $Sencore) or die(mysql_error()); $row_subVer = mysql_fetch_assoc($subVer); $totalRows_subVer = mysql_num_rows($subVer); ?><!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=iso-8859-1" /> <title>Untitled Document</title> <link href="../assets/css/style.css" rel="stylesheet" type="text/css" /> </head> <body> <table border="1"> <tr> <td>IPAddress</td> <td>Notes</td> <td>alias</td> <td>unitversion</td> <td>tssid</td> <td>stationname</td> </tr> <?php $curr_dec=''; do { if ($row_subVer['decoderVersion'] != $curr_dec){ echo "<tr><td colspan=\"6\">decoderVersion: $row_subVer[decoderVersion]</td></tr>"; $curr_dec = $row_subVer['decoderVersion']; } ?> <tr> <td><?php echo $row_subVer['IPAddress']; ?></td> <td><?php echo $row_subVer['Notes']; ?></td> <td><?php echo $row_subVer['alias']; ?></td> <td><?php echo $row_subVer['unitversion']; ?></td> <td><?php echo $row_subVer['tssid']; ?></td> <td><?php echo $row_subVer['stationname']; ?></td> </tr> <?php } while ($row_subVer = mysql_fetch_assoc($subVer)); ?> </table> </body> </html> <?php mysql_free_result($subVer); ?>
  11. http://www.cit.gu.edu.au/doc/php_doc/function.mysqli-store-result.html
  12. change value="<?php $row_query4['ID']; ?>" to value="<?php echo $row_query4['ID']; ?>"
  13. print number_format($cost, 2);
  14. http://hr.php.net/number_format
  15. try <?php $test = 'This is a block of "Text" blah "sasa" <span class="foo">bar</span> ddddddd "xxxx"'; $patern = '/(^|>)[^<]+/s'; function my_qoute($a){ return str_replace('"', '"', $a[0]); } $test = preg_replace_callback($patern, 'my_qoute', $test); echo $test; ?>
  16. $recs .= "$row"."$column".",";
  17. UPDATE table_name SET cityID2=cityID WHERE 1
  18. no when you 1st time call header('Location: ...') function curent page stop working
  19. try <?php $test = 'http://www.phpfreaks.com/forums/index.php/topic,239826.0.html'; $a = parse_url($test); //print_r($a); echo $test = str_replace($a['host'], '[LINK REMOVED]', $test); ?>
  20. try if ($name=="") { $error[] ="Name is a required please fill in and submit again."; } if ($email=="") { $error[] ="Email is a required please fill in and submit again."; } for ($i=0; $i<count($error); $i++) { echo $error[$i]; } [/code]
  21. yes and change order to ORDER BY `artist` DESC , `song` DSSC
  22. ( SELECT * FROM `tracks` WHERE `artist` = ( SELECT `artist` FROM `tracks` WHERE `id` = '$db_id' ) AND song > ( SELECT `song` FROM `tracks` WHERE `id` = '$db_id' ) ) UNION ( SELECT * FROM `tracks` WHERE `artist` > ( SELECT `artist` FROM `tracks` WHERE `id` = '$db_id' ) ) ORDER BY `artist` , `song` ASC LIMIT 1
  23. ups try this SELECT `id` FROM `tracks` WHERE `id` > '$db_id' AND `artist`=(SELECT `artist` FROM `tracks` WHERE `id` = '$db_id') AND `song`=(SELECT `song` FROM `tracks` WHERE `id` = '$db_id') ORDER by `artist`,`song`, id ASC LIMIT 1 UNION SELECT `id` FROM `tracks` WHERE `artist` > (SELECT `artist` FROM `tracks` WHERE `id` = '$db_id') AND `song` > (SELECT `song` FROM `tracks` WHERE `id` = '$db_id') ORDER by `artist`,`song`, id ASC LIMIT 1
  24. SELECT `id` FROM `tracks` WHERE `id` > '$db_id' AND `artist`>=(SELECT `artist` FROM `tracks` WHERE `id` = '$db_id') AND `song`>=(SELECT `song` FROM `tracks` WHERE `id` = '$db_id') ORDER by `artist`,`song` ASC LIMIT 1
×
×
  • 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.