In a site I am working on two of the pages have an iframe being loaded. [code] <IFRAME id="someid" src="http://www.trailblz.info/barkleydean/signup.aspx?rd=http://www.senatorbarkley.com/signup-thank-you.htm" width="700" height="1400" frameborder="0" scrolling="No" style="position: relative; width: 700px; height: 1400px" target="_blank"> </IFRAME> [/code] This works fine but the "Thank you" page loads at the top of the frame but the browser window is at the bottom of the page. Is there a way to make the "Thank you" page scroll to the top when the "Thank you" page is loaded? I have tried many different things but none work. Right now I have to put a white spacer in before …

Member Avatar
Member Avatar
+0 forum 4

I am in the process of making an existing website designed in 2005 to be able to work well with wide-screen monitors, tablets and phones. On the existing site, http://pettitslawnscapes.com/html/design___build.html, the menu selection **Design & Build** has six submenus that drop down when your mouse hovers over it. I need to do the same in the new site, http://pettitslawnscapes.com/pettitsnew/design.htm. Any ideas as to how to easily make this happen or a good website that can help me? I will be using the existing graphics for the drop-down menu. Also notice that each menu item changes from normal to bold when …

Member Avatar
Member Avatar
+0 forum 3

I am trying to update the field id_key which is an unique value using uniqid() function. When I print to the screen the value for uniqid() [$id] is different for each record. Which is correct and is what I want. However when I go inspect the table all the values in the id_key column are the same for each record. What am I doing wrong? Each record should have a different value - the value shown on the screen with my echo statement. while ($row = mysql_fetch_array($loop)) { $id = uniqid(); echo $row['rec'] . " " . $row['first_name'] . " …

Member Avatar
Member Avatar
+0 forum 3

I am using the Eyesis Data Grid Control (http://www.phpclasses.org/package/4951-PHP-Display-data-from-a-database-in-a-sortable-table.html) and would like to add the Delete function as shown in Example 3 (http://www.phpclasses.org/browse/file/25088.html). The line in the sample code where this is done is: $x->addStandardControl(EyeDataGrid::STDCTRL_DELETE, "alert('Deleting %Id%')"); How do I change the "alert('Deleting %Id%')" to either a function that deletes the record or a call to another page that does the deleting? I have tried $x->addStandardControl(EyeDataGrid::STDCTRL_DELETE, mysql_query(DELETE FROM customer WHERE ID='$ID'); and $x->addStandardControl(EyeDataGrid::STDCTRL_DELETE, delete_one_record.php); but both do not work. The grid does not even display using either of the above two lines. Thanks in advanced.

Member Avatar
Member Avatar
+0 forum 3

I have a mysql database that includes the fields first_name, last_name, email. I have an input form to enter in the above information. If the e-mail address already exists, then I have a message page that lets the user know this and display the first and last name that already exists. Duplicate first and last names are OK. The code below is not catching the duplicate e-mail address that is entered in the input form. How do I get it to work? $result = mysql_query("SELECT * FROM mail_list_db where '$email_address' = email") or die(mysql_error()); $count = mysql_num_rows($result); echo "Count = …

Member Avatar
Member Avatar
+0 forum 5

I have a table with over a thousand records that I need to update a field I have called "id". I need each record's ID to be unique. I am using the uniqid() function which works just fine. When I use the code below (and several other variations of it), all records have the same value as the last record. The screen output shows each ID to be different. I even substituted the For Loop counter and all the records had the same value. How can I update each record so each has a different value? This program will probably …

Member Avatar
Member Avatar
+0 forum 2

I am reading a CSV file and need to add the information into an existing database. I am able to read and display the information correctly. When I try the code below, I get the error *"Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING on line 51". $insert_csv['first_name'] = $csv_array[1]; $insert_csv['first_name'] = substr($insert_csv['first_name'], 1, strlen($insert_csv['first_name']) - 2); //remove quotes and comma settype($insert_csv['first_name'], "string"); This is line 51 => $query = "INSERT INTO mailing (`test`) VALUES ($insert_csv['first_name'])"; The field "test" is set for type of text. When set for VARCHAR I get the same error. If I …

Member Avatar
Member Avatar
+0 forum 3

Two years ago Airshow helped me with a Vertical Slider Zoom feature for a project of mine. Now I have a need to do the same but with a Horizontal Slider to zoom a photo. I need the slider in this example, [http://bbhs69.com/senior_class_photo_copy(1).htm](http://bbhs69.com/senior_class_photo_copy(1).htm), to be horizontal and at the very top of the page. I am using the example from http://developer.yahoo.com/yui/examples/slider/slider-ticks.html. I have tried to use the code section Airshow came up with into this new project but I have not been able to get the photo to zoom. Can anyone help me? In the code below the two sections …

Member Avatar
Member Avatar
+0 forum 3

I have a small database of about 30 names that are all unique. The variable $member equals "Ann" but will change depending on the person to search for. I need to be able to return the exact match of the person's first name. I have tried many combinations of the Where clause but I cannot get it to return "Ann" instead of "Anna" since Anna is in the table before Ann. This returns "Anna" instead of "Ann": $query = "SELECT * FROM board_members where FirstName like '%$member%'"; These returns nothing: $query = "SELECT * FROM board_members where FirstName = '$member'"; …

Member Avatar
Member Avatar
+0 forum 8

I am trying to pass the values of an array from one PHP page to another but I am not having any luck. I need someone to tell me what I am doing wrong or if there is a bettter way. Here is my code snippet for page one: <?php //Page 1 - Get values from the database //This page is included from the main page session_start(); $MYDB_CONNECTION = "something1"; $MYDB_USER = "something2"; $MYDB_PASS = "something3"; $link = mysql_connect($MYDB_CONNECTION, $MYDB_USER, $MYDB_PASS) or die(mysql_error()); if (!$link) { die('Could not connect: ' . mysql_error() . "<br>" . error_message); } // echo 'Connected …

Member Avatar
Member Avatar
+0 forum 3

I have the following code in my **PHP** program: $query = "SELECT * FROM board_members"; $result = mysql_query($query) or die(mysql_error()); $data = array(); // create a variable to hold the information while (($row = mysql_fetch_array($result, MYSQL_ASSOC)) !== false){ $data[] = $row; // add the row in to the results (data) array } print_r($data); // print result This give me the following corrrect data for the table: Array ( [0] => Array ( [FirstName] => Alona [LastName] => Burnett [Amount] => 1000.00 ) [1] => Array ( [FirstName] => Anna Marie [LastName] => Hartman [Amount] => 1200.00 ) [2] => Array …

Member Avatar
Member Avatar
+0 forum 2

Below is a sample code using the [URL="http://developer.yahoo.com/yui/slider/"]YUI Slider Control[/URL]. How can I get the photo to zoom in and out proportionally as the slider moves up and down? P.S. I am open to any existing working scripts. I have not been able to find any that does a variable zoom. [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>Bottom to top Vertical Slider</title> <style type="text/css"> /*margin and padding on body element can introduce errors in determining element position and are not recommended; we turn them off as a foundation for YUI CSS treatments. …

Member Avatar
Member Avatar
+0 forum 5

I am working on a site that has more menu items than will fit on the screen of standard monitors. I am looking for a nice, simple, and easy to implement free horizontal menu that fits on one line and has left and right arrows to scroll the hidden menu items onto the screen. I do not want to go to two lines of menu items or multilevel. CSS and jQuery code are OK. I have not been able to find anything. If you know of any, please let me know. Other ideas are welcome also. Thanks.

Member Avatar
Member Avatar
+0 forum 3

I am trying to show two hidden <div> (lines 54 & 55) depending on the value of a session variable. I know the "if" statement is working because the alert tests I have do show when the code is run. The "Viewing all whose payment has NOT been confirmed." should display if the condition is false while the "Viewing all who have been confirmed." should display if the condition is true. However, neither phrase is displayed. Can anyone help me out? A snippet of my code follows. [CODE] <?php session_start(); if(isset($_SESSION['validUser'])) { if ($_SESSION['validUser']!= "True") die("You are not allowed here!!"); …

Member Avatar
Member Avatar
+0 forum 3

I am trying to get two radio buttons and their labels to lineup next to each other horizontally. I have tried various CSS code to do so but it never works correctly. The label for the second button is dropping down below its' radio button. Below is code for sample form and CSS. Can someone help me out? Thanks in advanced. Form Code: [code] <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <head> <title>Registration Form</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div id="page-wrap"> <div id="contact-area"> <form id="registerForm" method="post" action="#"> <label for="FName">First Name:<span class="red">*</span></label> <input …

Member Avatar
Member Avatar
+0 forum 5

I have a page with one image that I need to center both horizontally and vertically in the browser window and also to fit vertically without going past the viewport of the screen. It needs to be able to do this on IE7+/Firefox 3+ and all variations of screen resolutions and sizes. The following code is most promising but does not work in IE7. (I don't have 8 yet.) I think the line iw=document.body.clientWidth;ih=document.body.clientHeight;} is not correct for IE. Can someone know the fix for this or have a better way of achieving my goal? You can see the test …

Member Avatar
Member Avatar
+0 forum 12

My site looks like I want it to in IE but there are several problems when viewing in FF. Compare [url]http://www.senatorbarkley.com/bio1.htm[/url] between the two browsers. On right side, the white box "Bookmark This Page" is to the left instead of being centered. The yellow is not going down below the white box. How can I fix these? Then in page [url]http://www.senatorbarkley.com/bio2.htm[/url] I add two buttons in the gold area at the top. They display just fine in IE but in FF the text in the main center runs out of the center column. The Search button does not even show …

Member Avatar
Member Avatar
+0 forum 3

I have a page that loads a text box and an image the user has selected from another page. I can get them to display but I need to be able to have the image fit under the text. Right now the image is over the text. I have a sample page to look at: [url]http://www.lovingmemoriesofmemphis.com/otest.htm[/url] I have tried using various JavaScript examples of moving a <div> but I cannot get it to work. Can someone please help me with this? I have been trying to get this to work for over a week now. The text and images will …

Member Avatar
Member Avatar
+0 forum 8

The End.