Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #4K
~5K People Reached
Favorite Tags
Member Avatar for FoxyBit

Hi all, I am working on a website that requires two queries from a table at the same time. They must select a row based on the id, and then another random one not including the row just selected. I currently have: $query = $pdo->prepare('SELECT title, content FROM cards WHERE …

Member Avatar for FoxyBit
0
213
Member Avatar for niche1

Is it possible to trigger the action of a form with a submit button that's outside the form tags? If so, how should this example be rescripted to make the input tag work outside the form tags? <html> <body> <form name="input" action="html_form_action.asp" method="get"> First name: <input type="text" name="FirstName" value="Mickey" /><br …

Member Avatar for razvysb
0
941
Member Avatar for niche1

Can someone work createElement into this script to demo its use? I think the two can work together, but I don't know how. [CODE]<html> <head> <script type="text/javascript"> function myFunction(anid) { var cssatr = document.getElementById(anid).getAttribute('style'); // get the value of "style" var htmlanid = document.getElementById(anid).innerHTML; // get html code return ('css …

Member Avatar for niche1
0
119
Member Avatar for niche1

how do I get the css and the html into the function? [code]<html> <head> <script type="text/javascript"> function myFunction() { return ("Hello world!"); } </script> </head> <body> <div style="float:right;"> <script type="text/javascript"> document.write(myFunction()) </script> </div> </body> </html>[/code]

Member Avatar for niche1
0
121
Member Avatar for niche1

I have a html script with some JS and a php script that produces a comma delimited string of suggestions of first names to enter into an input field. It only works for "B" names right now. I need to turn this script into a combo box and can't think …

Member Avatar for niche1
0
162
Member Avatar for niche1

I know vertical-align works great on one line of text, but I can't get this script to vertically (and horizontally) center two lines of text. What do I need to do change without changing the size of the div? [CODE]echo '<div style="float:left;width:171px;height:96px;text-align:center;display:table-cell;vertical-align:text-middle;background-color:yellow;">'; echo '<h1 >1/35 Scale House</h1>'; echo '</div>';[/CODE]

Member Avatar for niche1
0
75
Member Avatar for niche1

This script displays the way I need it to when I manually insert it into my script with the correct value for $expdat: <span style="background-color:yellow">Expires ' . $expdat . '. </span> How should I escape the quotes to be able to echo it from a mysql table? If I just …

Member Avatar for hielo
0
194
Member Avatar for niche1

What's the notation to add data from a variable to existing data in a field? mysql_query("UPDATE stk SET some_field = '????????????' WHERE id = " . $upc_key . "") or die(mysql_error());

Member Avatar for niche1
0
79
Member Avatar for niche1

I'm trying to write a function that counts characters in a <textarea>. My current problem is to trigger an alert in my function so I can know I'm on the right track. What do I need to add to my JS to get the alert to work?[CODE]<!doctype html> <html> <head> …

Member Avatar for Troy III
0
128
Member Avatar for niche1

I need to understand how to positition/float an image created by php. I know how to position/float JPG in PHP, but am unclear of how to position/float an image generated by PHP. This script displays a barcode in the upper left-hand corner of the page. I think the header script …

Member Avatar for diafol
0
229
Member Avatar for niche1

I have a script that supposed to display the barcode for each item in the selection (66 rows in this case). However, it displays the barcode from the last item 66 times. How do I display each item selected? I know all the result of the mysql selection is complete. …

Member Avatar for vibhaJ
0
99
Member Avatar for niche1

How do I advance the pointer to the next row within a while loop using mysql_fetch_array?[CODE]while ($row = mysql_fetch_array($result)) { $zip11 = $row['postnet ip']; include "postnet2.php"; //SOME MORE PROCESSING //I NEED TO ADVANCE THE POINTER HERE TO THE NEXT ROW //SOME MORE PROCESSING } [/CODE]

Member Avatar for niche1
0
60
Member Avatar for niche1

My script displays two rows of boxes three boxes wide. Why is the center box of the second row high? I need it to be even with the left and right box. [CODE] <html> <head> <style type="text/css"> div.ex { width:720px; height:985px; margin-bottom:0px; padding:0px; border:5px solid gray; } div.adv_topleft { float:left; …

Member Avatar for niche1
0
101
Member Avatar for niche1

This works: $result = mysql_query("SELECT * FROM plan WHERE begin BETWEEN '2010-09-01' AND '2010-09-30'") or die(mysql_error()); I need some version of this to work where begin and end are currently timestamped columns in my table: $result = mysql_query("SELECT * FROM plan WHERE date("Y-m-d") BETWEEN begin AND end") or die(mysql_error()); What's …

Member Avatar for niche1
0
83
Member Avatar for niche1

mouseovers work fine in FF, c, o & s, but not in ie8. Why? [CODE] <!-- Based on changing temp11e.php code to produce html from b7b.php in this script 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> <meta name="description" content="Save money" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> …

Member Avatar for niche1
0
262
Member Avatar for niche1

How can I keep the flyout visible, that's triggered with the "By Neighborhood" hover? My script: [code] <!--Sunday 100815--> <!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> <meta name="description" content="Save money" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>savebop </title> <script type="text/javascript"> //<![CDATA[ function showmenu(elmnt) { outerdiv=document.getElementById(elmnt); outerdiv.style.visibility="visible"; //now …

Member Avatar for niche1
0
90
Member Avatar for niche1

[url]http://www.lincolnsrealdeals.com/loc2f.php[/url] produces three javascript errors: Line 49, Column 27: character ";" not allowed in attribute specification list Line 49, Column 27: element "innerdivs.length" undefined Line 54, Column 9: end tag for "innerdivs.length" omitted, but OMITTAG NO was specified What are the errors really saying?

Member Avatar for niche1
0
85
Member Avatar for niche1

$ct is my array: array(4) { ["a"]=> int(1) ["b"]=> int(2) ["z"]=> int(2) ["c"]=> int(1) } I need to put it in a two column database where "item" is col1 and "count" is col2 where the first row has an "a" in col1 and 1 in col2, 2nd row has a …

Member Avatar for niche1
0
60
Member Avatar for niche1

This url : [url]http://www.lincolnsrealdeals.com/nav5c.html[/url] has passed validation and renders the way I need it to on firefox, but not on ie8. The problem is that the hover over "By Location" renders the notation: "Where do you want to buy it?" under all the navigation when it's meant to render just …

Member Avatar for niche1
0
84
Member Avatar for niche1

the html version of this php script works. What's wrong with this php script? It produces:Parse error: parse error, expecting '','' or '';'' in C:\wamp\www\temp8.php on line 5 [code] <html> <body> <?php echo '<input onMouseOver="this.style.color='red'" onMouseOut="this.style.color='blue'" style="position:absolute;left:111px;top:290px;border:none; color:blue;border:none;background:transparent;font:bold;font-size:150%;cursor:pointer;" type="Submit" value="Print Selections" />'; ?> </body> </html> [/code]

Member Avatar for niche1
0
123
Member Avatar for niche1

I can get this to work: $counter = 2; $src = ",'new[item" . $counter . "]'"; echo $src; But, not this: $counter = 2; $src = ",'$new[item" . $counter . "]'"; echo $src; Where $new has already been defined as an array. What do you think is the problem?

Member Avatar for niche1
0
191
Member Avatar for niche1

I have developed a with Php and Mysql. As more people are working on it simultaneously, there is the danger that two users have the same form on the screen, and one user changes fields, while the other is then working on old information. When this latter submits, he will …

Member Avatar for diafol
0
157
Member Avatar for niche1

How do I center this form so it stays centered when I adjust the size of my browser window? [CODE] <form> First name: <input type="text" name="firstname" /> <br /> Last name: <input type="text" name="lastname" /> </form> [/CODE] Thank-you.

Member Avatar for djzia
0
255
Member Avatar for niche1

Please see the comment in my code. How would you do it? Thanks. [CODE]<div style='width:400px; margin-left:auto; margin-right:auto;'> <table cellspacing="10" border="2"> <form action="" method="post"> <tr> <!--How do I get this cell to right justify without the align attribute which has been depreciated--> <td align="right"> Login Email: </td> <td> <input size="24" type="text" …

Member Avatar for Spycat
0
77
Member Avatar for niche1

I need to get my pages to automatically adjust when I adjust the size of the window in my browser. Please direct me to some tutorials that can help me or give me some hints for my how to effectively search this issue. Thanks.

Member Avatar for CommDave
0
79
Member Avatar for niche1

I successfully scripted an fetch array while loop on a table called example. What's the name of the function that will return the name of the array that was created by the fetch array while loop? What's the name of the function that will turn the number of rows in …

Member Avatar for Stefano Mtangoo
0
58
Member Avatar for niche1

I found this script and don't understand where the argument 'next thursday' came form. I can't find it in the manual for the DateTime class. Shouldn't I be able to find it there? [CODE]<?php $date = new DateTime('next Thursday'); echo $date->format('l, F jS, Y'); ?>[/CODE] Thanks

Member Avatar for chaines51
0
69
Member Avatar for niche1

This script works with require_once and produces warnings for line 6 when I try to use $mysqli = new... (which I've commented out). Please help me with this script: [codebox]<?php require_once "connect_to_mysql.php"; //$mysqli = new mysqli("localhost","user","pw","db"); $result = mysql_query("SELECT * FROM example") or die(mysql_error()); echo "<table border='1'>"; echo "<tr> <th>Name</th> …

Member Avatar for kvprajapati
0
408
Member Avatar for niche1

Please, what does "(!$var)" mean? I think it might mean "is $var null". Also, what's the PHP reference? Thanks.

Member Avatar for edwinhermann
0
111
Member Avatar for niche1

I need to import TEST.TXT (located in the same directory as my script It has 1 Record: "6","Lunch","234" Iget this error message: Warning: mysqli_close() expects exactly 1 parameter, 0 given in C:\wamp\www\test\import.php on line 19 Why? Heres my script: [code=php]<?php // Connect to the MySQL server and select the corporate …

Member Avatar for niche1
0
113