
darish
Members-
Posts
22 -
Joined
-
Last visited
Everything posted by darish
-
yeah, the columm name was differente, I fix that, but still the same :S not working
-
still not working . And its not sending me to the right place when I click "adicionar". Sends me to a random page :S
-
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
-
<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?
-
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
-
I want someone to help me in small things , php / html, I dont mind to pay, but my budget isnt good.
-
I want someone to help me in small things , php / html, I dont mind to pay, but my budget isnt good.
-
So I need some help in all my website, cuz I failled some details , if someone would give me 10 minutes for me :s
-
<?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" ?
-
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
-
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
-
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 :/
-
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)
-
ok, thanks
-
it only fixed one thing, not it doesnt appear 2 edit buttoms... but it still , everything dissapears :S
-
It doesnt work :S I apllied your code, and then boom , everything dissapear in main page... everything wont wrong :S can u help me via skype? or something?
-
<tbody> <?php include "config.php"; $id=$_GET['id']; $qry=mysql_query("select * from register where id='$id'"); $count=mysql_num_rows($qry); while($get=mysql_fetch_array($qry)) {$radio=$get['active'];?> <tr> <th width="40%">Primeiro Nome</th> <th> <input type="text" name="fname"class="form-control" placeholder="Introduz Nome" onKeyPress="return alpha(event)" style="text-transform:lowercase;" value="<?php echo $get['fname']; ?>" required> <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 width="40%">Ultimo Nome</th> <th> <input type="text" name="lname"class="form-control" placeholder="Intrudos Apelido" onKeyPress="return alpha(event)" style="text-transform:lowercase;" value="<?php echo $get['lname']; ?>" required> <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 width="40%">Numero</th> <th> <input type="text" name="mobile"class="form-control" placeholder="Introduz Numero" onKeyPress="return alpha(event)" style="text-transform:lowercase;" value="<?php echo $get['mobile']; ?>" required> <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 width="40%">Email</th> <th> <input type="text" name="email"class="form-control" placeholder="Introduz Email" onKeyPress="return alpha(event)" style="text-transform:lowercase;" value="<?php echo $get['email']; ?>" required> <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 width="40%">Cidade</th> <th> <input type="text" name="city"class="form-control" placeholder="Introduz Cidade" onKeyPress="return alpha(event)" style="text-transform:lowercase;" value="<?php echo $get['city']; ?>" required> <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 width="40%">Empresa</th> <th> <input type="text" name="company"class="form-control" placeholder="Introduz Empresa" onKeyPress="return alpha(event)" style="text-transform:lowercase;" value="<?php echo $get['company']; ?>" required> <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 width="40%">Morada</th> <th> <input type="text" name="address"class="form-control" placeholder="Introduz Morada" onKeyPress="return alpha(event)" style="text-transform:lowercase;" value="<?php echo $get['address']; ?>" required> <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>Activo/Suspendido</th> <td> Activo<input type='radio' name='radio' id='radio' value="1" <?php if ($radio=='1') echo "checked=checked"; ?>/> Suspendido<input type='radio' name='radio' id='radio' value="0" <?php if ($radio=='0') echo "checked=checked"; ?>/> <input type="hidden" name="id" value="<?php echo $_GET['id'];?>" /> <input type="hidden" value="Submit" name="submit" /> </td> </tr> </tbody> </table> <header class="panel-heading"><div align="center"><button type="submit" class="btn btn-primary">Editar</button></div></header></form> <?php } ?> what it doesnt do : It doesnt edit at all :S what it does do : it shows all the things from the data base, and it only edit the "email" , thats the only thing that it works o.O what should do : Edit all 7 things .. not only the email :S
-
So I changed name in all , to their real name :S, but still the same problem... u told me to re-declare the same function multiple times .. but I need to change something o.O I think... ?
-
<?php include "config.php"; $id=$_GET['id']; $qry=mysql_query("select * from register where id='$id'"); $count=mysql_num_rows($qry); while($get=mysql_fetch_array($qry)) {$radio=$get['active'];?> <tr> <th width="40%">Primeiro Nome</th> <th> <input type="text" name="email"class="form-control" placeholder="Introduz Nome" onKeyPress="return alpha(event)" style="text-transform:lowercase;" value="<?php echo $get['fname']; ?>" required> <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 width="40%">Ultimo Nome</th> <th> <input type="text" name="email"class="form-control" placeholder="Intrudos Apelido" onKeyPress="return alpha(event)" style="text-transform:lowercase;" value="<?php echo $get['lname']; ?>" required> <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 width="40%">Numero</th> <th> <input type="text" name="email"class="form-control" placeholder="Introduz Numero" onKeyPress="return alpha(event)" style="text-transform:lowercase;" value="<?php echo $get['mobile']; ?>" required> <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 width="40%">Email</th> <th> <input type="text" name="email"class="form-control" placeholder="Introduz Email" onKeyPress="return alpha(event)" style="text-transform:lowercase;" value="<?php echo $get['email']; ?>" required> <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 width="40%">Cidade</th> <th> <input type="text" name="email"class="form-control" placeholder="Introduz Cidade" onKeyPress="return alpha(event)" style="text-transform:lowercase;" value="<?php echo $get['city']; ?>" required> <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 width="40%">Empresa</th> <th> <input type="text" name="email"class="form-control" placeholder="Introduz Empresa" onKeyPress="return alpha(event)" style="text-transform:lowercase;" value="<?php echo $get['company']; ?>" required> <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 width="40%">Morada</th> <th> <input type="text" name="email"class="form-control" placeholder="Introduz Morada" onKeyPress="return alpha(event)" style="text-transform:lowercase;" value="<?php echo $get['address']; ?>" required> <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> I think this will be good now :S , so it only changes the last one -.- ("morada" in this case) and it changes email instead :/
-
[m]include "config.php"; $id=$_GET['id']; $qry=mysql_query("select * from register where id='$id'"); $count=mysql_num_rows($qry); while($get=mysql_fetch_array($qry)) {$radio=$get['active'];?> Primeiro Nome Ultimo Nome Numero Email Cidade Empresa Morada Submit Its and EDITING PAGE. But the only thing its working = When I change the name on "Morada" ... it changes the name of "email" instead ... and thats the only thing that is working :S , maybe u can send me a code of update? :S
-
Already fix it ^^ , thank you, dont know how to close thread :S
-
error in the normal page : http://prntscr.com/6yp0ja error in the code: http://prntscr.com/6yp0ou Thats why I said it was on database, but if its not , is there something wrong? :S
-
whats does "chetan123" ? :S
-
Well, my website is not reading the "config.php" page , so its not going to "data base" :/ can someone help me out , why is not ? its probably a easy thing to correct to someone who knows :3 sry about my english, and I hope I posted this in the right place. config page only have this <?php @session_start(); $connectdb=mysql_connect("localhost","7milimetros","Chetan123"); $usedb=mysql_select_db("7milimetros",$connectdb); $_SESSION['token']=session_id(); ?> Is something wrong here? the data base is called "7milimetros" ...