avraamG13
Members-
Posts
11 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
avraamG13's Achievements
Newbie (1/5)
0
Reputation
-
Thank you very much, just what i was looking for ... Thank you again and sorry for my english
-
Hello, lets say i have a table (countrys) with some countrys... UK , USA, Italy ... What i want, is a way lets say to show the country (UK) and next how many rows i have total with country UK, and this it will continue with the next country Example: UK - 10 USA - 1 Italy - 7 Any code examples how i can do this please?? Thank you
-
This document was successfully checked as XHTML 1.0 Transitional! ----------------------------------------------------------------------- to be honest i dident know about the website.. thank you .. ive fixed everything and its the same.. i must forget something...
-
Hello, i need some help.. Im trying to make header and content of my site to be the one near the other please see examples images: Error image: http://www.anthelo.org/error/ERROR.png How to look when fixed: http://www.anthelo.org/error/FIXED.png .css code /* CSS Document */ body{ padding:11px 0 14px 0; margin:0; background-color:#fff; color:#000; background: url('../images/layout/background_body.gif'); } div, h1, h2, p, form, label, input, textarea, img, span{ margin:0; padding:0; } ul{ margin:0; padding:0; list-style-type:none; font-size:0; } .spacer{ clear:both; font-size:0; line-height:0; } #ads-top-blue { padding-top: 35px; padding-left: 465px; } /* body */ #main { position:relative; width:981px; clear:both; height:auto; margin:auto; background: url('../images/main/main.gif') repeat-y center; } #content_outer { //border-top: 1px solid #FFF; width:981px; } .content { padding-left: 465px; color: #444; padding: 16px; font: 10px Verdana, Arial, Helvetica, sans-serif; } /* body */ #body{ width:auto; padding:13px 1px 13px 2px; margin:0 0 4px 0; } /*------------------------------------------------left--------------------*/ /* Header */ #header{ background:url(../images/header/header.gif) 0 0 no-repeat; width:981px; height:130px; position:relative; margin: 0 auto; top: -11px; } #header ul{ background:url(../images/header/nav_bar.gif) 0 0 no-repeat; width:847px; height:29px; position:absolute; left:31px; padding:0 0 0 72px; } #header ul li{ background:url(../images/header/nav_div.gif) right top no-repeat; height:27px; float:left; padding:0 1px 0 0; } #header ul li a{ display:block; background:url(../images/header/nav_bg.gif) 0 0 repeat-x; padding:0 14px; font:bold 11px/27px Arial, Helvetica, sans-serif; color:#344A04; background-color:inherit; text-decoration:none; } #header ul li a:hover{ background:url(../images/header/nav_hover.gif) 0 0 repeat-x; color:#fff; background-color:inherit; } #header ul li a.hover{ display:block; background:url(../images/header/nav_hover.gif) 0 0 repeat-x; color:#fff; padding:0 14px; font:bold 11px/27px Arial, Helvetica, sans-serif; background-color:inherit; text-decoration:none; cursor:text; } #header ul li.last{ background-image:none; height:27px; float:left; } #header img.logo{ position:absolute; left:40px; top:30px; width:auto; height:auto; } /*------------------------------------------------header--------------------*/ /* footer */ HTML 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" xml:lang="en" lang="en"> <head> <title>testing website</title> <meta http-equiv="Content-Language" content="" /> <meta http-equiv="Content-Type" content="text/html; CHARSET=UTF-8" /> <link rel="stylesheet" href="<?php echo($sitepath); ?>css/screen.css" media="screen" /> <link rel="stylesheet" href="<?php echo($sitepath); ?>css/menu.css" media="screen" /> <link rel="shortcut icon" href="<?php echo($sitepath); ?>images/favicon.ico" type="image/ico" /> </head> <body> <div id="header"> <ul> <li><a href="<?php echo($sitepath); ?>" class="hover">Home</a></li> <li><a href="?action=nothing"></a></li> <li><a href="?action=nothing"></a></li> <li><a href="?action=nothing"></a></li> <li><a href="?action=nothing"></a></li> <li><a href="?action=nothing"></a></li> <li><a href="?action=nothing"></a></li> <li><a href="?action=nothing"></a></li> <li class="last"><a href="?action=nothing"></a></li> </ul> <a href="<?php $sitepath ?>"><img src="images/header/logo.gif" alt="" width="249" height="72" border="0" class="logo" /></a> <div id="ads-top-blue"> <?php if($ads_top) { ?> <?php ads_top(); ?> <?php } ?> </div> </div> <div id="main"> <div class="left" id="content_outer"> <div class="content"> Hello </div> </div> </div> </body> </html> I hope an expert can help me Thank you very much
-
checkbox - how to select and siplay info from db
avraamG13 replied to avraamG13's topic in PHP Coding Help
Hey and thanks for your help, ive try the code but im getting the error: Fatal error: Call to undefined function odbc_connect() in .......................# Ive google it but i cant find a solution (OLD) Edited: Taking a closer look and ive found that this must be enable from your hosting provider, my provider cant offer this for share hosting so.. im unlucky .. Is there any other way or just give it up? Thank you -
checkbox - how to select and siplay info from db
avraamG13 replied to avraamG13's topic in PHP Coding Help
is there any chance that you show me code exaomples becuse im new to php (noob) and i need examples to understant more please? -
Hello, I'm having a code that shows in a list checkbox and next the row name i have on my database I want to select a checkbox and when i press display to show me tha information of the specific category if checked with my checkbox Here is my code: Thank you
-
Hello again, Lets say i have 2 diferent tables, players: id_player name_player players_selections_cat: id_player positions I have a form that will submit in table 'players_selections_cat' some info, but i want to check from table 'players' row 'id_player' (this has ONLY numbers) if the 'id_player' is on the database to enter the info i want or else show a message that the info im trying to enter is not exist in the database I hope you understant Thank you
-
[SOLVED] update field form errors - need help
avraamG13 replied to avraamG13's topic in PHP Coding Help
Still nothing.. i dont know maybe im doing something wrong in my form or something? -
[SOLVED] update field form errors - need help
avraamG13 replied to avraamG13's topic in PHP Coding Help
i dident understant what i have to change . Can you show me an example of what you mean please? Thank you -
Hello, i really need your help on this... Im building an update field form but i cant make it work and alwaying (after googleing.. and trying new codes) getting any error you can image of.. Anyone can make the changes for me? and also explaing me what im doing wrong so i will learn some thinks?? P.S Aso to show me how i can make it not to post if the update data is empty and 'sort_order' row is not numbers (1-99 is the limit) <? if(isset($_GET['edit'])) { $name = $_POST["name"]; $remarks = $_POST["remarks"]; $sort_order = $_POST["sort_order"]; //$query = "SELECT * FROM players_category WHERE news_id = id = '{$_GET['edit']}'"; $query = "SELECT * FROM players_category WHERE id = '{$_GET['edit']}'"; $result = mysql_query($query); $myrow = mysql_fetch_array($result); } ?> <? if(isset($_GET['Submit'])) { $name = $_POST["name"]; $remarks = $_POST["remarks"]; $sort_order = $_POST["sort_order"]; $result = mysql_query($query); $query = "UPDATE players_category SET name = '$name', remarks = '$remarks', sort_order = '$sort_order' WHERE id=$id"; } ?> <form name="Update" method="post" action=""> <table id="Update" style="width: 100%"> <tr> <td colspan="2" class="titlebarmain"><strong>Edit Selection</strong></td> </tr> <tr> <td style="width: 91px">Name: </td> <td> <input name="name0" maxlength="30" size="30" type="text" value="<?php echo $myrow["name"] ?>" class='textbox'> (max. 30 characters)</td> </tr> <tr> <td style="width: 91px">Remarks:</td> <td> <input name="remarks0" maxlength="120" size="30" value="<?php echo $myrow["remarks"] ?>" type="text" class='textbox'> (max. 120 characters)</td> </tr> <tr> <td style="width: 91px">Sorting:</td> <td> <input name="sort_order0" maxlength="2" size="30" value="<?php echo $myrow["sort_order"] ?>" type="text" class='textbox'> (1-99)</td> </tr> <tr> <td style="width: 91px"> </td> <td> <input type="submit" name="submit" value="Update" class='button' ></td> </tr> </form> </table> Thank you