Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #2K
~11.1K People Reached
Favorite Tags

54 Posted Topics

Member Avatar for tcollins412

hello, i am making a website and i need some help. I am writing a table, here is the code:[CODE]<table style='float: left;'> <tr><td style='width: 200px; height: 500px; background-color: red; valign: top; align: top;'><a class='mainlink' href='about.html'>About Me (under construction)</a><br /> </td></tr> </table>[/CODE] now, i want the link to align to the …

Member Avatar for untitledking
0
154
Member Avatar for tcollins412

i am trying to submit a form in jquery without refreshing it. for my jquery code i have this: [CODE] $(function() { $(".submitbuttonsend").click(function() { var dataString = 'reqtoid=<?php echo $uid; ?>&reqfromid=<?php echo $id; ?>'; $.ajax({ type: "POST", url: "proccess.php", data: dataString, success: function() { $('#freekk').html("<div id='message' style='color: #4f4f4f; font-size: 12px; …

Member Avatar for AleMonteiro
0
121
Member Avatar for tcollins412

i am trying to put all of my cookies into an array. heres my code [ICODE] <? setcookie('failn','fail'); setcookie('goodn','good'); setcookie('han','ha'); $allcookies=explode(' ',$_COOKIE); print_r($allcookies); ?> [/ICODE] but the page only returns Array ( [0] => Array ) please help

Member Avatar for tcollins412
0
154
Member Avatar for tcollins412

i am writing a login script in a perl and i set a cookie. here it is: [CODE] if ($V::testsubmit eq 'yes') { ($userid)=$dbh->selectrow_array("SELECT id from logins WHERE username='$V::username' and password='$V::password'"); } if ($userid > 0){ @alphanumeric = ('a'..'z', 'A'..'Z', 0..9); $sessionid = join '', map $alphanumeric[rand @alphanumeric], 0..50; print<<"EOF"; …

Member Avatar for d5e5
0
181
Member Avatar for tcollins412

lets say i have a get variable:[CODE]$goto=$_GET['goto'];[/CODE] and i have a array [CODE]$sections= array('fail' => fail());[/CODE] how would i make it so when the $goto=fail, it does the function fail from the array?

Member Avatar for Killer.bee
0
125
Member Avatar for tcollins412

i have a script that sends an email to cellphones: [CODE=html] <form name='celltest' method=post> <input type=hidden name=cellsubmit value=yes> <tr><td rowspan=1>Mobile Phone: <input type='text' class='efield' id='phone' name='phonetest' style='width: 200px;'></td><td style='padding-bottom: 15px; padding-left: 3px;'>&nbsp;<a href="?ref=ea&dotest=1" class='eap' style='width: 50px;'>Test</a></td></tr></table></td></tr><tr><td style='font-size: 12px; text-align: left; padding-top: 2px; padding-left: 35px;'>Provider: <select name=provider class=efield style='width:258px;' id='provider'> <option …

0
132
Member Avatar for tcollins412

i have a pop up div that i want to close onmouseout. but it keeps closing when it rolls over a child element. Can anyone help me? thanks in advanced

Member Avatar for McLaren
0
79
Member Avatar for tcollins412

i have two sub-domains pointing at the same file.the sub-domain's are test.test.com and fail.test.com and the file is index.php. Now i want to be able to work with both of those domains within the same file so i used this code: [CODE] if($_SERVER['HTTP_HOST']=='test'){ echo"test"; }else if($_SERVER['HTTP_HOST']=='fail'){ echo"fail"; } [/CODE] but …

Member Avatar for tcollins412
0
113
Member Avatar for tcollins412

i need somebody's help with the style of navigation bar i should use. if anybody can help please tell me.

Member Avatar for Kraai
0
140
Member Avatar for tcollins412

this will not work on change. also the innerhtml wont display. please help. here is the js: [CODE]function checkemail(){ if (document.suform.email.value && document.suform.emailcheck.value) { if (document.suform.email.value == document.suform.emailcheck.value) { document.suform.emailcheck.style.backgroundColor='#FFFFFF'; document.getElementById('wm').innerHTML=='Emails Match!'; }else{ document.suform.emailcheck.style.backgroundColor='#F75B53'; document.getElementById('wm').innerHTML=='Emails Dont Match!'; } } }[/CODE] and here is the html: [ICODE] Re-type Email: <input type='text' …

Member Avatar for sivakumarl
0
134
Member Avatar for tcollins412

i am making a register page on my website. i have a password and a re-enter password text fields. how would i validate those two by making sure they are the same in ajax? and how would i make that happen on the re-enters onblur or onchange? thank you

Member Avatar for kardklub
0
141
Member Avatar for tcollins412

i am submitting a form in javascript and i want it to submit on key press submit, but it wont work. here is my code: [CODE] <script type='text/javascript'> function login(evt){ if (evt){var keyCode = evt.which ? evt.which : evt.keyCode;}else{keyCode='';} if ((evt == '')||(keyCode == 13)){ if (document.forms["login"].email.value=='') { alert('You must …

Member Avatar for Taywin
0
230
Member Avatar for tcollins412

i am using the following code to submit a form: [CODE] <script> function marktaskcomplete(){ document.forms["markcomplete"].submit(); } </script> <? if ($_POST['markcompletevalue']=='yes'){ include "dbconnect.php"; $taskid=$_POST['taskid']; $query="UPDATE tasks SET status='0' WHERE uid='$id' AND id='$taskid'"; $result=mysql_query($query); if ($result){ echo "<script>location.href='?goto=taskmanager'</script>"; }else{ echo"fail"; } mysql_close; } ?> [/CODE] and when i try to submit more …

Member Avatar for tcollins412
0
249
Member Avatar for Violet_82
Member Avatar for tcollins412

i am writing javascript for something and it wont work on google chrome. it will work on everything else but chrome. can you please help? here is the code: [CODE] var title='CrazieToday - Best Event Organizer Ever'; var url='http://crazietoday.com'; function AddToFavorites(){ if (window.sidebar) { window.sidebar.addPanel(title, url,""); } else if( window.external …

Member Avatar for Taywin
0
89
Member Avatar for tcollins412

i am wring a website and i need help with some javascript. first ill give you the code [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script type='text/javascript'> function showdiv(name){ var divname=name; show(); } function show(){ document.getElementById(divname).style.display='block'; document.getElementById(divname).style.overflow='visible'; var lastdiv=divname } function closediv{ if (lastdiv) { document.getElementById(lastdiv).style.display='none'; …

Member Avatar for Taywin
0
185
Member Avatar for tcollins412

i am trying to submit a form in javascript, and then process it in php. and it will not work. can you please help? this is the code: [CODE] <?php if ($_POST['markcomplete']=='yes'){ $taskid=$_POST['taskid']; $query="UPDATE tasks SET status='0' WHERE uid='$id' AND id='$taskid'"; $result=mysql_query($query); if ($result){ echo "<script>location.href='?goto=taskmanager'</script>"; }else{ echo"fail"; } } …

Member Avatar for varun931
0
284
Member Avatar for tcollins412

i need help with a project im working on. im writing a task manager for school, and lets say i have a section for the due-date. How would i write a calendar that pops up like in Google tasks or phpmyadmin when you go to insert a date. thank you.

Member Avatar for diafol
0
106
Member Avatar for tcollins412

i need help with something lets say i had a url: [url]http://domain.com[/url] and it was supposed to go to the page [url]http://domain.com/loggedin.php?goto=hi[/url] how would i make it so in the browsers url bar, it only says [url]http://domain.com/?goto=hi[/url]

Member Avatar for chrishea
0
204
Member Avatar for tcollins412

i am trying to download an application i got in an email from my friend, but i keep getting: "Windows found this file to be potentially harmful. To help protect your computer, windows has blocked access to this file." i tried turning off my firewall but that didnt seem to …

Member Avatar for mjdodd
0
140
Member Avatar for tcollins412

i am writing code and i keep getting the error: mysql_fetch_array: supplied arguement is not a valid mysql resource. here is the code: [CODE] <?php include"dbconnect.php"; $item=$_POST['item']; $query3="SELECT * FROM selling WHERE name LIKE %item% AND state='$state' LIMIT 0,30"; $result3 = mysql_query($query3); while($item = mysql_fetch_array($result3)){ echo "<img src='$item[pic]' alt='pic'><a style='color: …

Member Avatar for ko ko
0
107
Member Avatar for tcollins412

i am writing a website that loges somebody in by cookies. i want to make it so if the person goes to the main page, (index) but did not log out from their last session it redirects them to the members page. how would i do that? also, how would …

Member Avatar for Stefano Mtangoo
0
117
Member Avatar for tcollins412

i am writing something in php and i keep getting the error: mysql_fetch_array not a valid sql argument. here is the code: [CODE=php] <?php if ($_GET['goto']=='requests'){ ?> <table> <?php $query = "SELECT * FROM friends WHERE toid='$id'"; $result = mysql_query($query); while($row = mysql_fetch_array($result)){ $query = "SELECT * FROM members WHERE …

Member Avatar for mschroeder
0
93
Member Avatar for tcollins412
Member Avatar for tcollins412
0
69
Member Avatar for tcollins412

lets say im making a dating site. and i want people to be able to insert their own pictures. how would i do that? i have a mysql database. and i want this to happen in php. and then how would i make it display that persons image when someone …

Member Avatar for lyrico
0
124
Member Avatar for tcollins412

i have this code: [CODE]<?php session_start(); $id=$_SESSION['uid']; include "dbconnect.php"; $query = "SELECT FROM members WHERE id='$id'"; $result = mysql_query($query); $row = mysql_fetch_array($result); ?>[/CODE] and it says mysql_fetch_array is not a valid argument. help please

Member Avatar for lyrico
0
120
Member Avatar for tcollins412

i am making a website in php all on one page. here is my script [CODE]<a href='?goto=register'>register</a> <?php if ($_GET['goto']=='register'){ ?> <form name='register' method='POST' action='?goto=reg'> <table style='margin-left: auto; margin-right: auto; color: white; font-weight: bold;'> <tr><td style='text-align:center;'>First Name: <input type='text' name='first'></td></tr> <tr><td style='text-align:center;'>Last Name: <input type='text' name='last'></td></tr> <tr><td style='text-align:center;'>Email: <input type='text' …

Member Avatar for pzuurveen
0
122
Member Avatar for tcollins412

how do you change the timeout of a session? can you do something in the php.ini?

Member Avatar for Stefano Mtangoo
0
86
Member Avatar for ilvista

use this to connect to a database [CODE] $user="asterisk"; $pass="joco15"; $database="asterisk"; $con=mysql_connect("localhost", $user, $pass) or die ('Couldnt connect to server'); mysql_select_db($database,$con) or die('could not connect to db'); ?> [/CODE]

Member Avatar for ilvista
0
3K
Member Avatar for tcollins412

i am writing a php code that displays text from a database. how would i make the text auto break `<br />` after a certain amount of chars? please help asap. thanks

Member Avatar for nuttyniall
0
175
Member Avatar for tcollins412

i have this picture that is 700px and im trying to display it in google chrome. but the picture cuts off after about 50-100px. I went on validator.w3.org and it is completely tidy. here is my code [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <META http-equiv=Content-Type content="text/html; …

Member Avatar for tcollins412
0
154
Member Avatar for tcollins412

i am trying to register 2 sessions. one is supposed to get the id of the user logging in, the other is supposed to get the persons username. here is the login page: [CODE]<?php session_start(); include "dbconnect.php"; $myusername=$_POST['user']; $mypassword=$_POST['pass']; $myusername = stripslashes($myusername); $mypassword = stripslashes($mypassword); $myusername = mysql_real_escape_string($myusername); $mypassword = …

Member Avatar for kohyar bolvary
0
142
Member Avatar for Ribamar23

its just a WAMP thing. It happens to me with a couple of scripts too

Member Avatar for Ribamar23
0
153
Member Avatar for tcollins412

How would i upload image files to a database and then display them using [CODE] <?php $query = "SELECT * FROM members WHERE email='$username' AND id='$id'"; $result = mysql_query($query); $row = mysql_fetch_array($result); ?> <img src='<?php echo $row['pic']; ?>'> [/CODE] and also, what kind of field should i use in the …

Member Avatar for Shanti C
0
95
Member Avatar for tcollins412

ok, so i am writing a program for my client. i have a thing where they can view all of their clients. I have it listed where their clients names are listed. How do i make it so when they click on thir clients names, it calls their id from …

Member Avatar for lyrico
0
74
Member Avatar for tcollins412

i am making a javascript slide show. i am using this code for js: [CODE] <script language="JavaScript" type="text/javascript"> //<!-- //<![CDATA[ first = 1; last = 2; current = 1; function nextPicture() { // Hide current picture object = document.getElementById('slide' + current); object.style.display = 'none'; // Show next picture, if last, …

Member Avatar for codewall
0
238
Member Avatar for tcollins412

i am writing a program and i need to increment a table row. How would i increment a table row on the click of a button?

Member Avatar for tcollins412
0
180
Member Avatar for tcollins412

i have a register and a log in page and it will not work. Here is the script for the register:[CODE]$myusername=$_POST['user']; $mypassword=$_POST['pass']; $cleanpwd=md5('$mypassword'); $myusername = stripslashes($myusername); $cleanpwd = stripslashes($cleanpwd); $myusername = mysql_real_escape_string($myusername); $cleanpwd = mysql_real_escape_string($cleanpwd); $sql="SELECT * FROM $tbl_name WHERE email='$myusername' and password='$cleanpwd'"; $result=mysql_query($sql); $count=mysql_num_rows($result); if($count==1){ setcookie('username', '$myusername'); setcookie('password', '$cleanpwd'); …

Member Avatar for rch1231
0
178
Member Avatar for tcollins412

Ok, i have a couple of questions. I am learning php and i built a log in and a register page. When u register it auto-increments the id row and the user name goes to row "user" in a mySQL database. now how would i make it so it says …

Member Avatar for TySkby
0
145
Member Avatar for paolonewage
Member Avatar for tcollins412

i have a div like [CODE]<form method='post' action='send'><div id='fail' name='cool'>300</div><input type='submit' value='submit'></form>[/CODE] now how would i call that into a variable in php? i tried [CODE]$cool=$_POST['cool'];[/CODE] but it didnt work. help

Member Avatar for morteza_ipo
0
97
Member Avatar for tcollins412

i have an email form and it wont work. i have made sure the email is correct and is working, but i keep getting the 'or die' error. Please help. here is the code: [CODE]<?php $to = "****@***********.com"; $subject = "Contact Us"; $name = $_REQUEST['name'] ; $email = $_REQUEST['email'] ; …

Member Avatar for morteza_ipo
1
177
Member Avatar for tcollins412

I am a programmer and i use 64-bit windows 7 as my OS and i need a free localhost server i can work on my PHP and perl on. I also need it to have MySQL PHPmyAdmin. If anyone has any ideas, please let me know. Thanks :D

Member Avatar for jlego
0
137
Member Avatar for tcollins412

i am writing a forum and here is the code for the inserting the topics in the database[CODE]<?php include "dbconnect.php"; $tbl_name="forum_question"; // Table name $topic=$_POST['topic']; $detail=$_POST['detail']; $name=$_POST['name']; $email=$_POST['email']; $datetime=('d/m/y d:i:s'); $sql="INSERT INTO $tbl_name(topic, detail, name, email, datetime)VALUES('$topic', '$detail', '$name', '$email', '$datetime')"; $result=mysql_query($sql); if($result){ echo "Successful<BR>"; echo "<a href=main_forum.php>View your topic</a>"; …

Member Avatar for chrishea
0
385
Member Avatar for tcollins412

Ok, so i have a log in and a register script. Today i put a md5() encoding mechanism on it so it encodes the password when it is sent to the database. Now, how do i encode all of the passwords that were already inside the database? if anybody could …

Member Avatar for diafol
0
197
Member Avatar for tcollins412

How would i make a 3 page website in 1 script using php? Example. There are sections that are fun, boring, and evil. And i want to be able to edit and create the website all in one page. I know its possible but i do not know how. Please …

Member Avatar for tcollins412
0
153
Member Avatar for tcollins412

I have a login script that people use to register and login. I also have a contacts page where people can add contacts. Now how do i make it so the people that are logged in can add their own contacts that nobody else can see, only them when they …

Member Avatar for diafol
0
105
Member Avatar for tcollins412

I am writing aa table with two td's and i need help. here is the html: [CODE]<table> <td style='width: 100px; height: 100px; background-color: green;'></td><td style='width: 100px; height: 100px; background-color: green;'></td>[/CODE] and i want to be able to make the first td's left corners rounded and the second td's right corners …

Member Avatar for shaya4207
1
175
Member Avatar for tcollins412

i am making a login page for my website. here is the code: [CODE]<?php include='dbconnect.php'; $tbl_name="members"; $myusername=$_POST['myusername']; $mypassword=$_POST['mypassword']; $myusername = stripslashes($myusername); $mypassword = stripslashes($mypassword); $myusername = mysql_real_escape_string($myusername); $mypassword = mysql_real_escape_string($mypassword); $sql="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'"; $result=mysql_query($sql); $count=mysql_num_rows($result); if($count==1){ session_register("myusername"); session_register("mypassword"); header("location:memberpage.php"); } else { echo "Wrong Username …

Member Avatar for hielo
0
103
Member Avatar for tcollins412

i am learning php and i am trying to insert data into a database from a form using php. here is the php [CODE]<?php include "connecttodb.php"; $name = $_POST['name']; $email = $_POST['email']; $password = $_POST['pass']; $query = "INSERT INTO ******* SET username='$name', password='$password', email='$email'"; mysql_query($query) or die('There was an error …

Member Avatar for hielo
0
128

The End.