No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
26 Posted Topics
i have an issue with the include function. i want to use the include function on a file that is in another directory. can anyone offer any assistance on how i go about doing this?? | |
i am having some problems in a 3 column layout. the left column contain the links of the various PHP files that i want to execute, however i want them to be executed in the middle column. i am using dreamweaver and using the 3 column fixed template however it … | |
i have a piece of code that finds the sum of the credits of the courses that were chosen in the multiple drop down list. my code works fine when there is a value that was selected and i can easily assign the variable to the session variable. however i … | |
can anyone offer some help on this matter i have 5 session arrays and i want to merge all of them. however these session arrays are take from several multiple select list. while the code that i have done so far works fine, it has one small problem. in the … | |
hey i am trying to execute a query statement here is my code below [CODE] $sel="SELECT course_name,course_code FROM courses WHERE course_name='$diff'"; if ($result2=mysql_query($sel)) {echo"nice"; } else { echo "shit"; } while ($row2 = mysql_fetch_row($result2)) { echo"row[0] : row[1] <br>"; }[/CODE] please note that the $diff variable is an array while … | |
can anyone offer some help here i have a string that contains course codes. i separate the string into the individual course codes using the explode function. however i want to run a query on each of the course codes that was present in the string and store the result … | |
i have a multiple select drop down menu and i want to implode all the selections that were chosen. can any one offer some assistance on how to do this please. this is what i have so far [CODE] <?php function form() { $hostname = "localhost"; $username = "root"; $password … | |
i am having a small problem. I am having some problem getting variables from the first form into another form to be processed. in other words i am processing the same data i got from the first form twice but i want a break between the two blocks that processes … | |
i have a multiple select drop down menu where i select some courses however my problem is that i was to store the selected courses in an array for further use. i have tried creating an array but is is coming up empty. Can someone help me out here here … | |
if its not to much i just trouble can anyone offer any ideas as to how to investigate a string. i have 2 numbers first number=806000842 second number=05234578 as u can see the two numbers are of different length with the first being 9 characters and the second being 8 … | |
i am having some problems posting some values into a form when i click edit. i have checked to make sure that the variables contain the values that i want however they are not posting back to the form. here is my code below. [CODE]if ($_GET['mode'] == 'edit') { $c=$_GET['id']; … | |
Re: hi i think the problem is with ur insert statement u didnt include what entities in the table to u want these values to go to eg: [CODE]$sql="INSERT INTO students (id_no,first_name,last_name,password,entry_year) VALUES ('$id','$firstname','$lastname','$password','$entry')"; [/CODE] | |
i having some serious problems in getting the information out of a query. i have put up sufficient flags to know if the database is containing any information and to determine which path the code is taking. however i just cant get the information out here is the code [CODE]if … | |
for some reason i am getting an error with my query statements here is my code [CODE]if ($_GET['mode'] == 'edit') { $c=$_GET['coursecode']; echo"$c"; // editing an existing entity // check for value of id if (!$_GET['coursecode']) { echo "error: no coursecode specified, <a href=\"{$_SERVER['PHP_SELF']}\">click here to continue</a>"; exit; } if … | |
i am having some problems using the get function. i aim using it in a href location. while the information is displayed in the url i am just having some problems extracting the required information. here is my code below this is the code for my href location [CODE]echo"<tr><td>$row[0]</td><td>$row[1]</td><td><a href='myform.php?,mode=edit;coursecode=$row[0]'>edit</a></td</tr>";[/CODE] … | |
Re: hi you can also take a look at relational database design and the use of foreign and primary keys this can offer some help | |
i have a small problem deleting from the data base that i have created using a form. this is the error that i am getting on the webpage Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right … | |
i m having some trouble trying to find the sum of an queried variable however this variable is inside a loop and it is not summing it is just returning the value at that instant in time this is the code below [CODE]@$code= $_POST['coursecode_1']; if( is_array($code)) { //$sum= array(); while … | |
i want to store the result of an mysql_fetch_array function in an array for future use. here is my code [LIST=1] [*]$sql= "SELECT parameters FROM rules WHERE type='prerequisite' "; [*] //$result=mysql_query($sql); [*] if ($result=mysql_query($sql)) [*] echo '<p>nice</p>'; [*] else [*] echo 'good shit'; [*] [*]//$row = mysql_fetch_row($result) [*]// [*]while ( … | |
i want some assistance on the usage of the switch case function. i have a form that allows the uses to select multiple courses, once these courses are selected and submit is pressed i want the courses to be validated via the information in the database eg 1. controls and … | |
hi all i am using phpmyadmin and i have 10 tables in my database. my problem is that i have two tables(tbl1&2) and their respective primary keys i want to reference to the same primary key of another table (tbl3). however the primary key of tbl4 is also referenced to … | |
its a simple piece of code but i seem to be having problems this is the code below [LIST=1] [*]$comp_tot="76"; [*] if ($credits = $comp_tot) [*] [*] //$sub=$credits_3; [*] $tot="76"; [*] $ans_1= $tot-$credits; [*] echo"<p>$ans_1</p>"; [*] echo "there"; [/LIST] this code is working however i dont want the condition to … | |
i have a form that uses the post function however i am having some troble getting information from the drop down menus. and also i am having some trouble doing some form validation. the code for both files is shown below. <html><title>Create a new Prequisite Rule </title> <body> <form action="insert_rule.php" … | |
i am trying to use the explode function to take a variable as the string under consideratiom but its not working. can some one help me on this one please?? thanks [code] <?php $hostname = "localhost"; $username = "root"; $password = "hayden"; $database = "ecng3020"; $con = mysql_connect("$hostname","$username","$password"); if (!$con) … | |
i am trying to run this code but i am not getting anything from the mysql_fetch_assoc($result) it is just blank can anyone help me thanks in advance [CODE]<html> <body> <?php $host="localhost"; // Host name $username="root"; // Mysql username $password="hayden"; // Mysql password $db_name="ecng3020"; // Database name $tbl_name="students"; // Table name … | |
i am trying to create a login page so the staff will be directed to one place while the students will be directed to another. this code is still in the making hence no location function was included as yet. can any one help me with this code please [code] … |
The End.