
andreasb
Members-
Posts
29 -
Joined
-
Last visited
Never
Everything posted by andreasb
-
Thanks a bunch, guys !
-
This is pretty much what I want, just using 5 per row instead of 3 like in the image:
-
OK, thank you. Is there an easy way to make it a maximum of 5 images per row? Should I just use CSS width or something ?
-
Hello, I'm creating a website where I want there to be 5 images per row (with several rows) with some text below each image. The image path and description is fetched from a MySQL database. Now, which should I chose; DIV or Tables when it comes to making horizontal rows of images from MySQL? I've tried using tables in the mysql_fetch_array, but the results are only 1 image per row with the description below it, so it doesn't make a horizontal line of images and descriptions. Please help me out !
-
Hello, I'm currently making a script where I want to disable one of the input text forms. When I disable it the data isn't added to the MySQL database. The same thing happens when I make it hidden. But once I make it editable (normal form) then it's added! Why is that? I have a hidden form which records the IP of the user who signs up, and the IP is added to the database. The value field gets info from a $_GET which fetches some URL bar info (?ref=someusername). BTW: I do see the username in the disabled field when I use a referral link, it's just not added to the DB.
-
Thank you, that worked perfectly.
-
Hello, I'm trying to fetch some details from an URL which looks like this: www.somesite.com/register.php?referral=SOMEUSERNAME When someone goes to this site there should be a form input which is "disabled" (gray/not writeable) and has SOMEUSERNAME as value. How can this be done ?
-
That solved everything! Thanks bunch !
-
And how exactly will this make me able to do this? echo $points; This did not work, and I'm not sure how to use your replies for what I want to do. $username = $_SESSION['username']; $points = "SELECT * FROM members WHERE username=$username";
-
Hello, Right now I'm having a hard time fetching rows via sessions. Let's say that I have a session: $_SESSION['username'] Now I log in with username "Andreas". Now I want to fetch the my "Points" count. It looks like this: How can I fetch that info by using my USERNAME session?
-
Hello, I don't know if this is the correct (sub)-forum to place this, but it's mainly a question that I think has something to do with jQuery or JS in general. Well, I got a website which has several divs. One of the divs is a menu div, which is on the very left of the site. In the middle I got a "main div". On the right side of the site I got another div. Now, I want the main div to show a page once I click a link in the menu div, kinda like how frames work. Let's say I click a link called "Profile", then the main div should show profile.php inside the div, like a frame would have done with "target=main'". I just wonder, is this possible? I got a huge script, and I don't want to make them all over again, therefor begin able to load pages into DIVs would be very helpful. Thank you.
-
Thank you . If we expand our team we will most likely need beta testers only. Hopefully I'll find some more coders within my country borders, as it'll be easier for us to work together.
-
Well... Both profit and fun, I guess. At least some of my friends was hoping that we could profit a bit from it, he-he. I want to have the game online, so I guess I'll have to use a web based programming lang.
-
@blmg911: Let's say I want to create a farm/plantation which each hour adds money into an account. Would a cronjob fit to do that work? @gergy008: Thank you. I'll let you know if we need any .
-
Nightslyr: Thank you, I'll see if I can order at least one of those books from Amazon (I assume they're there) the coming week .
-
Thanks a bunch for your tips. I will read the links you've provided, and maybe I'll get my father to teach me OOP, as from what he said OOP is pretty similar in almost every OOP-supported programming language.
-
Thanks for the fast reply. Any site you would recommend to me when it comes to learning OOP? These "Simple OOP" videos on YouTube aren't really encouraging as it seems to take a lot of time to make small functions which just writes "Hello", or anything that could be done with a variable alone. As Cosizzle posted before I managed to post, I will answer him too. It was wrong for me to say that I have "a lot of experience". What I ment was that I have more experience than most other guys I've seen creating topics about "how to create online games", those who doesn't even know what programming language to use. And thanks for your answer !
-
Hello, I've been learning MySQL and PHP for the last 2-3 years. Though, I've had long pauses and months without touching PHP. Now, I started at a new school this autumn, and I found that some of my old school mates, which I hadn't seen for a while, wanted to make a online text based game. They said that I could join the project, because they needed a scripter, as none of them could script (only designers). We got project plans, a small budget (for hosting + domain(s)) and a good team of designers, managers, etc. Now, I've been analyzing and playing other text based games for years as I find them entertaining. But now the question for me is: How should this be done? Should I use PHP OOP? I've never tried it, and I don't know why I should use it either, so therfor I ask you. Should I use cronjobs? I've read that cronjobs is mostly for games with small databases, as a cronjob on a large database could take hours before it's finished. I know that a lot of people asks about MMORPG text based games. I would say that the difference between me and "a lot of them" is that I got a lot of programming experience already. I just need to know how to optimize and structure the website.
-
Uhm .. Yes. This is what's in the database, I just want to be able to fetch it with PHP instead: http://www.megavideo.com/v/M0HDKAVB0165365895cbde2fce915952a6208b2c
-
Hello, I'm currently looking for a way to get MySQL data fetched from the database and into a MegaVideo embed code. The code looks similar to this: <object width="550" height="368"><param name="movie" value="http://www.megavideo.com/v/M0HDKAVB0165365895cbde2fce915952a6208b2c"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.megavideo.com/v/M0HDKAVB0165365895cbde2fce915952a6208b2c?image=http://i42.tinypic.com/20jn49z.png" type="application/x-shockwave-flash" allowfullscreen="true" width="640" height="480"></embed></object> Now, I want it to be like this, and function correctly: <object width="550" height="368"><param name="movie" value="<?php echo $mvlink; ?>"></param><param name="allowFullScreen" value="true"></param><embed src="<?php echo $mvlink; ?>" type="application/x-shockwave-flash" allowfullscreen="true" width="640" height="480"></embed></object> I've already created the $mvlink variable, and it works if I try to echo it out on just a white page, but when I try it inside this code, the embeded video just shows a white "box", which means that the code is not correct. What have I done wrong here?
-
[SOLVED] Couple of "sessions" related questions!
andreasb replied to andreasb's topic in PHP Coding Help
Thanks to both of you! Now I'm able to work even further on my website. If there's anything more I need help to do, I'll post back here again ! -
Hello, I'm currently making a website, but I need some help with my sessions. First question: Let's say that a user has logged in, and the session has been set, and saved as "$_SESSION['username']". Now, if I want to write "Welcome, [uSERNAME]" it'll print the users username. But how can I fetch other info from the users mysql row? Is there a way to use the session to fetch it? Question number two: So, the user has logged in and the session has been stored. If I go back to index.php, which is the login page, it asks me to log in again. How can I use sessions to redirect me to "profile.php" if I'm already logged in? Thanks!
-
OK - I'll take a look at this, and I think that a friend of mine might be able to help. I'll post my code here if he can't help me any further.
-
Hello! Let's say I'm creating a web site where a (example) URL looks like this: www.somesite.com/movie.php?id=tt0417741 Is there a way I could rewrite this URL, and all the other URLs that looks like that (but with other ID number/IMDB number) to this?: www.somesite.com/tt0417741/ The website is database driven. Can this be done with htaccess? In that case, how?
-
Hello, Sorry about the title .. couldn't really think of anything better! Well, I got a database that I want to fetch the info to with PHP. I've manage to do that, but now I want to place the PHP "print" results besides eachother. The database helds links to pictures, just FYI! A bit hard to understand maybe, so I created a picture to illustrate what I mean. How can this be done?: