bluesoul
Members-
Posts
149 -
Joined
-
Last visited
Everything posted by bluesoul
-
Yup.
-
If you're using frames you need to add target="Name" where name is the frame you want it to display in.
-
Please (please) append your mysql_query()'s with or die(mysql_error()); and see what turns up.
-
You'd likely want to use Cron. Most RSS feeds update once an hour.
-
Google's hosted service limits one to 500 emails per day, in maximum batches of 100. Exceeding that will suspend your account for 24 hours.
-
SELECT DISTINCT sender, etc.
-
[MSSQL] Populate a row with data from another table
bluesoul replied to bluesoul's topic in PHP Coding Help
$q_copyns = "INSERT INTO brat_exp_ns ('domain_name','NS1','NS2','NS3','NS4','NS5','NS6','NS7','NS8','NS9','NS10','NS11','NS12','NS13') SELECT 'domain_name','NS1','NS2','NS3','NS4','NS5','NS6','NS7','NS8','NS9','NS10','NS11','NS12','NS13' FROM Domain WHERE domain_name='$turnoff[$i]'"; Throws an SQL error regarding an invalid object named brat_exp_ns. Removing the quotes from the first set of columns inserts static data with those values (domain_name gets domain_name, etc). Backticks as you have displayed don't work with MSSQL. EDIT: Got it, you actually need to have no quotes at all. -
I think I'm not really in the right state of mind right now to do this, I seem to remember a very neat shortcut to populate an identical set of columns in a table with data from another table. A bit of background, I have a table called domains, with fields called NS1, NS2, NS3...NS13. I am writing a page to turn the domains off when they're expired, and I want to hold this data in a new table called expired_domains for safekeeping when the time comes to restore it. It has identical fields, NS1, NS2, NS3...NS13. It would be something like an INSERT SELECT right?
-
Generally there's no reason to need to see the unencrypted passwords. MD5 is the standard encryption method for an average site (using the function md5()). When a user logs in you encrypt their attempt at the password, then compare it to the MD5 string in the database, and if it's a match you grant access.
-
[SOLVED] Confirm e-mail exists on user registration
bluesoul replied to webref.eu's topic in PHP Coding Help
The method presented in the article is shaky at best, in that a lot of bogus registrations are still going to pass on through. I find it a bit humorous that two of the three bogus emails he mentions, donald@duck.com and emailthis@hahaha.com, would pass the test he wrote. So 33% of the time, it works every time. -
I from the sound of what you're wanting to do it is all perfectly doable with CSS and HTML alone.
-
You added it to all your queries?
-
My apologies, I'm running on too little sleep. New Years and all that. In that case go ahead and append the mysql_error statement and see what it turns up.
-
To be honest I haven't had the need to run a CMS in the better part of three or four years so anything I told you would be terribly dated. I would advise, though, that you put up an installation of each one and play with them a bit, see how the dashboards work, visit their forums and dev pages, etc. This is one of those things where there's not going to be a clear-cut right answer. It's more important that you're comfortable with the framework and how to manipulate it.
-
$address = $address1; if(isset($address2)) { $address .= ", ".$address2; } //etc
-
$sql = "UPDATE subjects SET Subject='$Subject' WHERE Id=$Id"; Your table is called Subject but you're referring to it as subjects here. Also, always add or die(mysql_error()); to your query. $result = mysql_query("select * from subjects order by id") or die(mysql_error());
-
You're using exit(), which is programmatically similar to die() which means it terminates at that statement. You can remove it entirely.
-
Be sure and click solved in the bottom left corner.
-
Calling a function is generating a Fatal Error, please help!
bluesoul replied to Darkmatter5's topic in PHP Coding Help
It looks like you're calling the function before you've instantiated the object. Flip-flop these two lines. $username=$vein->current_user(); $vein=new vein(); -
Alternately, you can copy and paste this one. `
-
Drupal and Joomla both have huge dev scenes. A good buddy of mine really sings the praise of Drupal and I'll probably give it a closer look the next time I need to do something with a CMS.
-
Nixed the old comment about OOP, you can use or die(mysqli_error($link));
-
working fine on local pc but not on server
bluesoul replied to bhavin12300's topic in PHP Coding Help
Uh. Any error messages or anything? -
Actually I believe mysql_numrows will work. Make sure to append your mysql_query() with or die(mysql_error());.