- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 1
25 Posted Topics
Hello all, I'm working on a comment script to produce a string of XML to be used for one of my ajax applications. However, I cannot figure out how to produce the xml. Assume that the passing of the parent_id variable is working for now. Here's the code I'm using … | |
Hello all, I have a problem with some AJAX code that I'm working on. There are three different parts to my problem. The goal of this code is to have a a link that says, "Show comments" to display the comments for a post from an admin underneath the update. … | |
Hello all, I'm having a problem with having code execute when I'm adding javascript/ajax to my php. When I do the following piece of code, nothing happens. This is just a test line of code, my real code links to more javascript which uses ajax, but I have to figure … | |
Hello all, Today I received this as my error: Parse error: syntax error, unexpected T_STRING in /home/a8712935/public_html/admin_members.php on line 60 I've looked all over the internet but I can't find a solution to my problem. There is nothing wrong with that line, but I think it is a problem with … | |
Hello all, I'm making a simple game in minesweeper, and I have a Mine class with a JButton and some other information, namely an x and y variable for its location. In a class called Board, a constructor creates a multi-dimensional array of Mine objects. I tried adding mouselistener to … | |
Hello all, I have a decent knowledge of php, but I have no idea how to approach this problem, or even if this requires php for that matter (I'm open to learning what this would require). In a certain area of my website, I have updates/messages from an admin being … | |
Hello, I've looked all over for the solution to this problem, but they all present a similar solution to this one and they all don't work. I've created the JFrame in the constructor for the class that this method is contained in. [CODE] public void print() { JPanel panel = … | |
Hello, I was working on a small project to make me think, and I ran across a problem when I was running a page. Instead of any error coming up, the page just produced the following, which was part of my code: [code]0 && $user_health > 0) { $monster_health = … | |
Hello, Right now, I am working on a little text-based game in PHP, and I am running into some problems with some functions that I defined. The exact error is this: [b] Notice: Undefined variable: level in C:\Program Files\wamp\www\germ\game_functions.php on line 52 Notice: Undefined variable: exp_cap in C:\Program Files\wamp\www\germ\game_functions.php on … | |
Hello, I've looked on google for information about storing multiple pieces of information in one database column, but I can't find anything helpful. If I want to have some sort of etc. inventory, and there is more than one 'item', how would I store multiple items inside the database? Thanks | |
Re: Can you post the entire code so that we can tell what is wrong? | |
Hello, I'm a pretty basic php user, and I'm wondering how someone would go about implementing a message system into a website with different users. It doesn't have to be anything specific, I'm just wondering about the basic design of it. Thanks | |
Re: In wordfind.php, when you set the session variables, the session variables should be capitalized like this. [code=php] $_SESSION["key"] = $keyPuzzle; $_SESSION["puzzleName"] = $puzzleName;[/code] | |
Re: What is the problem? One thing that you could do to make the code better is instead of using the POST array in the actual query, you could clean it up and store it in another variable first, something like: [code=php] $topic_owner = mysqli_real_escape_string($conn, trim($_POST['topic_owner']));[/code] | |
Re: For require_once, I thought the syntax was like this: [code=php] require_once('connect_to_mysql'); [/code] And also, couldn't you use this function to connect to MySQL? [code=php] $cn = mysqli_connect("localhost", "user", "pw", "db"); [/code] So to connect and request info from the database you could do something like this [code=php] $cn = mysqli_connect("localhost", … | |
Re: You need some sort of username and password verification You could use some sort of MySQL query like this: [code=php] SELECT user_id, username FROM login WHERE username = '$user_username' AND password = '$user_password [/code] And put that in a conditional to see if it checks, and then if it does, … | |
Hello, I've been using a book to learn php, and when I try to make it work for my own use, there seems to be an error when I try to login. First it says that the log in is invalid, and it comes up with this warning message: [b]Warning: … | |
Hello, I'm learning to start to program in C++, and I have a problem with the prompt closing before the program ends. I know there's a lot of info about it, and I've googled it and searched here, but all the solutions to system("pause") don't work for me. I'm using … | |
Re: Hmmm...Sounds really complex. But first, do you have any work that at least has the basic skeleton of your site? | |
Re: I'm not a C++ type person, but at line 44 where you start the if statement, there are no brackets starting and ending that. Also, I think you need brackets for the else statements too. I don't know if that is supposed to be like that though. | |
I can't seem to get the fopen thing to work, or otherwise, I'm just stupid if it is but I don't know it. Here is the code: [code=php]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <HEAD> <title>Open the file</title> </HEAD> <body> <?php $fp = fopen("http://www.mydomain.org/order.txt", "a+"); fclose($fp); ?> </body> </html>[/code] … | |
Hello, I've been wanting to learn C++ but I don't know the difference between Visual C++ and C++, is there really even a difference? Also, what would be the best compiler for me to start off with if I wanted to learn C++? Thanks | |
Hello, I am new here, and hope to learn and contribute a lot. Recently, I started learning PHP (about 2 weeks), and now I am coming to the fopen() function. Say that I wanted to create a new file for reading and writing, is this what I would do? [code]$newfile … |
The End.