39,323 Topics
| |
sorry, i forgot to put php code. Parse error: syntax error, unexpected $end in C:\xampp\htdocs\login_test\register.php on line 152 line 152 is the last lne </form> <?php include("connect.php"); //grab submitted data if(isset($_POST['submit'])) { //grab submitted data $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $username = $_POST['username']; $password = $_POST['password']; $confirm_password = $_POST['confirm_password']; … | |
hi guys, well i am using .htaccess in my website to make SEO friendly urls.. the urls are supposed to look like this: http://localhost/home or http://locahost/singup it is working nicely.. the problem is when i came to makin forms.. how should i submit my forms?? the .htaccess takes all the … | |
Parse error: syntax error, unexpected $end in C:\xampp\htdocs\login_test\register.php on last line 2nd question. what is different between name, class, and id? if i just use id will it make difference? <form action="register.php" method="post"> <p id = "reg_error"></p> Firstname: <input class = "text" type="text" name="firstname"><br> Lastname: <input class = "text" type="text" … | |
Hi, every members, I am Nur, i want make a complete MLM site. i try to MLM Binary tree downline View on php code. it will be difficalt for me to make MySQL database or php coding. please help me any on. i add a link to example: 1) MLM … | |
need help with this. so in index.php i have a html tag <p id = 'login_error'></p> here(p tag) i want to print all the errors which are tested in login.php. in login.php i create a array called $error = array(); where has all the errors. in error_message.php iam printing all … | |
Hi everyone, I have been trying to code a facebook application using the API. Within this, I am required to include the base_facebook.php file. But I keep gertting an error Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in … | |
I was wondering how many connections in parallel can one web socket handle? what i mean is if i made a chat socket and a million user connected to it at the same time, will it affect it in anyway? and if yes, what is the maximum number of connections … | |
Hi everybody, plz help me. how to create a own like button on my website.using php ,javascript or jquery | |
well I have this code, at first it was working perfectly....then a little modification just caused an error. I want to know what are the possible causes of this error Notice: Undefined index: CSM_blackmere_portside2_1 in C:\xampp\htdocs\PMS\F51-AI_insert.php on line 16 aside from, of course being defined .. i'm thinking of something … | |
Notice: Undefined index: HTTP_REFERER in C:\xampp\htdocs\cart\order.php on line <?php define('INCLUDE_CHECK',1); require "connect.php"; if(!$_POST) { if($_SERVER['HTTP_REFERER']) header('Location : '.$_SERVER['HTTP_REFERER']); exit; } ?> | |
Hi, I'm wondering if someone can help me with a problem I've been trying to solve for almost a week now which concerns shared ranking (i.e. whilst I am trying to rank things in order of one field, if two or more entries share the same value then they receive … | |
Notice: Undefined variable: _SESSION in C:\xampp\htdocs\dl\index.php on line 117 here;s the code: <?php if ($_SESSION['username']) echo "Hello ".$_SESSION['username']." â™”<a href='logout.php'> Logout </a> "; ?> | |
Strict Standards: Only variables should be passed by reference in C:\xampp\htdocs\cart\ajax\tips.php on line 8 | |
Hello: I have a bit of an interesting delima: I have a form with select box which is dynamically db populated and based on the first selection, additional data populates two other linked boxes (a input and a textarea). This process happens in a table row. here is the source … | |
Hi I currently have URL's looking like this when it is coming from a link: http://www.dev.xxxxxxxxxxxxxxxxxxxxxxxx.com/findanagent_details.php?recordID=4 I would like to hide the fact that recordID=4 How can I do this? Many thanks | |
I am creating a registration form for my web site. In my registration form, there are two select boxes to select user's district and there city. So I need to do it, when a user select their district then automatically display city select box with cities which relevant to above … | |
Hello all I am attempting to use PHP programming to execute a scripts to this link... http://ws.geonames.org/postalCodeSearch?postalcode=VARIABLE_ZIP&country=US. The VARIABLE_ZIP is the actual zip code entered into the form that will submit the information in the link above. The output of that link creates an XML page that i do not … | |
Hello I am having this codes: <?php // Add new book using DOM $dom = new DomDocument(); $dom->load("books.xml"); $book = $dom->createElement("book"); $book->setAttribute("isbn", "0973589825"); $title = $dom->createElement("title"); $text = $dom->createTextNode("php|architect’s Guide to PHP Design Patterns"); $title->appendChild($text); $book->appendChild($title); $author = $dom->createElement("author", "Jason E. Sweat"); $book->appendChild($author); $publisher = $dom->createElement("publisher", "Marco Tabini & Associates, … | |
in my index.php there is a <p> tag in form. i want to print errors there from login.php file. in login.php iam checking for 3 errors. is there a way i can print them in index.php in <p> tag? i was thinking may be i use an array in login.php? … | |
Good Morning... I was just wondering if it is possible to do a query based on the status of a record, and if one is found with the status of 'E'arned, then to return the relevant fields from that record while at the same time changing the status to 'P'laced... … | |
so i have a database set up. it has 3 fields. 1 is id, 2nd is uername, and 3rd is password. i already create a one username and password. in index.php for some reason it always goes inside else statment. and it skips the if part. -------------------- index.php -------------- <?php … | |
Hi guys, **I have this error :** Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most … | |
i need to build wedding card webased system...so i need to create a gallary for wedding card with card information. How to upload that picture into gallary and next time i can delete it back or update information about that picture information.. | |
Hi everyone, I have been trying to write a php script to display a div and its contents depening on a result from mysql. Inside the div is a basic input form etc, nothing special, some error & validation checking. What I would like to do is, to only display … | |
hey guys, got a job at a small IT company, i work with network, asterisk platform and developping tools for admins, operators and clients. i'm having a blast programming and the updates-patches are at nights, perfect for my vampiric personnality but ... i still consider myself a jr. man! there … | |
ammm...I have this code <table border="1" name="myTable" id="myTable"> <?php $nRow = $_GET['rowLength']; $nColumn = 7; for($i=0;$i<$nRow;$i++){ echo "<TR>"; for($i=0;$i<$nColumn;$i++){ echo "<TD><INPUT TYPE='text' NAME='' VALUE=''/></TD>"; } echo "</TR>"; }?> </table> now, I'm trying to pass js variable to php variable on the same page.... but I'm having this error: Undefined index: … | |
hi, iam new at php and iam doing a tutorial from youtube. I am keep getting 2 errors 1st error is "Column count doesn't match value count at row 1" 2nd error is nothing shows up when i do <?php echo $error_message; ?> full code of registration file <?php /* … | |
I'm trying to create a checkbox where the user will select their 'diseases affected: heartdisease, cancer, diabetes' and hit the submit button and will be saved into the database respective columns as as either '1' for yes or '0' for no. I've tried googling for the answer but I can't … | |
Parse error: syntax error, unexpected T_BREAK in C:\xampp\htdocs\website1\prompt.php on line 17 line 17 is in case 0 were it say break; function createMessage($x) { if(is_numeric($x)) { switch($x) { case 0: $message = "Your account is now active. you may now <a href=\"login.php\">Log In!</a>" break; case 1: $message = "Thanks you … | |
how can i use if statemend with strings in php? and example is the following code: <?php $url = $_GET['url']; $length = strlen($url); $url = explode('/', $url); print_r($url); echo "<BR>"; if($length >= 0){ echo "URL excits"; } if($url[0] = 'home'){ echo $url[0]; } but whenever i pass a parameter in … |
The End.