ober
-
Posts
5,327 -
Joined
-
Last visited
Posts posted by ober
-
-
I hope that isn't an exact copy of the code... I assume the last part is pseudo code.
But I guess I'm not sure why you're creating a hidden input if you're sticking it right into a URL. -
You'll want to use mysql_select_db() after mysql_connect().
-
You could do something even more simple:
[code]if(substr($url,0,7) == 'http://')
$url = substr($url, 7));[/code]
I always screw up the math on that second part, so you might want to test it. -
Have you searched the forums? There are a hundred examples of how to do things like that. And have you tried anything at all? I suggest posting some code and letting us know where you're getting stuck. No one is going to write it for you.
-
Spaces and new lines will stick as long as you use nl2br() when you do the output. Bolds are another matter altogether and it'll require them to use some kind of tags to get the desired result. You may want to look into something like fckeditor (do a search on the web).
-
echo date("l d/m/y", strtotime($infoarray['date']));
-
Yes, it crashed, but I was using a "weekly" release... not exactly tested like a beta release.
-
Andy, I agree with you on the stats point from W3, but I've run JS stats engines on sites not too long ago and the stats were pretty comparative. And that was on a site that didn't have anything to do with technology.
-
The Fast Reply boxes have been enabled in PHP Help and PHP Newbie Help. Keep in mind that we still have flood control enabled with a 15-second delay. If they are abused in any way, we will be forced to disable them.
Thanks and happy coding from the PHPFreaks team! -
It's possible. But it would be a lot easier than any other alternative of keeping track of the videos and associated information.
-
That error means that their is either white space or HTML or some other output being created before you call session_start().
-
That's a JavaScript question. PHP is server side only.
-
That's true and a very valid point, but some of my sites are for that specific audience that fit into the "older" crowd that don't have the latest in PC technology... people like old folks that are using hand-me-down PCs that their kids gave them. So unfortunately, I still write sites for that resolution.
The other thing that provides is easy printing. You build a site that fits inside a 800x600 resolution and you're building a site that requires no changes for printing. -
Goddamn it... I had a really detailed list and then my browser crashed. And now I'm too knackered to re-write it all.
-
You should still program for 800x600. There are still an amazingly large amount of users running that resolution, unfortunately. I have, however, seen a trend of web designers moving to a 1024x768.
[a href=\"http://www.w3schools.com/browsers/browsers_stats.asp\" target=\"_blank\"]http://www.w3schools.com/browsers/browsers_stats.asp[/a] -
Well the first one probably came from the fact that you were using "desc" as a column name... that's a keyword.
I'm not sure what the second error is from. -
Change:
[code]mysql_query($query);
echo("Success!");[/code]
To:
[code]$result = mysql_query($query);
if($result)
echo "Success!";
else
echo "There was an error!" . mysql_error();[/code]
And tell us what you get. It would also help if you had access to phpmyadmin and you could create the table through there (or at least run the SQL through there) and see if you get anything. -
The "AS" part creates an alias.
So when you echo a field, you want to use the alias name instead of the actual field name (the part after the "as").
echo $album['Picture']; -
That's probably because you're not specifying a specific file. You're just giving it an address. Could it possibly be: $xml = simplexml_load_file('http://rss.news.yahoo.com/rss/topstories.xml'); ?
-
I'm about 99% sure I closed another thread like this. Emailing the same person x amount of times is nothing but a spam/joke generator and won't be tolerated on these forums. Unless you can PM me with a valid reason for a tool like this, the thread will remain closed.
EDIT: Reopened.
Unless you're using an old version of PHP, you need to use $_POST['number'] or $_GET['number']... same goes with the name, email address, etc.
Also, your for loop is setup backwards. The middle term needs to be <=, it's a conditional statement that says keep going until it reaches x. -
Ya know, this topic changes as new editors get released. I'm not sure why we'd care if it came up again. New releases of old software changes their status too.
-
I personally use Homesite 5.5, but if I were to switch to a free editor, I'd go with PHP Designer (2005... I've tried the 2006 beta and it's still really buggy).
I've tried Eclipse and the Maguma studio packages... didn't really care for either. -
Well, to be honest, I'm not sure it's going to work how you're setting up the connection. I've never successfully pass a connection around like that. That might be where your problem is.
-
That means you have an SQL error, and I'm going to guess it's the fact that you don't have single quotes around $user in your query.
Dashed underlined link
in CSS Help
Posted
CSS:
[code]a {
color: blue;
text-decoration: none;
}
a:link {
text-decoration: underline;
}
img {
border: 0;
}[/code]
HTML:
[code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Untitled</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<a href="test.php">here</a>
<br /><br /><br />
<a href="test.php"><img src="../images/animated_timer_bar.gif" width="220" height="18" alt="" /></a>
</body>
</html>[/code]