No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
25 Posted Topics
I am trying to create an interactive terminal to use in a project that I am working on. the idea is that I will have a web page which looks like a terminal and can use it to work with command line tools. anyway I need to use php as … | |
Hi I have a problem with inserting into the database. This is my code : $insert = $db_con->query("INSERT INTO users (username,password,email,com-name,com-logo,com-phone,com-mobile) VALUES('".$username."','".$enc_pass."','".$email."','".$com_name."','".$profile_path."','".$com_phone."','".$com_mobile."')"); | |
Hi I don't no where to put my question so I thought this might be the best section.My question is that how can I send what'sapp messages to my clients,I mean is there any framework from what'sapp that I can use or a special software that I can buy ?! … | |
Hi I need to put google maps inside my website so that the user can add his location (manually) Then the location will be stored in the database so I can brows it in the display page.I've looking over the web but couldn't find the way to do it :( … | |
Hi I'm working on this project and Ifaced this little problem,which is that I have two tables and I need them to be side by side but the problem is that I get every table in a separate line ! <center> <table border="1" width="40%"> <tr> <td> <center><h5>order</h5></center> </td> <?php $sql_order … | |
Hi I have this table name age John 14 Katy 14 Mark 15 and I want the number of rows where the age is equal to 14 , so in this example the result should be (2) but my problem is that I dont know how to start , so … | |
Hi I'm working on a small project and I faced this problem. when I create a table then I wright a lot of words it doesn't go to the next line (row) it continue to the right so the page become so wide ! so is there any solution for … | |
Hi I'm facing a problem with having two forms in the same page.The problem is that the action is taken from only the first form. For example : <html> <body> <form action='test.php' method='POST'> <input type='submit' /> </form> <form action='testme.php' method='POST'> <input type='submit' /> </form> </body> </html> when I hit on … | |
Hi I"m sorry that there is no code, it's just a question in my mind .. How can I sort the request results as rows.In every row 4 results then the next row 4 results and so on.? | |
Hi I wrote this code and I hope that you can tell me what is wrong with it .! $sql = "INSERT INTO offers (title,description,location,type,status,img,real,username) VALUES('".$title."','".$description."','".$location."','".$type."','".$status."','".$img."','".$real."','".$username."')"; $query = mysql_query($sql) or die(mysql_error()); The error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL … | |
Hi I have this code and the code is working very well but I have an error : Notice: Undefined index: id in /var/www/core/myaccount.php on line 9 Here is my code: <?php session_start(); require_once('inc/config.php'); require_once('inc/header.php'); require_once('inc/functions.php'); login(); if(!$_GET['id']) { header("Location: index.php");} switch($_SESSION['id']) { case $_GET['id']: $id = $_GET['id']; $query = … | |
Hi when I run my code the loop doesn't stop! which force the browser to freez.I don't know what is wrong with the loop I have around 4 users only ! and my query select only one of them here is my code : $id = $_GET['id']; $sql = "SELECT … | |
Hi I'm working on a function and it was working good until I had an error that tells me I should swich from mysql to mysqli so I did swich but I'm having a lot of errors ! (the function is working fine but I have a lot of errors!). … | |
Hi I'm facing this error : Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/core/inc/config.php on line 7 I've tried to replace mysql with mysqli but I faced some errors.So I decided to return to mysql but my … | |
Hi I made a page which check the login information if it is true or not but the code didn't work there is no errors just empty page ! <?php session_start(); ?> <html> <head> <meta http-equiv="content" content="text/html" charset="UTF-8" /> <title>Login checking</title> </head> <body> <?php require_once('inc/config.php'); $username = $_POST['username']; $password = … | |
Hi I'm working on a registration system and I've faced a problem with checking if the email is already inthedatabase this is my checking code $sql = "SELECT * FROM users WHERE email='".$email."'"; $result = mysql_query($sql); $row1 = mysql_fetch_assoc($result); $row1['email']; if($email = $row1['email']) the problem is that when I put … | |
Hi I have a problem with uploading files in php, and I don't know what is wrong :( this is my code : <?php //require_once('inc/config.php'); ?> <html dir="rtl"> <head> <title>تسجيل شركة جديدة</title> <meta http-equiv="content" content="type/text" charset="UTF-8" /> </head> <center> <form action="register.php" method="POST" enctype="mulipart/form-data"> <input type="text" name="username" placeholder="اسم المستخدم" /><br /> … | |
Hi <form action="check.php" method="POST"> <input type="text" name="keywords" /><br /> <input type="submit" value="Save The Keywords" /> </form> I need the keywords to be links for example : when the member put : php,mysql it should turn like this in the database : <a href="#">php</a> <a href="#">mysql</a> so when I query the … ![]() | |
Hi I'm working on a registration form.So every one can register but to regeister you need to upload your logo.! this is the file:register.php : <?php $page_title = "register"; require_once("inc/config.php"); require_once('inc/header.php'); ?> <center> <form action="check-register.php" method="POST" encrypt=”mulipart/form-data”> <input type="text" name="username" /><br /> <input type="password" name="password" /><br /> <input type="password" name="repassword" … | |
Hi I'm working on a website and every thing is going great untill I faced this problem with the editing page! here is my code : <?php session_start(); if(!isset($_SESSION['admin'])){ echo "Only admin has access to this page"; header("Refresh: 3;url=login.php"); }else{ require("inc/config.php"); require("inc/header.php"); $id = (int)mysql_real_escape_string($_GET['id']); $title = $_GET['title']; $describtion = … | |
Re: line 17: if ($handle = opendir($folder)) I think it should be like this : line 17: if ($handle == opendir($folder)) | |
Re: you should write it like this : <?php session_start(); ... the code ?> session_start(); should be in the first line after <?php (you can't use sessions unless you write session_start(); in the first line) ![]() | |
Hi can any one give the idea of the pagination system ? I mean thea functions that I should use to get a good pagination system.What I reached so far is this : I should request the number of rows from the database.Then I should make a variable which contains … | |
Re: Hi I'm not sure if I understand you but here is what I understand and my answer for it. I think you have a users system every user has his own records,when you are trying to update the records it is automatically updating the last record. if I'm right then … | |
Hi edit_order.php <?php session_start(); if(!isset($_SESSION['admin'])){ echo "Only the admin can see this page"; header("Refresh: 3;url=login.php"); }else{ require("inc/config.php"); require("inc/header.php"); $id = $_GET['id']; $sql = "SELECT * FROM serv WHERE id=$id"; $query = mysql_query($sql); while($serv = mysql_fetch_object($query)){ $title = $serv->title; $describtion = $serv->describtion; $url = $serv->url; $status = $serv->status; } ?> <center> … |
The End.