Evaluating Array And Skipping Certain Results
I'm having a brain freeze on this. I have a script where I am reading the contents of a file into an array. I have that up and working with no problem. Then I'm exploding the array using
while ($line = fgets($fd, 4096)) { $arrayData = explode("-", trim($line)); }
Works fine. But what I want to do now is evaluate arrayData[2] to see if it contains the integers "00" (that's zero zero) and if it does, I want it to skip that entry. I know I need to set it up with if arrayData[2] == "00" {
But I'm drawing a blank on how to get it to skip this entire line in the final results. There may be multiple instances of this happening in each file and I want to skip them all.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Skipping Cache
I'm working on an e-com. store and the client wants it so that after you checkout if you hit the back button it skips all the previous pages in the cart and takes you back to page before you enter the cart. From what I've read it seems like I can force a page to not cache but I don't want the pages in the history at all... is there a way to do this?
Sorting Sql Results In An Array Using Things Outside The Array To Sort Them?
I'm using PHP to connect to a database full of place names, and their associated post codes, latitude and longitude on the earth. A user types his or her post code into a form, plus a distance (in miles), and the script looks for other area codes (first half of the post code) within that distance. I can do that fine, but the results are ordered alphabetically by postcode, and I want to order it by the distance. Problem here, is that the distance isn't part of the array taken from the database, it takes the latitude and longitude of the area it's on in the while loop, and calculates the distance between the user's post code and that one, but it's not part of the array, so I can't sort the array using it. How can I sort it? Can I add the calculated distances to the array, and sort it using sort()? If yes, how do I add them to the array? Here's the page, just to explain better what the script does: http://navimaker.org/ed/owain/results.php?postcode=gl15&distance=34 Mess around with the postcode and distance vars. I'd put the source on here too but I'm doing all this over SSH and can't copy & paste very easily .
Evaluating Strings...
In php, I have an array called "q". The elements are: $q[0] = 2 $q[1] = 4 $q[2] = 5 $q[3] = 3 I'd like to be able to loop through this array via a While loop, and echo the contents of these array elements back to the screen. When I try something like: for($i = 0; $i < 4; $i++) { echo $q[i]; echo eval("$q[i]"); echo eval("$q[" . i . "]"); } I get the "String" instead of the "Contents". For example, the output is $q[0] instead of 2, $q[1] instead of 4, etc.
Evaluating A Concatenated Variable
I have a form with 10 select boxes. The boxes are named "select1", "select2", ..., "select10". On the action page, I would like to be able to use a "for" statement to loop through all 10, since the action taken on each is identical. However, I am unsure how I can evaluate the each variable dynamically. It's probably easier to show. Page 1: <form> <select name="select1"> <option value="blah1">blah1 </select> <select name="select2"> <option value="blah2">blah2 </select> etc. etc. etc. </form> Action Page: <? for ($i=1;$i<=10;$i++) { $tmpValue = $select . $i; <---- This is the question }?> In this case, for i=1, tmpValue becomes "select1", not the evaluation of this variable, or "blah1". How can I assign the value of the variable select1 into tmpValue while using this for loop?
Evaluating Php Tags/documents Outside Of Web Server?
I need to generate and send multiple xml documents over a socket. Is it feasible to use php as a templating language for these? How would i go about that? I figure i _could_ make them into 'normal pages' and fetch the contents using some http library, but that doesn't sound too elegant. There has to be a better way?
Coding To Detect Number Of Students That Evaluating A Person
i really in need of a php script that can ensure SYSTEM able to trace the number of people that log in into the system and evaluating person A and detect that number so that we will know whether person A has been evaluated by all her students?. This is to restrict the number of people evaluating a single person to the exact number of students only. eg: person A teaches 10 students and when all her students evaluate her teaching, the system actually detects the number of student under her that already evaluate her; and if the number exceed, the system will detect 'has exceed the number of students'. what if there are person A till Z? while, the number of students for each person is different? My problem is, is there is a php code to detect the number of people that evaluating the same person (indicate as A) and already fill the quota for evaluating that person?
Looping Through An Array And Using The Results.
function build_menu() { $all_li = create_list_items(); $menu = '<ul id="navbar">' reset($all_li); while($li = each($all_li)) { $menu .= $li; } $menu .= '</ul>' echo($menu); } I'm trying to move through each item in the #all_li array and add it's contents to the $menu variable. $all_links is filled with string values from the function create_list_items(). I tried (above) using each(), but the output from the function is "ArrayArrayArray" and this has me confused. I think it's giving me this because each() creates an array which includes key values (yes?), which means each() is not the method I need to use. Can anybody advise me on a method I can use to loop through the $all_links array and add each string to the $menu variable? So far I've tried a for loop, foreach, even attempted an array_walk(), but haven't had any success.
Populating Array With Mysql Results
I'm returning a result set of one field in a table, and want to populate an array with the results. I can't for the life of me figure out a simple way to do this without using mysql_fetch_array() to cycle through the results, append that to a var, then explode that into a var and pass that. PHP Code:
Displaying Array Results In Table
I'd like to display the results of an array in a table format with the Alias, Alias Destination & Username as column headings & the results underneath. PHP Code:
Store Mysql Results Into An Array
i just started using php. i've used it before as a maintainer. fun stuff. well now i'm the writer. i want to abstract all the DB commands away from myself and all other developers. so i'm writing a function to query the php database from all users of the database and store them into an array as a return value so that i can seperate my database code from my html creation code. 1. is there a way to put all my database functions into a php file and include that file into all my other php pages? similiarly to a #include in C++ or a import package name in Java? 2. my code to run down the fetched results and store them into an array doesn't seem to be working the way i want it to. if i print out the results from the mysql returned fetch the data is fine. however the array seems to print out "Array[elementnumber]" instead of the value. Code:
How Do I Search Two-dimiensional Results Set Array
Here's the pertinent code to get the SQL results. It is generated by dreamweaver adn I'm trying to learn to code php so I don't depend on DW to do it for me. $query_rsSummary = "SELECT sid, Count(wid) FROM plotting GROUP BY sid"; $rsSummary = mysql_query($query_rsSummary, $tableG) or die(mysql_error()); $row_rsSummary = mysql_fetch_assoc($rsSummary); How do I search the array to see if a certain "sid" has an entry in the array?
Building Array Of Difft Results For Return
I have 2 functions that I want to call from a subroutine, and then return their results; one result is an array, the other will be an array of arrays. The first will be the information about a product, $product, with values like $product['title'], product['id'], etc. The second will be an array of arrays, each line of which contains information about an element of the product. I.e., $item[0]['title'], $item[2]['value'], etc. How would I best combine these so I can RETURN the total thing from the function, and then how would I refer to the parts in the calling code? For example, if I said Code:
Taking SELECT Results And Turning Them Into An Array()
Does anyone know how take a mysql select statement and have the results placed into an array? I am returning 1+ rows and want to place those rows into an array so I can run a foreach() for each row and then run another foreach() for each column for each row? Code:
How To Make An Array With Query Results? (Postgresql)
Need help making an array with query results: $value = $_POST['text']; $pg = pg_connect('dbname=test user=user password=secret'); $query = "SELECT column FROM information"; $result = pg_query($query); *** how to create array with $results ***
Query Array, Sort Results And Display In Seperate Tables
The problem I have it breaking out the results and displaying them (broken out) alphabetically in seperate tables. For instance, I have generated (bookmarked) tables, one for each letter (A-Z) and want to display all recordsets with say, last name beginning with "A" in one 2 column table, "B" in another 2 column table, and so on... each table would have two columns (with 2 background colors alternating), each cell containing values of one recordset. Even more tricky is if I have an odd number of cells, still generating the last cell with empty values (for asthetics). And can anyone say "sort" (yes, I am nuts)? The ability to sort the whole mess by any column value. I have looked at freeware and other third part apps, but they can only do what I already can do (mine is actually cleaner) but not as complicated.
Array Results Output On Online As Opposed On Separate Lines
How do i get to echo details on oneline as opposed to the next line. $car=array("red", "green", "white", "blue", "orange"); foreach $car as $color) { echo "$color<BR/>"; I dont want the results on separate lines but on the same line with commons...
Pushing Data Into A Multi-dimensional Array From Mysql Results
First, A result array I'd want to get could look like this: $chart['chart_data'] = array ( array ( "Region A", 10,12,11,15,20,22,21,25,31,32,), ); The first is "Region A" and the rest is just int's that I'd pull from the db, so to set it I'd do this: $chart [ 'chart_data' ][ 0 ][ 0 ] = "Region A"; But the problem is when I want to insert the data in the while loop (like the 10,12,11,15...), I've tried array_push but it's not working, maybe it doesn't work with multi-dimensional arrays? Anyways, here.'s what I tried, the following inside the "while" to loop the mysql results with mysql_fetch_assoc: while($r=mysql_fetch_assoc($res)) { $chart [ 'chart_data' ][ 0 ][ 0 ] = array_push($chart['chart_data'][0][0], $r['wght']); // the above line is where I have problems ^^ } What I want is on each loop to insert the fetched data inside the array so that it gives what I gave first at the top, but what I've written above doesn't work, it gives me a warning saying "first argument must be an array" which seems to be one, but anyway, anybody know how to do this?
Getting A File Via Http Or Evaluating A Php File And Getting Its Output
I need to somehow merge two separate web programs written in php together (from the user's perspective). This solution won't be perminant, I just need something done quickly. I was thinking of two different approches. One would be to download a processed version (modified so it will create validating html with the page it's being embeded in) of one of the programs with the other, then just use print to embed it in the page. I couldn't find out how to get a file via http here (http://us2.php.net/manual/en/index.php). Sorry if I missed this in the docs. The other would be to process the other program and get it's command line output, and print that. If there's a better way to this, I'd be glad to hear it :) Also, I've never written any php before; so sorry if I missed something obvious to someone who has.
Search Brings Back Different Results Or Sometimes No Results
The problem Iv got is that when searching the site - it brings back different results or sometimes no results. For example: "i026", "i 026" and "026" do not bring back results for "I-026" which is the correct model number. Any ideas on how to make it search more variations or of a "Did you mean... I-026" script?
Search Results ($num_rows) Does Not Match $search Results (PHP,MySQL)?
For example, when I do a database search for a term I get 2 results but the $num_rows says there are 3 results. I suspect it's because there are similar keywords within different search fields of the SQL statement. But I am stumped as to how I can change this. Any Suggestions? the code:
Selecting Array Rows Based On An Array Of Field=>values
Here's the code i have: $db = array(); //main array $db['main'] = array(); //table `main` $db['main'][] = array('id'=>0, 'username'=>'joshfrench','userpass'=>'password','userlevel'=>'admin'); //row $db['main'][] = array('id'=>1, 'username'=>'bob_smith','userpass'=>'psswrd','userlevel'=>'user'); //row function trim_value(&$value){ $value = strtolower(trim($value)); } function fdb_select($fields = "*", $table, $where = false, $limit = false){ global $db; $retv = $db[$table]; //LIMIT RESULTS TO FIELDS if(strrpos($fields, ",") === false){$field=array($fields);}else{$field = explode(",", $fields);}; array_walk($field, "trim_value"); $all_fields = array_keys($retv[0]); if($fields == '*'|| is_null($fields)){$field = $all_fields;}; $field = array_uintersect($all_fields, $field, "strcasecmp"); $retvi = array(); foreach($retv as $num =$row){ foreach($row as $fname =$fvalue){ $fname1 = strtolower($fname); if(in_array($fname1, $field)){ $retvi[$num][$fname]=$fvalue; }; }; }; //DONE LIMITING TO FIELDS if($where != false){ //UP TO HERE IT WORKS FINE //LIMIT TO WHERE CLAUSE $retvj = array(); foreach($retvi as $num =$row){ //IN THE ROW foreach($where as $k =$v){ //IF ROW MEETS ALL REQUIREMENTS if($row[$k] == $v){ $retvj[] = $retvi[$num]; //Keep that row }; }; }; //DONE LIMITING TO WHERE CLAUSE }; $retvi = (isset($retvj)) ? $retvj:$retvi; //SEND A FINAL ASSOCIATIVE ARRAY return $retvi; }; print_r(fdb_select("*", "main", array('id'=>"1", "username"=>"joshfrench"))); the previous code outputs this: Array ( [0] =Array ( [id] =0 [username] =joshfrench [userpass] =password [userlevel] =admin ) [1] =Array ( [id] =1 [username] =bob_smith [userpass] =psswrd [userlevel] =user ) )
Multidimensional Array Syntaxt For Preg_split Array Using Submitted Textarea
I have two textarea's called textarea1 and textarea2. What i did was use preg_split to split the textarea into seperate rows that i could use for analysis like so $array = preg_split("/[ ]?[ ]/", $_POST['textarea2'], -1,PREG_SPLIT_NO_EMPTY); $array2 = preg_split("/[ ]?[ ]/", $_POST['textarea1'], -1, PREG_SPLIT_NO_EMPTY); then i used a function created for me by a nice guy on here called get_ending($filepath) which basically stripped off of each peice of text the "http://www" from every URL i put into the textareas finishing off i wanted to create an array that would input an expression such as: echo "<a href='$array[1]' target='_blank'><img src='$array2[1]' border='0'>"; into a text area on the next page. ALL of this works, except that i dont know how to properly loop throught he array so it'll properly insert the text into the textarea on the next page. For now, all it does is place the array information in the page, rather statically, i would like to run some kind of if then statement that says "while $array has some kind of text in it, keep running this operation of echoing the following expression adding 1 to the end of the array number" I hope that makes sense Any ideas? Code:
Finding Elements Of An Array In Another Multi-dimensional Array
So I have 2 arrays: one contains userids. It may look like: user_id[0] =12, user_id[1] =30, user_id[2] =43 The other is a multi-dimensional array with fields like: user_info [0] = Array ( [user_id] =13 [user_flag] =1 [url] =http://www.example.com?index,0 ) user_info[1] =Array { Array ( [user_id] =120 [user_flag] =1 [address] =1234 Main St, Anytown, USA [url] =http://www.yahoo.com ) user_info[2] =Array { Array ( [user_id] =130 [user_flag] =1 [address] =134 Main St, Anytown, USA [url] =http://www.google.com )
Sorting An Array Problem, (array/string Manipulation)
I have a function that I found on google, that goes through a directory and spits out a directory tree in an array, with arrays inside of arrays, and more and more arrays inside of arrays, depending on how many subdirectories are there..... Here is a sample "directory tree" it spits out. My problem is wanting to be able to create a new array containing only the paths to all the subdirectories it finds from this array, so it is with array manipulation... Not all paths are located in the topmost array's values, but some directories are within other subdirectories and so forth.. I'm stumped on how exactly to sort through this array, whether recursively or not to grab all the 'paths' in the array period. Code:
Array Checking For Page Content In A Array
i am using a function which gets all the links from a page, from that i have a function that gathers the html in the page from each links..this part works great.. i then need to check and see if it has a applet, flashmovie etc tag in the page. if there is a tag like this in the page ineed to return true if there isnt i need to return false i have provided code thats shows how i gather the links echo them out and checks to see if certain html tags are in a page using a function $snoopy->fetchlinks($url); $results=$snoopy->results; $results=array_unique($results); sort($results); for($i=0;$i < $numberoflinks; $i++) { $results[$i] = preg_replace( "/(?<!")((http|ftp)+(s)?://[^<>s]+)/i", "", $results[$i] ); if ($results[$i] == '') { } else { ?> <a href="index.php?mode=2&url=<? echo $url.$results[$i];?>"><? echo $results[$i];?></a> <? $snoopy->fetchform("$url.$results[$i]"); $test=$snoopy->results; / if($test != "") { echo "problems seen<br>"; }else{ echo "no problems<br>"; } } }
Array Sorting Blues....2 Dimensional Array
I have a 2 dimensional array where one col contains a Unix style date and the other contains a filename. I read through a directory to get this info. I can load the array and print it out just fine, but I can't seem to sort it using any of the sort functions! I want to reverse sort them, since they are news stories that I want to display in the correct order by date. When I try to sort I get a "Warning: Cannot compare arrays or objects" message. I have the feeling it's something stupid on my part but can't find any good examples anywhere. Anyone have an idea about this? P.S. I know a database would solve this but sadly it's not an option for me right now...
Turn Array Into Multi-dimensional Array?
How can I take an existing array and turn it into a multi-dimensional array? I want to get a single row out of a MySQL table and have it in an array, but have along side the values the true field (column) length for each of the fields from the table. Here's my stab at it: $userDetails = mysql_fetch_array($resultID); $i = 0; while ($i < mysql_num_fields($resultID)) { $userDetails[$i][2] = mysql_field_len($resultID, $i); $i++; } And I guess the follow up question (if this is indeed possible) is will this work with a multi-row return from the DB also?
Setting Variable To Array Within Mysql_query() Array
I found your site while attempting to solve the problem of utilizing JOIN statements in a PhP mysql_query. Your timely and well-structured assistance to LemonFizz was very helpful, and enabled me to develop the query below. I have now queried multiple tables to produce an associative array of all of a particular student's data after selecting the student's unique ID from a drop-down. This required the use of JOIN statements in my query. The query section of the file is as follows:
Create Array From Members Of An Array Of Objects
I have the following situation: $list[] is an array of MyElement objects. MyElement has two members: MyElement->member1; MyElement->member2; What I want is to get the following: $newlist[] so that: $newlist[0]=$list[0]->member2; $newlist[1]=$list[1]->member2; $newlist[2]=$list[2]->member2; .... I need to do this using A SINGLE LINE OF CODE. Is it possible? How to do this? I tried with: array_walk($list,create_function('$a,$b,$result',' $result[] = $a->member2;'), &$result); but I get the following error: Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of array_walk(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer.
Trying To Calculate An Average Array From An 2d Data Array
I'm trying to calculate an average array from an 2d data array. my problem is that my function does not generate an average array but just one value. but i do not understand why it does not work. code: ----- function calculateAverageRating($rating_matrix) { $average_rating = array(); foreach($rating_matrix as $cus_id => $ratings) { $counter = 0; $sum = 0; foreach($ratings as $pro_id => $item_rate) { $counter++; $sum += $item_rate; } echo $cus_id."->".($sum/$counter)."<br>"; $average_rating[$cus_id] = ($sum / $counter); } echo "<hr>"; echo "<table> <tr>"; foreach($average_rating as $key => $value); { echo "<td>$key::$value</td>"; } echo "</tr></table>"; return $average_rating; } wanted: input -> output 1 1 1 1 2 2 2 2 4 4 4 4 but my functions just does: input -> output 1 1 1 2 2 2 4 4 4 4
Passing Array Of Multidimensional Array To Function
How do I pass a part of a multidimensional array to a function. I have the following (in pseudo): $arrays[m][n]; // filled with values $chosen = 3; function doSomething($array) { // do something with 1D array } This fails: doSomething($arrays[$chosen]); Can someone explain to me why? And how to do this right?
How To Add A <br> After 3 Results?
I am wondering if anyone could help me solve this issue. I am using a foreach loop and i would like to add a line break after three records then repeat the process. Example: foreach($array as $v){ echo $v.' ';} In that example, it will display ( apples oranges banana pumpkin turnips pineapple beer pepsi) How do i get it to display: apples oranges banana pumpkin turnips pineapple beer pepsi etc.... Notice above that after each three results the next three are placed on a new line. How can I accomplish that with my loop.
Getting Results Twice?
I am having a small problem. I have a small script which gets a METAR feed, processes it and then displays the weather information. The problem is that it will accept 1 weather station as an input variable. How can I run this script TWICE within the same execution, while getting 2 results, using 2 different weather stations? The main file uses this to execute the functions which are on another separate file: Code:
Splitting Up Results
I have a large database and would like to split the results into 20 per page and with arrows to go to the next page and numbers to skip pages. But I'm not sure how to do it. I know I've seen an article on how to do this somewhere, anyone know one about this?
Grabbing Only First Var From Results
I'm working on a calendar program that I inherited from a sick Webmaster somewhere in the world. Below is part of the code that chooses and compares dates to print on the calendar. The part in bold is what I think is going to be the key to solving my problem, I just don't know how to go about it. The 'dates' column for a record in the 'programs' look like this: &62&74&84&90, etc. Each number represents a date with more details in the 'dates' table. Echoing out $datenum will give one number like ཻ'. The problem is I want only first date and to ignore the rest per record. The SQL looks like this. Is it possible to only get the first search result of date per record? foreach ($chosen_dates as $c) { if ($c['day'] == $day_num) { if ($section == false) { // This runs for printing courses and not programs $coursenum = $c['coursenum']; $name = mysql_query("SELECT name FROM courses WHERE keyword='$coursenum'"); $name_row = mysql_fetch_object($name); // if there are courses for this $day_num print "<p><a href='course.php?index=".$c['coursenum']."' "; print "title='".$c['stime']."-".$c['etime']." ".$c['section']."'>".$name_row->name."</a></p> "; } else { // This runs to print programs and not courses. $datenum = $c['datenum']; echo "Datenum=$datenum"; $date_search = mysql_query("SELECT num, dates, category FROM programs WHERE dates REGEXP '&$datenum&'"); $date_found = mysql_num_rows($date_search); //echo "Number of dates found = ".$date_found; if ($date_found > 0) { while($row = mysql_fetch_object($date_search)) { //echo $c['section'] ." "; //echo "cat= ". $row->num; foreach($isPrinted as $printed){ if(!in_array(array('section'=>$c['section'], 'courseNum'=>$row->num), $isPrinted)){ print "<p><a href='program.php?index=".$row->num."' "; print "title='".$c['stime']."-".$c['etime']." ".$c['section']."'>".$row->category."</a></p> "; $isPrinted[] = array('section'=>$c['section'], 'courseNum'=>$row->num); break; } } }... Is there such thing as maybe using a LIMIT with this kind of SQL statement? The one above is:SELECT num, dates, category FROM programs WHERE dates REGEXP '&$datenum& Could you use something to the effect of: SELECT num, dates, category FROM programs WHERE dates REGEXP '&$datenum& LIMIT 1?
Listing Results From DB
Anyway I have a wee problem: what I have is a javascript popup with two values passed through: PHP Code:
Results Into A Matrix Using Php?
I've been trying to work out how to insert results from a database query into a two-dimensional matrix using php. We used a star schema for our datawarehouse. Thus we have a price fact table and we need to perform aggregate functions on this table. This part is relatively simple. I've managed to connect to the oracle database and retrieve the data but only display the results in a normal table. What I'd like to do is display the results in a matrix so that I can avoid repeating fields. For instance if there are three variables: Code:
Checkboxes And Sql Row Results
I am trying to place a checkbox beside each row that is inputed into the database. Now this is how I diplay the rows: print "<br><br>There are $num_rows records.<P>"; print "<table width=500 border=0> "; while ($get_info = mysql_fetch_row($result)) { print "<tr> "; foreach ($get_info as $field) print " <td><font face=arial size=1/>$field</font></td> "; print "</tr> "; How would I go about attaching this: <input type="checkbox" value="..." name="..."> to the side of each displayed row? Also, how would I assign the row id to the checkbox so that once the box is check and the action initiated the row would be deleted?
Returning Results With An '
I am using this script $mresult = mysql_query("SELECT DISTINCT game FROM vids order by id desc limit 50", $link) or die ("query 1: " . mysql_error()); while ($mrow = mysql_fetch_array($mresult)) { $count = mysql_result(mysql_query("SELECT COUNT(*) FROM vids where game = '$mrow[game]'"), 0); } but for any $mrow[game] that has an ' in it a 0 is returned, how do I fix this?
Getting Bad Results From Fsocketopen
If I send this to the server: POST /errors/index.htm HTTP/1.1 Host: www.publicdomainsoftware.org Content-Type: application/x-www-form-urlencoded Content-Length: 1200 %3C%2Fdiv%3E Why do I get this back: HTTP/1.1 400 Bad Request Date: Fri, 12 May 2006 02:37:43 GMT Server: Apache/2.0.46 (Red Hat) Content-Length: 302 Connection: close Content-Type: text/html; charset=iso-8859-1 Bad Request Your browser sent a request that this server could not understand. Apache/2.0.46 (Red Hat) Server at default Port 80
Sorting XML Results
The following code parses an XML file and displays the results. The function resultSort is meant to sort the results by price from highest to lowest. Unfortunately, it's not sorting correctly in all cases. I think this may be due to the prices being in euros. Right now, this is how it outputs the results: 1 208,00 2 148,00 412,00 638,00 942,00 This is how it should look: 2 148,00 1 208,00 942,00 638,00 412,00 Here's the code: PHP Code:
PHP - Sending Results
I am looking for a simple form Processor that will send the results to a defined user, but at the same time send these same results to the user that filled it out. This sounds simple enough I realized, but to be honest I can't seem to find anything that will easily allow me to do this and use my own HTML based inputs at the same time.
Sorting Results
I hava a table with a primary key cod_topico and I'd sort my results. I do this, ok? $query='SELECT * from topico order by cod_topico asc' ; But I would not sorting asc, How I sort a non-asc form? What is the oposite of asc?
|