Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~10.1K People Reached
Interests
Programming..Listening music..
PC Specs
windows..vista..
Favorite Forums
Favorite Tags
Member Avatar for sam1

hi, I am creating a form for user to update their details which is saved in the database. So far i can show their details in the form where i have a submit button but the updating part doesnt work(it doesnt update at all). here is the code: [CODE] <html> …

Member Avatar for diafol
0
3K
Member Avatar for takeshi

Hi guys! Gday'..i have a program of counting of votes..i want to add [ICODE]viewing_bycourse.php[/ICODE] and [ICODE]viewing_bydepartment.php[/ICODE] for those who are already voted.. done with listing of all users who are already voted so i want to show the list of users by course and by deparment.. i dont know if …

Member Avatar for test1234qsr
0
446
Member Avatar for takeshi

Hi..this code is not working..the error was [ICODE]while ($row = mysql_fetch_array($sql)[/ICODE] but i know it was correct query.. [ICODE]search.php[/ICODE] [CODE] <?php mysql_connect ("localhost", "root") or die (mysql_error()); mysql_select_db ("records"); $criteria = (int)$_POST['criteria']; $sql = "SELECT * FROM students WHERE "; switch($criteria) case 1: $sql .= "course"; break case 2: $sql …

Member Avatar for kireol
0
260
Member Avatar for takeshi

Knows the code importing file in mysql using php? that would save all the data saved in excel to mysql database..tnx GOdbless

Member Avatar for takeshi
0
96
Member Avatar for takeshi

Guys, there's a problem lies on my code...cant display the image in viewing candidates..i already put the code[ICODE] <img src=\"".$row['image']."\"> [/ICODE]as what my friend here said in my code in viewing but it seems it didn't work out.. here's my adding record.. [B]add_new.php[/B] [CODE] <?php /* NEW.PHP Allows user to …

Member Avatar for takeshi
0
72
Member Avatar for takeshi

this is the full code of uploading image using php.. [CODE]<?php // Connect to database $errmsg = ""; if (! @mysql_connect("localhost","root")) { $errmsg = "Cannot connect to database"; } @mysql_select_db("records"); // First run ONLY - need to create table by uncommenting this // Or with silent @ we can let …

Member Avatar for jesy83
0
247
Member Avatar for takeshi

Guys, is there anyone knows how to archive a record saved in database using php?Need to implement it in my program..tnx in advance..Godbless

Member Avatar for takeshi
0
91
Member Avatar for takeshi

Guys,this code couldn't run very well..Is there anyone who will recode this? [B]search.php[/B] [CODE] <?php mysql_connect ("localhost", "root") or die (mysql_error()); mysql_select_db ("records"); $criteria = (int)$_POST['criteria']; $sql = "SELECT * FROM students WHERE "; switch($criteria) case 1: $sql .= "course"; break case 2: $sql .= "surname"; break; case 3: $sql …

Member Avatar for takeshi
0
103
Member Avatar for takeshi

G' day!i have my code here in searching a record..it runs very well..but i want to add an options..i want to add like this: [CODE]<select> <option name="course">course</option> <option name="surname">surname</option> <option name="department">department</option> <option name="email address">email address</option> <option name="student no">student no</option> </select>[/CODE] i want to add that code in my program..and i …

Member Avatar for takeshi
0
736
Member Avatar for takeshi

can't delete records.. here's the codes.. [CODE] <?php mysql_connect('localhost','root',''); mysql_select_db('records'); ?> <?php if(isset($_GET['btndelete'])){ $position = $_GET['position']; if(isset($position)){ foreach($position as $val){ mysql_query( "DELETE FROM positions WHERE id='".$val."'" ); } } } ?>[/CODE] [CODE] <html> <head> <tittle> confirm </title> <script> function deleterec(){ if(confirm("Are you sure you want to delete?")){ return true; }else{ …

Member Avatar for vaultdweller123
0
131
Member Avatar for takeshi

i have a problem with this code regarding in counting.. [B]index.php[/B] [CODE] <?php if(isset($_GET['btnsubmit'])){ $can = array($_GET['pres'],$_GET['vp']); mysql_connect('localhost','root'); mysql_select_db('sample_poll'); foreach($can as $val){ $sql = mysql_query( "UPDATE candidate SET votes=votes+1 where can_id='".$val."'" ); } echo "<h1>vote complete!</h1> <a href='voteresult.php'>see all vote results</a>"; }else{ echo "<form method='get'>"; mysql_connect('localhost','root'); mysql_select_db('sample_poll'); $sql = mysql_query( …

Member Avatar for takeshi
0
97
Member Avatar for takeshi

Anyone knows how to code in this: when i delete a particular record,it display first "[ICODE]Are you sure, you want to delete?<br>Yes, No"[/ICODE]all i know is in Vb but i dont know in php..i know if-else statement are present in that code..tnx in advance!

Member Avatar for vaultdweller123
0
133
Member Avatar for takeshi

hi..is there anyone knows how to do that?to be able not to read by anyone my password when they want to view the username and password account..?

Member Avatar for almostbob
0
68
Member Avatar for takeshi

G' day! my code here was good.. [CODE] <?php if(isset($_GET['btnsubmit'])){ $can = array($_GET['pres'],$_GET['vp']); mysql_connect('localhost','root'); mysql_select_db('sample_poll'); foreach($can as $val){ $sql = mysql_query( "UPDATE candidate SET votes=votes+1 where can_id='".$val."'" ); } echo "<h1>vote complete!</h1> <a href='voteresult.php'>see all vote results</a>"; }else{ echo "<form method='get'> <h2><center>Select Candidates</h2> <h3>president:</h3> 1.) lace <input type='radio' name='president' value='1'> …

Member Avatar for cwarn23
0
130
Member Avatar for takeshi

Hi..Good 'day! wanna ask that is there any code in uploading image in php..i wanna add field name in my [B]candidate table[/B] in my database..and i wanna add there[B] image[/B] but i do not know what's the right data type am going to use..as well as the code..

Member Avatar for takeshi
0
107
Member Avatar for takeshi

hi...My friend of mine told to use this code [CODE]if($session->isAdmin()) the check if the user is logged in & has admin privileges if($session->logged_in) to check if the user is logged in (simple user) [/CODE] in login system.but it doesnt work at all..i want that if i login into the system,my …

Member Avatar for takeshi
0
92
Member Avatar for takeshi

Hi..Wanna ask if someone knows how to retrieve records in database in PHP...I want that if i click the "retrieve button" all records will retrieve..I'll use retrieving when disaster occurs..tnx in advance.. :)

Member Avatar for harry_watson
0
153
Member Avatar for takeshi

Hi.. i create a search button in my program..to search in a particular record in my database..what are the codes that i'll be using in order to search a record? tnx in advance..Godbless

Member Avatar for takeshi
0
466
Member Avatar for takeshi

Hi.Im trying to create a program that would simply [B]count of votes[/B] and [B]save in database[/B] after voting of the students,[B]results of all votes[/B], and [B]displaying people that have voted[/B].. here's my html. [CODE]<h2><center>Select Candidates</h2> <p><table cellspacing=5 cellpadding=5> <tr> <th>President:</th> <tr></tr> <td>1.Name presidents&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="pre1">&nbsp;&nbsp;<th><a href="">View Profile</th></a></td> <tr></tr> <td>2.Name presidents&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input …

Member Avatar for FlashCreations
0
153
Member Avatar for takeshi

Hi..Have you created a program using ms word? i want my system display the records in ms word...when you click the submit button,ms word will open and you will see all the records saved from the database..What are the codes i will used.?tnx in advance..

Member Avatar for takeshi
0
2K
Member Avatar for takeshi

Hi..Currently creating a voting system.On which i have to save all the total votes in database.What is the format or should i say the code in counting of votes. I have already a list of candidates and radio button.I want that if i click one of the radio button for …

Member Avatar for takeshi
0
1K
Member Avatar for takeshi

Hi.. I'am asking if you know how to code in back up files in database.. I have my submit button, and i want that if i click it,the process of backuping files will perform..and all the records stored in database will save in other disk.tnx in advance..

Member Avatar for takeshi
0
77
Member Avatar for takeshi

Hi.. I'am asking if you know how to code in archiving files in database.. I have a link in my webpage, and i want that if i click the link,the process of archiving files will perform..and all the records stored in database will archive or will compress .tnx in advance..

0
62
Member Avatar for takeshi

[QUOTE]This is the codes i used in my login based on it's database.It works well.But i forgot something..I want to post the current user when he/she login.When they enter their student # as well as their birthday in the login menu,then when they click the button,the information of the current …

Member Avatar for takeshi
0
96
Member Avatar for takeshi

hi.. i'll ask some question regarding my system login part.. This is my databasae connection.. [CODE] <? include("constants.php"); class MySQLDB { var $connection; //The MySQL database connection function MySQLDB(){ /* Make connection to database */ $this->connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS) or die(mysql_error()); mysql_select_db(DB_NAME, $this->connection) or die(mysql_error()); function confirmUserPass($username, $password){ /* …

Member Avatar for takeshi
0
129