PHP ranking
I need some help ranking examinees according to their grades. The only way I know this time is to rank them at the frontend. All I want is to auto save/update their ranks after other examinees submit...
View Articledynamic dropdown
Hi, I want to make a dynamic dropdown menu for my site, i'm using php & mysql. I can fetch data from the database but something is not working. here is my code: <?php $city_set = " SELECT...
View Articleaccessing a value in a multidimensional associative array
I'm having some troubles with this one. I set up my array like so: $POs[] = array( $jobID=>array( 'FSME' => $matTotal, 'FSMC' => $matTotal, 'FSDE' => $draftingTotal, ... And say $jobID is...
View ArticleSimple form that appends to a text file
Hi, This is probably something very simple for most of you, but I'm very new to php coding, so thanks in advance for your help! All I'm needing to do is have a one field form on my site that will...
View ArticleWarning: mysql_num_rows() expects parameter 1 to be resource, boolean given in
$conn = mysql_connect("localhost", "root", "") or die("Impossivel conectar"); if($conn) { mysql_select_db("eventos", $conn); } $sql = "SELECT id, nome FROM utilizador"; $rs = mysql_query($sql, $conn);...
View ArticleSQL Problem
Hello good day, this is what my Database looks like and my problem is i cannot figure out what SQL Query i should use. I have already solve the part where my evaluation would become "Done" and "Must Be...
View ArticleEscape special characters
Hey, I'm haveing problem with insert query. Query is breaking and I have found a problem in special characters. I tried to use htmlentites() and mysql_real_esacpe_string(9 but it doesn't work. Can...
View Articleselect e listagem de dados, cada um com link diferente
<?PHP $conn = mysql_connect("localhost", "root", "") or die("Impossivel conectar"); if($conn) { mysql_select_db("eventos", $conn); } $sql = "SELECT * from eventos where id_eventos=1"; $rs =...
View Articleplease help!
Hi, I'd like to make a site that, basically, allows members to create their own page once they receive something like a code/password from me. The page is going to have some basic information but...
View ArticleWriting a Quiz HELP
Hey Everyone, I'm trying to make a quiz in PHP for a class. THis is what I have so far. I just can't get the answers to show up. Any help will be wonderful! <?php $quiz_questions = array();...
View Articlephp explode
I want to explode on \n but not for data within double quotes: currently: explode("\n",$decoded_data); Does anyone have any pointers on how to do this? TIA, Jeff
View ArticlePHP form that sends to email HELP
Hi I am having trouble getting your contact form to use a slight modification with checkbox So far I have the form setup correctly and its is suppose to be a form where users can select between 2...
View ArticleWarning: mysql_query() expects parameter 2 to be resource,
i'm a newbie at PHP prodramming and i want to add data to an existing data base, but unfortunately, the " Warning: mysql_query() expects parameter 2 to be resource, "always pops up @@ here are my...
View ArticleOutput variable in multi dimension array
I have a form that spits out an array with the code - print_r($result); This outputs the following: Array ( [0] => stdClass Object ( [input_index] => 0 [candidate_index] => 0...
View ArticleProblme: passing variable to the next page and keeping it live
Problem keeping a variable in the receiving page. From the index.php, the taskid is sent to the receiving page projectasessment.php and this works, the varialble is received. problem is in the...
View ArticleSecurity Question Problem
I have this simple script I started but for some reason it doesn't continue even if the right answer is given. Also how would I go about adding multiple questions? <?php //simple captcha...
View ArticleAdd key/value pair to multidim array
Hi all, I feel like this is a dumb question, but I can't seem to get around it. I'm working with several arrays and pulling them together basically like this: $services[] = getData('....', $params);...
View ArticleNew to OOP
I'm not new to the PHP scene, I'm just not up to par with the language standards. I've recently stumbled upon a new style called OOP. Anyways I have a few issues with my current script. I plan on...
View ArticleQuery grouping and sorting question...
Greetings all... I have a quick question and I'll explain it to the best of my ability in hopes of obtaining a quick answer. I have a mysql database for the website which logs 'fish catches' for an...
View ArticleDisplay row where strpos 0,1 are matched
I'm looking to only return rows where the first two letters of $_attributeSelection["backp1"] are GBI'm sure I need to use strpos somehow, but Im not sure how to use it with my code can anyone show me...
View Article