sasa
Staff Alumni-
Posts
2,804 -
Joined
-
Last visited
-
Days Won
1
Everything posted by sasa
-
Undefined index mysql_real_escape_string problem
sasa replied to luminous's topic in PHP Coding Help
mark topic solved -
Undefined index mysql_real_escape_string problem
sasa replied to luminous's topic in PHP Coding Help
you need key 'post' in your array ... mysql_real_escape_string($params['post']['exhibitioname']), mysql_real_escape_string($params['post']['startdate']), mysql_real_escape_string($params['post']['enddate']), mysql_real_escape_string($params['post']['Year']), mysql_real_escape_string($params['post']['details']), mysql_real_escape_string($params['post']['address'])); -
Undefined index mysql_real_escape_string problem
sasa replied to luminous's topic in PHP Coding Help
can you post output of print_r -
Inserting Another Field - relational trouble
sasa replied to EternalSorrow's topic in PHP Coding Help
try <?php $sql = "SELECT *, UPPER(SUBSTRING(title,1,1)) AS letter FROM feudal WHERE `type` = 'Fanart' GROUP BY title, author ORDER BY title"; $query = mysql_query( $sql ) or die(mysql_error()); while ($records = @mysql_fetch_array ($query)) { $alpha[$records['letter']][] = $records; // ${$records['letter']}[$records['author']] = $records['title']; // $url= $records['url']; } echo '<ul class="alphabet"> <li><a href="#other">#</a></li>'; // Create Alpha link Listing foreach(range('A','Z') as $i) { echo (array_key_exists ("$i", $alpha)) ? '<li><a href="#'.$i.'">'.$i.'</a></li>' : '<li>'.$i.'</li>'; } echo '</ul><ol class="listfanart">'; // Create Data Listing foreach($alpha as $i => $r) { // if (array_key_exists ("$i", $alpha)) { echo '<a name="'.$i.'"></a><h3>'.$i.'<div style="font-size: 10px; float: right;"><a href="#">top</a></h3>'; foreach ($r as $records) { $url = $records['url']; $key = $records['author']; $value = $records['title']; echo '<li><a href="'.$url.'" target="_blank">'.$value.'</a> by '.$key.'</li> '; } // } } ?> -
change echo $totres; to return $totres;
-
change else if (empty($subject)) { to if (empty($subject)) {
-
while($row=mysql_fetch_assoc($rs)) {array_push($newarray, $row['filename']);}
-
move username and password from your post try <?php $conn=mysql_connect("********","*******","*******") or die(mysql_error()); $rs = mysql_select_db("*******", $conn) or die("NOOOPE"); $sql="select * from `User Table` Where 1"; $rs=mysql_query($sql,$conn) or die(mysql_error());; $row= mysql_fetch_array($rs) ) print_r($row); ?> and post output
-
try http://www.server2go-web.de/
-
if(mysql_num_rows($results)==0)
-
mySQL all records from one table some records from other
sasa replied to denniston's topic in PHP Coding Help
change WHERE to AND $users = $db->get_results("SELECT p.*, r.date, r.person_id FROM People as p LEFT JOIN roster as r ON p.id = r.person_id AND r.date='$_POST[servicedate]'"); -
change form to <div class="MsgNameContainer"><p class="MsgName"><a href="<?php echo 'IndexInput.php?cnt=Usr&UsrID=' . $REQUEST[ 'user_id' ];?>" class="MsgName"><?php echo $REQUEST[ 'user_firstname' ] . ' ' . $REQUEST[ 'user_name' ];?></a></p></div> <div class="MsgDateContainer"><p class="MsgDate"><?php echo $REQUEST[ 'msg_datetime' ];?></p></div> <div class="MsgReadNotContainer"><p class="MsgDate"><?php echo $ReadNotRead;?></p></div> <div class="MsgCheckContainer"><input type="checkbox" name="msg_deleted_from[]" value="<?php echo $REQUEST[ 'msg_id' ];?>" /></div> <div class="ClearBoth"><!-- --></div> and foreach($_POST['msg_deleted_from'] as $id){ $sql = "UPDATE msg SET msg_deleted_from = '1' WHERE msg_id = '$id')"; etc. }
-
you must pass variable value to next page via the hidden form field or via session
-
image does not change when thumbnail is clicked
sasa replied to desertdirk's topic in PHP Coding Help
all -
use$node_array[$thermal_node] = $esatan_temp;
-
try <?php $node_array = Array ( '0' => Array ( '30207' => 338.54 ), '1' => Array ( '606121 ' => 338.54 ), '2' => Array ( '606122 ' => 338.54 ), '3' => Array ( '606218 ' => 338.54 ), '4' => Array ( '606219 ' => 338.54 ), '5' => Array ( '783907 ' => 338.54 ), '6' => Array ( '784282 ' => 338.54 ), '7' => Array ( '784283 ' => 338.54 ), '8' => Array ( '784284 ' => 338.54 ), '9' => Array ( '784285 ' => 338.54 ), '10' => Array ( '784395 ' => 338.54 ), '11' => Array ( '784397 ' => 338.54 ), '12' => Array ( '784398 ' => 338.54 ), '13' => Array ( '784745 ' => 338.54 ), '14' => Array ( '784746 ' => 338.54 ), '15' => Array ( '784748 ' => 338.54 ), '16' => Array ( '784932 ' => 338.54 ), '17' => Array ( '784933 ' => 338.54 ), '18' => Array ( '785370 ' => 338.54 ), '19' => Array ( '785388 ' => 338.54 ), '20' => Array ( '786035 ' => 338.54 ), '21' => Array ( '786036 ' => 338.54 ), '22' => Array ( '786037 ' => 338.54 ), '23' => Array ( '786040 ' => 338.54 ), '24' => Array ( '786042 ' => 338.54 ), '25' => Array ( '786045 ' => 338.54 ), '26' => Array ( '787064 ' => 338.54 ), '27' => Array ( '787065 ' => 338.54 ), '28' => Array ( '787067 ' => 338.54 ), '29' => Array ( '787068 ' => 338.54 ), '30' => Array ( '787069 ' => 338.54 )); $node_array1 = array(); foreach ($node_array as $a) foreach ($a as $k => $v)$node_array1[$k] = $v; print_r($node_array1); echo "Array Count: " . count($node_array) . "<br>"; $node = 30207; echo "Temperature for node " . $node . " -> " . $node_array1[$node]; ?>
-
$grandTotal="-50.00"; echo '$', number_format(-$grandTotal, 2);
-
or <?php $test = !isset($msg); for ($i=1; $i<=10;$i++) if (isset(${'msg'.$i})) $test = false; if ($test) $regsuccess = "yes"; ?>
-
image does not change when thumbnail is clicked
sasa replied to desertdirk's topic in PHP Coding Help
1st change $f to $_GET['f'] in your links you have %20 (space) change it to & -
read manual
-
echo implode("<br />", $out);
-
http://php.net/manual/en/function.implode.php
-
look array_diff() function