![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
john010117
Members-
Posts
492 -
Joined
-
Last visited
Never
Everything posted by john010117
-
Yep, it's echoing out the correct values. Oh, god. How could I have missed this? I have put it in the wrong order. Nevermind. Thanks for helping me out. I appreciate it.
-
HTTP extension unavailable in shared hosting.
john010117 replied to Michael9's topic in PHP Coding Help
If it doesn't work on free hosting servers, it will never work until they decide to activate that feature (which is very rare). I'm sorry about this, but it's their decision on what is allowed on their servers and what is not. -
You're right. None of them are being retrieved. So does that mean there's something wrong with my MySQL query?
-
I believe this is my first time dealing with mysql_result(), and it's giving me an error. The part of the code: <?php $b_query = "SELECT * FROM $block_tbl_name WHERE user_select = '$session_uid' AND user = '$u' "; $b_result = mysql_query($b_query) OR DIE (mysql_error()); $b_sql_result = mysql_result($b_result, 0); ?> Even though I was executing the query, I needed the result where user = '$session_uid' AND user_select = '$u'. I searched google, but a lot of other sites where showing the error, and there weren't any helpful information on how to actually fix it. BTW, I have 3 rows in that table. How would I solve this problem?
-
I looked at it with FF2, and I must say, the layout's very smooth and clean. The color scheme is great. But the major downside is iframes. Search engines hate 'em. But other than that, the "contact us" link at the top points to index.php (which shouldn't), and some of the links to the right all point to index.php.
-
That's image mapping, and it's HTML. I don't know too much about image mapping, though.
-
First of all, I don't know what the thing is called that blinks inside a textarea. So if you could tell me what the name of that is, that'll be great. I'll called it a cursor for now. Here's the problem. Let's say I had a simple textarea with some values already filled in. Ex: Code: <textarea name="input1" rows="15" cols="75"> <!-- Cursor should go here --> ----- Original Message ----- From: blah To: Blah Date: Blah Blah Some Random Text </textarea> So, whenever a page loads, I need the "cursor" to be automatically at the beginning of the textarea (where "<!-- Cursor should go here -->" is). How would I go about doing that either in just HTML or Javascript?
-
foreach() PHP MySQL Ever heard of Google?
-
First of all, you've posted in the wrong section. Second of all, you need to sign up for the main website to be able to use the chat room.
-
Make the change I showed you, then put the form at the top of the script <?php error_reporting(E_ALL); if(!isset($_POST['Submit'])) { // Form goes here } else { // Upload script goes here // Then the MySQL stuff goes here } ?>
-
If you're expecting us to make the script for you, you've posted in the wrong section. Post in the "Freelancers" section. But, if you decide you want to actually learn PHP and try to make a script yourself, we can gladly help you along the way.
-
Where exactly is your /images/gallery directory relative to the file with your script?
-
Your $filePath = '..images/gallery/' . $randName . '.' . $ext; is not valid. Try $filePath = '../images/gallery/' . $randName . '.' . $ext;
-
Yep. Even though it uses slightly more resources, it's more secure.
-
[SOLVED] Problem with an undefined index in...
john010117 replied to Osorene's topic in PHP Coding Help
Put <?php error_reporting(E_ALL ^ E_NOTICE); ?> at the very top of the page. It will get rid of the error. -
#1 - 3 should be all stored in the database. #4 should create a cookie. Use less cookies as possible, as they are easy to edit.
-
Eh, I use Programmers Notepad 2. I like it's simplicity. Also, notepad ++ and Notepad 2 are the nice, free, simple ones (with syntax highlighting, of course).
-
Here's the link to it.
-
But then YOU should post in the RIGHT forum.
-
You should post in the "Freelancers" area then. Don't expect us to make you one here.
-
I made this function a while ago. <?php function date_time_sep($date_time) { global $res_date,$res_time; $date = substr($date_time, -19, 10); $time = substr($date_time, -8, 5); // Date $year = substr($date, 0,4); $month = substr($date, 5, 2); $day = substr($date, 8, 2); $res_date = date("D M jS, Y", mktime(0, 0, 0, $month, $day, $year)); // Time $time_format = $time . ' ' . strtolower(strftime("%p")); $res_time = $time_format; } ?> Use $res_date to display the date and $res_time to display the time.
-
Then search Google.