dennismonsewicz
Members-
Posts
1,136 -
Joined
-
Last visited
Everything posted by dennismonsewicz
-
[SOLVED] i keep getting redirected to another post
dennismonsewicz replied to contra10's topic in PHP Coding Help
are you sure MySQL is running? Don't allow MySQL to run as a service. -
[SOLVED] i keep getting redirected to another post
dennismonsewicz replied to contra10's topic in PHP Coding Help
make sure your apache is running and Mysql is running... -
[SOLVED] i keep getting redirected to another post
dennismonsewicz replied to contra10's topic in PHP Coding Help
instead of action="<?php echo $_SERVER['PHP_SELF']; ?>" use this: action="http://localhost/groupsio/post.php" -
here is another tutorial that might be of more help http://www.tizag.com/mysqlTutorial/mysqlupdate.php
-
gotcha yeah the way i am getting around it is like this: $testimonialLength = strlen($row->testimonial) + 30; Thanks for the help!
-
the whole string is not showing up in the input field... like it cuts off the string.. you have to place your cursor in the field and then scroll over to see the rest of the string.. make sense?
-
I have a script that reads the length of a string coming out of a database and based on the length is how long the input field is to edit that particular field. But the problem i am having is its not accurately sizing the input field correctly $testimonialLength = strlen($row->testimonial); Any ideas? The input is like this: <input class="inputbox" type="text" name="testimonial" id="testimonial" size="<?php echo $testimonialLength; ?>" value="<?php echo $row->testimonial; ?>" />
-
[SOLVED] apostrophe in INSERT INTO SQL statement
dennismonsewicz replied to dennismonsewicz's topic in PHP Coding Help
figured it out.. use two apostrophes instead of one.. EX: INSERT INTO table (row1, row2) VALUES ('Hello', 'Don''t Try'); -
[SOLVED] apostrophe in INSERT INTO SQL statement
dennismonsewicz replied to dennismonsewicz's topic in PHP Coding Help
I am writing a SQL file and was wondering... i am more used to doing it using PHP to process but i have to write a SQL file for this particular project. Will escaping it your way still work? -
How do you place an apostrophe in a SQL statement? EX: INSERT INTO table (row1, row2) VALUES ('Hello', 'Don't Try');
-
PHP runs differently on different browsers ? Surely not !!
dennismonsewicz replied to grissom's topic in PHP Coding Help
IE8 is still in beta... a lot of bugs still wrong with it -
do you have session_start(); at the beginning of the page?
-
well php is a server side technology not client side
-
[SOLVED] stripping the ' character after a POST
dennismonsewicz replied to jeff5656's topic in PHP Coding Help
i would also look into error checking with PHP cause you don't just want to select something out of a DB without checking the $_POST vars -
[SOLVED] Communicating between windows
dennismonsewicz replied to dennismonsewicz's topic in Javascript Help
yeah you definitely ROCK! -
[SOLVED] Force a string variable to lower case
dennismonsewicz replied to nightkarnation's topic in PHP Coding Help
http://us3.php.net/manual/en/function.strtolower.php That is assuming you are wanting to force the string in the var to be lower. -
[SOLVED] switch() - deafult case: break;
dennismonsewicz replied to soycharliente's topic in PHP Coding Help
yeah if you don't use the break the next switch case will evaluate along with the previous one. You can stack cases on top of each other. example (stacking cases): switch($action) { case "test1": case "test2": //code here break; } -
[SOLVED] Communicating between windows
dennismonsewicz replied to dennismonsewicz's topic in Javascript Help
yeah... the code you posted is still appending and not erasing i REALLY appreciate your help bud! -
[SOLVED] Communicating between windows
dennismonsewicz replied to dennismonsewicz's topic in Javascript Help
at the current time the code writes the new url on the page everytime the parent url changes. And continues down the page. Is there a way to just write it once and every time the url changes write the new url? -
flash?php?asp? dont know what? plzzzzzzzzz help
dennismonsewicz replied to howry's topic in Javascript Help
i would use PHP with MySQL to house the data and then you could just sort the data based on a date from newest and oldest -
[SOLVED] Communicating between windows
dennismonsewicz replied to dennismonsewicz's topic in Javascript Help
this is awesome! It works! One last thing.. is there anyway to append the data over and over in the same div without writing the url down the page? so it only shows up once? -
[SOLVED] Communicating between windows
dennismonsewicz replied to dennismonsewicz's topic in Javascript Help
hmmm we are getting closer... I loaded your code and tested it. Is there anyway to have the current parent URL printed on the page once you go to the newly created child page and when the parent URL changes it re-prints the url on the child page? also once the timer starts the child page just keeps trying to load. -
[SOLVED] Communicating between windows
dennismonsewicz replied to dennismonsewicz's topic in Javascript Help
bump -
[SOLVED] Communicating between windows
dennismonsewicz replied to dennismonsewicz's topic in Javascript Help
I updated your code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>JS Testing</title> <script type="text/javascript"> var url; var timer; function checkUrl() { if(url != window.opener.window.location.href){ clearInterval(timer); //Stop the timer //alert('The parent URL changed'); } } function init(){ url = window.opener.window.location.href; //Save the current parent url timer = setInterval("checkUrl()", 500); //Start the timer document.write(url); //I added this line } </script> </head> <body onload="init()"> </body> </html> The page is not refreshing.. like i need the child (pop-up/under) window to refresh every like 5 seconds and checks to see if the parent window has changed and if it has then display that url on the child page -
This code: function checkUrl() { var oldurl = window.opener.window.location.href; document.write(oldurl); } Does not work in IE6 but works in FF... any thoughts?