Jump to content

Mudsaf

Members
  • Posts

    462
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Mudsaf

  1. I tried google inspect element and changed some style values. #fw-mainnavwrap {

    • display: block;
    • text-transform: uppercase;
    • font: bold 18px "arial narrow", "Verdana", "Arial", sans-serif;
    • letter-spacing: -1px;
    • position: absolute;
    • overflow: visible;
    • margin-top: 55px;
    • width: 1000px;
    • height: 55px;
    • z-index: 800;
    • margin-left: 225px;

    } OR #fw-mainnavwrap {

    • display: block;
    • float: right;
    • text-transform: uppercase;
    • font: bold 18px "arial narrow", "Verdana", "Arial", sans-serif;
    • letter-spacing: -1px;
    • position: absolute;
    • overflow: visible;
    • margin-top: 55px;
    • width: 1000px; (Changed)
    • height: 55px;
    • z-index: 800;
    • left: 225px; (From Right to left)

    } Looks like this (attachment)

    post-77947-0-91809700-1363374101_thumb.jpg

  2. umm the loop is working fine, only thing is wrong that it gives error in console that actually doesn't effect the code. So the code works but id like it to be error-free. Atm its giving error on this line

    if (names_check[i].name == $("#username_reg").val()) {

    names_check[i].name // .name part which comes from  var names_check = [{"name" :"example"}];

  3. The insert works fine, i tried with phpMyAdmin query window and worked. Check your mysql field length + etc. Also you could check error code.

    mysql_query($sql) or die(mysql_error());

    This is the order you're adding data user_id,ap_id,big,small 'SELECT id_add_car FROM add_new_car WHERE date=NOW() ORDER BY id_add_car,date DESC LIMIT 1','2','$filename','$filename1'

  4. So this is your html file for example index.html

    <html><body><h1>My First Heading</h1><p>My first paragraph.</p><a href="http://www.htmlandcssbook.com/">This is a link</a><p>This is a paragraph.</p><hr><p>This is a paragraph.</p><hr><p>This is a paragraph.</p><p>This is<br>a paragraph<br> with line breaks</p><img src="images/cf2.png" alt="sewing" /></body></html>

    So you have to link it like this [FOLDER WHERE IS YOUR HTML FILE]/images/ of your html file

    index.htmlimages/cf2.png // This means its in images folder

  5. I'm just wondering how to fix my problem. I have same game with different width + height and its same size as other while their width + height is smaller? Example

    http://mudsaf.info/games/index.php?playgame=159(Width: 710, Height: 533)

    Other site

    http://www.mochimedia.com/games/play/from-nothing(Width: 640, Height: 480)

    But its actually same size.

  6. $_SESSIONS is stored on server unlike cookies stored on browser cache. So you can easily create login areas with sessions.

    Cookies - ClientSessions - Server

    Also you can check if posts ain't empty by

    if (isset($_POST['mydata']) && !empty($_POST['mydata'])) { //Checks if exists and not empty//Dosomething}

    And on if you dont have magic quotes enabled on your server your website is vulnerable for sql injections. I usually do it like code below.

    if (get_magic_quotes_gpc()) { //MAGIC QUOTES ENABLED//Magic quotes enabled$name=$_POST['name'];$price=$_POST['price'];} else {$name=mysql_real_escape_string($_POST['name']);$price=mysql_real_escape_string($_POST['price']);}

×
×
  • Create New...