Arrays simply refuse to work
Hi, I've tried many times, but I have been unsucsessful in determining why this code won't work. I've tried everything, but still no luck. $users = array( "dog" => "asdfghjkl", "cat" =>...
View Articleform does not pass textarea
well this is baffling me all of my form is being passed fine except for two textareas below is the code for the textarea but for some reason its index is undefined in the $_POST['def0'] data....anybody...
View ArticleHelp with login form
Hey all, i made login script and all works fine, but i have problem with getting username to show like Welcome Username. I dont know if i wrong in function or when i started a session here is code...
View Articlestarting and stopping PHP several times
Hi I am wondering whether starting (<?php) and stopping (?>) PHP several times throughout a script has an affect on the speed of which it is processed. Sometimes I have a few lines of HTML in...
View ArticleLogin Function Can't Find DB, but Other Functions Can?
Hi everyone! Thanks, in advance, for any and all help. It's greatly appreciated. So I created this function: function login() { $db_hostname = "localhost"; $db_username = "root"; $db_password = "";...
View ArticleConnecting mysql to PHP
Hey, can someone tell me what's wrong with this code? My browser says that line 3 is wrong, but I'm not sure what's wrong about it. Thanks...
View ArticleMultiple requests with CURL
Hi, I have stumbed on this code to run mutliple CURL requests at a time. I need to run around 20 from a fast connection so this is a must. http://php.net/curl_multi_init Could someone explain to...
View ArticleHow to make the default datetime especially time is updated according when...
<?php session_start(); if (empty($_SESSION['is_logged_in'])) { header("Location:login.php"); die(); // just to make sure no scripts execute } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
View Articleinsert different lines from <textarea> to different mysql rows
Well I replied to an old thread but as it is old it doesnt seem to be getting any activity as it is marked answered. The thread is:...
View ArticleHelp please with ccmail error.
I found good mailinglist php script. But there been lot of errors. I fix all errors, but one error is more. Invalid syntax if someone add email and subscribe. Website can see:...
View ArticleUsing PHP to store and call data in RAM
Hi All I have a site that holds over 900k of products. I am searching on my db and its taking 10 seconds to search products and bring back results. I wondered if i stored the data in the ram the...
View ArticleRemoving <base href="url"> stops calling a CSS with php...
I frequent a website that implements the social facebook plugin where it's position is fixed to the top of a page when a user scrolls down to read the content. I was curious how they were implementing...
View ArticleFirst timer (PHP Loop is making me dizzy)
Hello, first of all thanks for letting me register in this forum, I've been reading some of the topics and they really helped me so far! I am trying to make a loop for my school project but...
View ArticleNeed help with Prepared statement
Im new to prepared statement and after a lot of research and reading, i still cant get it right. I have created a small database with user_id auto, name, lastname, and tried to make an insert with...
View ArticleGetting form variables to post to the database
Hi all, I am very new to websites and am having difficulty getting my form data to post to my data base table. I created the form in Dreamweaver with Spry validation. Is there something special that...
View ArticlePHP System Monitor
Hi All, I currently learning PHP and I have decided I want build a dashboard so I can monitor my various systems. I've looked around the net and can see a few frameworks built to do this however I...
View ArticleFile Upload - Image Resize and Saves in Image Folder
Hey all, hoping to get this code solved. I am building an image gallery for a client's website and wanted a way for the client to upload their own images from the back end and shows up on the website...
View ArticleSimple Image Swap?
I have two files on a server, and I want to swap filenames like this: image1.jpg -> image2.jpg image2.jpg -> image1.jpg I cannot get this to work. Obviously I cannot do it this way because...
View ArticleHelp with secure login/registration
I Posted in another forum but I'm not getting any suggestions. Hopefully you all can help me. I have looked everywhere the past 2 days. I have flip-flopped this thing a million different ways - still...
View Articlejoining 3 tables mysql
please help i have assignment to selecting tables by joining them.. how do i use join, or inner join? is there another option selecting 3 tables by using foreign key? Here's the table this...
View Article