-
Posts
5,717 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Adam
-
Better to look into the empty and isset functions.
-
You're trying to use variables that haven't been declared. My guess is this line: <? echo $message; ?> Where have you declared $message?
-
Passing Variables from database populated selection box
Adam replied to rbama's topic in PHP Coding Help
... What's that error? -
Can you post the code exactly as you have it? Including where you define $name..
-
It's not bad, I agree with the comment above about the hover colour being too virbrant though. Perhaps you could align each link to the 4 different colours above, but a slightly darker/lighter shade for each?
-
Through the URL: example.com/index.php?param1=value1¶m2=value2
-
I removed the $(document).pngFix() call, and it worked.
-
The problem's with your PNG transparency fix script.
-
Way too over-board on the black. Kind of feels like you're trying to accomplish a gamer-style template. The green starts to give you a head ache after a while as it stands out and draws the eye away from everything else. I think a cool blue would work better, with some other blue highlights through the page, and a few other colours/shades in there too. Content wise there's not much there, and to be honest kind of makes me think what's the point in this? Is there really a need for yet another script / tutorial / article directory site? Personally I think the navigation needs a lot of work, though I wouldn't say move the login to the bottom.. I'd ditch the Google search bar (after all people can search your site and a few billion others much easier through their browser) and place a login form in-place. Make the navigation clearer, add hover effects, etc. Add a home link. Add some bread crumbs or something to make things all the more simpler for the user. Not a bad start I guess, needs work though..
-
PHP FTP_GET - Can't handle special characters
Adam replied to kool_samule's topic in PHP Coding Help
Most likely your "FTP app" doesn't support that character set. Is it a known client or your own custom made? -
I'd guess this is a CSS issue if it's just IE6 having problems... What's the CSS look like for those divs?
-
When I click on the parent item, it just does nothing. I said what error do you get? In FF you can find JS errors in the error console (tools > error console). Most of the popular browsers I believe have some form of console for you to check errors.
-
What error do you get?
-
INSERTING value from a table to another table using checkbox
Adam replied to gilabola's topic in PHP Coding Help
Very vague description of the problem, but I think you need to pass the variables through the URL, for example: <td><a href = "member_carts1.php?order_id=<?php echo $row['CART_ID']; ?>&pro_id=<?php echo $row["PRO_ID"]; ?>&pro_name=<?php echo $row["PRO_NAME"]; ?>&pro_price=<?php echo $row["PRO_PRICE"]; ?>">Order</a></td> If this isn't the solution you need to provide more information. -
That's because NULL != an empty string. In your database structure you have `column` set up as "NOT NULL", which means it cannot take NULL values. So in essence everything in that column will be NOT NULL.
-
That would depend entirely upon your table structure.
-
Your PHP would need to look something like: // run your query while ($row = mysql_fetch_assoc($query)) { echo '<option value="{$row['id']}">{$row['feature_name']}</option>'; } That way the value attribute contains the ID and once the form is submitted that ID will be passed on.
-
http://www.builderau.com.au/program/javascript/soa/Why-I-Love-ECMAScript-4-Real-Decimals/0,339028434,339289678,00.htm
-
Select value from a multidimensional array using a delimited string?
Adam replied to Adam's topic in PHP Coding Help
Thanks for that DavidAM. I actually managed to solve it in a slightly different way using a recursive function: public function get($property) { $tokens = explode('.', $property); $return = $this->properties; foreach ($tokens as $token) { $return = $this->recurseGet($token, $return); if (!$return) { break; } } return $return; } protected function recurseGet($token, $properties) { if (array_key_exists($token, $properties)) { return $properties[$token]; } return false; } Thanks anyway though, much appreciated! -
Select value from a multidimensional array using a delimited string?
Adam replied to Adam's topic in PHP Coding Help
Sorry. I should have mentioned I don't know how many levels the string will go into, should be unlimited. -
jQuery is a JavaScript library. If a user has JS disabled, jQuery won't work. Most *decent* websites out there are written to work with JS disabled, in-fact within most professional companies it's a requirement. Agreed die() errors are shocking, but what *decent* websites do you ever see them?
-
Fair enough you might not, but don't pass on bad advice to other people who believe it's good advice. jQuery is JavaScript?
-
Over 60,000,000 Firefox users? Check out the download count for the "NoScript" add-on: https://addons.mozilla.org/en-US/firefox/addon/722
-
Hey everyone! Bit stuck here. Not sure if I'm thinking about this too much or whether it's just insanely hard. Basically I want to return a value from a multidimensional array based off of a string with delimiters. Probably easier to show you than to explain: $str = 'str1.str2.str3'; $array = array( 'str1' => array( 'str2' => array( 'str3' => 'I want to return this...', ), ), ); So using $str I want to traverse through the array to return 'I want to return this...' Any body have any ideas? I'm pretty stumped! Thanks in advance, Adam
-
Ick! function error($msg) { ?> <html> <head> <script language="JavaScript"> <!-- alert("<?=$msg?>"); history.back(); //--> </script> </head> <body> </body> </html> <? exit; } What if JS is disabled?