mapleleaf
Members-
Posts
250 -
Joined
-
Last visited
Never
Everything posted by mapleleaf
-
Virtual currency? (is this the right board? xD)
mapleleaf replied to Mythical's topic in Application Design
Is this the right question? I have a mysql database, and i'm figuring this has something to do with tables, columns, and php, but I really have no idea how to approach this. Good Entertainment though!! -
I am using jquery ui and need to check if an element is visible. Normally if (document.getElementById("bonuses").style.display = "none") { //do whatever } would be what I need but the function runs regardless of whether the element is displayed or not. Using jquery ui slider Basically how do I check to see an elements style status in jquery? In this case it might be position or opacity that is being altered but somehow I can't check the elements style. Any help much appreciated.
-
Do it with MYSQL http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html
-
You can turn them off: ini_set("magic_quotes_gpc", "0"); Also GoDaddy has some weird settings where they will rewrite urls in an odd way. If you have a choice don't use GoDaddy.
-
Contact form - checking against database before sending
mapleleaf replied to erme's topic in PHP Coding Help
This is being sent to anyone who submits: mail($clientTo, $subject, $message.$message_enq.$messagefooter, $emailheaders); You need to put it inside the condition like: if (empty($Name)) { mail($clientTo, $subject, $message.$message_enq.$messagefooter, $emailheaders); print "<h1>Thank you. Email sent!</p>"; exit; } else { if (mysql_num_rows($resource) == 0){ mail($clientTo, $subject, $message.$message_enq.$messagefooter, $emailheaders); } You also need to add an onclick to your button so it does something -
Contact form - checking against database before sending
mapleleaf replied to erme's topic in PHP Coding Help
I would use $Name in your query but otherwise what is going wrong? -
I would have it all in one table. You can always join the other table that has info for the level. It really depends on how many levels and how much other info.
-
Still think some code will help. It will have more to do with the HTML and CSS than any PHP.
-
if (!$tpost) { might work better if it was if ($tpost) { assuming i understood what you are trying to do
-
you need a $row = mysql_fetch_array($result); in there for starters
-
Verdict Reached -- Mysql and phpmyadmin do not like me
mapleleaf replied to bgbs's topic in MySQL Help
or sha1 and there may be a salt field too -
some code to look at?
-
I think you are looking for MYSQL time functions: http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_date-add
-
what format are you storing the date and what does the table look like?
-
Can you explain what you mean by self posting as you can easily make a form with the number of inputs put in the first form with a loop. But why would you want that to self post as you don't have anything inputted till the user adds something?
-
Concerns about handling Social Security Numbers with HTML forms
mapleleaf replied to MockY's topic in PHP Coding Help
Hope your boss understands the implications of storing SSNs in a database that can be accessed from the internet. I wouldn't do it without some serious security protocols. -
<textarea name='whatever'><?php echo $row->whatever;?></textarea>
-
if(strstr($_POST['avatar'],'mafiakillerz')) { echo 'No'; }
-
simply insert the $_POST['textareaname'] in the database. Is there something else that you mean? You might want the MYSQL forum.
-
Are you looking at it locally without php set up on your machine??
-
It looks like you need a WHERE statement in your update query. $sql = "UPDATE test SET id='$id'"; // you need to add a WHERE id = $id if that is what you are trying to do.
-
and close the </form> tag after the Upload(submit) button
-
Your submit is a link and not part of your form
-
I think what you are looking for is an onblur call to your database using ajax. Something like a username check that you see on some sites. Like here http://medalsdirect.com/live/register.php When you tab out of the username field the page checks if the username is available.