Jump to content

darish

Members
  • Posts

    22
  • Joined

  • Last visited

darish's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. yeah, the columm name was differente, I fix that, but still the same :S not working
  2. still not working . And its not sending me to the right place when I click "adicionar". Sends me to a random page :S
  3. Yeah, I guess I dont have the insert code ... <?php if(isset($_POST['enviar']) && $_POST['enviar']=="guardar"){ $pdes=$_POST['pdes']; $pname=$_POST['pname']; $image=$_POST['image']; $result = mysql_query("insert into categorias(pdes, pname, image) values ('$pdes', '$pname', '$image')") or die (mysql_error()); if($result){ echo "<meta http-equiv=\"refresh\" content='0; url=?pg=4&msg=1'>", exit; } else{ echo "<meta http-equiv=\"refresh\" content='0; url=?pg=4&msg=2'>";exit; } } ?> I decided to put this code, but still not working, can someone give me a insert code ? So I can do it? it only got 3 variables .. pname / pdes / image
  4. <tr> <th width="40%">Nome da categoria</th> <th><input type="text" name="pname"class="form-control" placeholder="Introduz o Titulo da Descrição" onKeyPress="return alpha(event)" style="text-transform:lowercase;" required> <span id="error" style="color: Red; display: none">* Special Characters not allowed</span> <script> function alpha(e) { var k; document.all ? k = e.keyCode : k = e.which; return ((k > 64 && k < 91) || (k > 96 && k < 123) || k == 8 || k == 32 || (k >= 48 && k <= 57)); } </script> </th> </tr> <tr> <th>Descriçao Categoria</th> <td><input type="text" name="pdes" class="form-control" placeholder="Introduz a Descrição da categoria" required></td> </tr> <tr> <th width="40%"><i class="icon_profile"></i>Image</th> <td><input type="file" name="image" required></td> </tr> </tbody> </table> <header class="panel-heading"><div align="center"><button type="submit" class="btn btn-primary">Adicionar</button></div></header> </form> Its not working, can someone tell me , whats happening?
  5. Hello, I want something like the client needs to be login to write a message > then a notification appears on admin panel > Admin goes, and answer > it goes to "client messages"> also..client should get warned with a e-mail, that he got a message on the website... I guess its called ticket system... I dont know rly the name ... Pm me for more details
  6. darish

    help

    I want someone to help me in small things , php / html, I dont mind to pay, but my budget isnt good.
  7. darish

    help

    I want someone to help me in small things , php / html, I dont mind to pay, but my budget isnt good.
  8. darish

    some details

    So I need some help in all my website, cuz I failled some details , if someone would give me 10 minutes for me :s
  9. <?php @session_start(); if($_SESSION['uname']=="") header("location:login.php?err=Please Login First"); ?><?php session_start(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Karmanta - Bootstrap 3 Responsive Admin Template"> <meta name="author" content="GeeksLabs"> <meta name="keyword" content="Karmanta, Dashboard, Admin, Template, Theme, Bootstrap, Responsive, Retina, Minimal"> <link rel="shortcut icon" href="img/favicon.png"> <title>7milimetros Admin</title> <!-- Bootstrap CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <!-- bootstrap theme --> <link href="css/bootstrap-theme.css" rel="stylesheet"> <!--external css--> <!-- font icon --> <link href="css/elegant-icons-style.css" rel="stylesheet" /> <link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" /> <!-- Custom styles --> <link href="css/style.css" rel="stylesheet"> <link href="css/style-responsive.css" rel="stylesheet" /> <!-- HTML5 shim and Respond.js IE8 support of HTML5 --> <!--[if lt IE 9]> <script src="js/html5shiv.js"></script> <script src="js/respond.min.js"></script> <script src="js/lte-ie7.js"></script> <![endif]--> </head> <body> <!-- container section start --> <section id="container" class=""> <!--header start--> <?php include "header.php"; ?> <!--header end--> <!--sidebar start--> <aside> <?php include "aside.php"; ?> </aside> <!--sidebar end--> <!--main content start--> <section id="main-content"> <section class="wrapper"> <!-- page start--> <div class="row"> <div class="col-lg-12"> <section class="panel"> <header class="panel-heading"><div class="letra">Clientes Registados</div> <div class="morças"><div align="center"><form action="registere_suspended.php"><button type="submit" class="btn btn-primary">Suspendidos</button></form></div></div> <div class="morça"><div align="center"><form action="registere_active.php"><button type="submit" class="btn btn-primary"> Ativos </button></form></div></div> <div class="morça"><div align="center"><form action="registere_user.php"><button type="submit" class="btn btn-primary"> Todos </button></form></div></div> <div class="morço">Ver:</div> </form> <table class="table table-striped table-advance table-hover"> <tbody> <tr> <th><i class="icon_profile"></i> Nome</th> <th><i class="icon_mobile"></i> Numero</th> <th><i class="icon_mail"></i> Email</th> <th><i class="icon_building"></i> Cidade - Empresa</th> <th><i class="icon_map_alt"></i> Morada</th> <th><i class="icon_calendar"></i> Status</th> <th><i class="icon_cogs"></i> Ação</th> </tr> <?php include "config.php"; $qry=mysql_query("select * from register"); while($get=mysql_fetch_array($qry)) { $a_i=$get['active']; if($a_i=='0') { $a_i_f="Suspendido"; } else { $a_i_f="Ativo"; } $email=$get['email']; $fname=$get['fname']; $lname=$get['lname']; $mobile=$get['mobile']; $city=$get['city']; $company=$get['company']; $address=$get['address']; ?> <tr> <td><?php echo $get['fname']; ?> <?php echo $get['lname']; ?></td> <td><?php echo $get['mobile']; ?></td> <td><?php echo $get['email']; ?></td> <td><?php echo $get['city']; ?> - <?php echo $get['company']; ?></td> <td><?php echo $get['address']; ?></td> <td><?php echo $a_i_f; ?></td> <td><div class="btn-group"><a class="btn btn-success" href="register_edit.php?id=<?php echo $get['id']; ?>"><i class="icon_tool"></i></a><a class="btn btn-danger" href="register_delete.php?id=<?php echo $get['id']; ?>"><i class="icon_close_alt2"></i></a></div></td> </tr><?php } ?> </tbody> </table> </section> </div> </div> <!-- page end--> </section> </section> <!--main content end--> </section> <!-- container section end --> <!-- javascripts --> <script src="js/jquery.js"></script> <script src="js/bootstrap.min.js"></script> <!-- nice scroll --> <script src="js/jquery.scrollTo.min.js"></script> <script src="js/jquery.nicescroll.js" type="text/javascript"></script><!--custome script for all page--> <script src="js/scripts.js"></script></body> </html> So this is all my "all" page , what I need to change to appears white in the "all" ?
  10. http://prntscr.com/74p4rr , where it says "ver: todos - Ativos - Suspendidos" ... it means "view: All - Active - Suspended" in english , and I want http://prntscr.com/74p59l to when I select "all" it shows like a white, cuz its selected ... the same with "active and suspended" ... I can explain better if u dont get it :S
  11. well, I tried a lot of things, still error, can u help me via chat? if u are going to help me from here, it will take to much time :S I just want edit page, nothing more xD
  12. oh , more issues , it doesnt work o.O it doesnt edit at all ... and it doesnt appear the right information :S , looks to me than this is a hard thing to do :/
  13. well, now it appears everything, but looks like some css efects dissapear, all stayed to close and some more issues... and the same thing is appearing twice x)
  14. it only fixed one thing, not it doesnt appear 2 edit buttoms... but it still , everything dissapears :S
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.