ober
-
Posts
5,327 -
Joined
-
Last visited
Posts posted by ober
-
-
I don't know what you're trying to do. You can't include the contents of a text file like that in the middle of a string. It doesn't work like that.
-
That's a very open-ended question. It's all possibly and shouldn't be too bad for someone with half a year's experience in the language.
If you have a specific question about the project, I suggest you point it out. -
I changed the title... you want to split the results, not the DBs. And there are a hundred examples of how to do this throughout the forums and most likely there is a tutorial on the main portion of this site. I suggest you do a search.
-
Run a query to get them.....? You can run more than one query on the page.
I'm confused by the question. -
Sorry, must have missed that part in the origional post. I'd have to say it's probably a bug as well. For the longterm if they can't get a fix, I'd suggest modifying file names as they're put on the server.
-
You would get that if you output something to the browser before calling the header() function.
One other thing I noticed:
$_SESSION[valid] = $valid;
You don't have any quotes around the key name.
$_SESSION['valid'] = $valid; -
I suppose... that would be kinda tricky tho.
-
I don't know for sure if this will fix it, but have you tried running addslashes on the filename before stuffing it in the unlink()?
-
I don't know for fact, but I'm going to guess that they use Apache's URL ReWrite engine. IIS has a similar extension now, but I don't think it's quite as powerful. Look it up on the web if you're really curious.
-
[code] if($user == $usernames) {
if($pass == $passwords) {[/code]
Remove the "s"s -
Have you had your cable company do their setup? They need to identify your cable modem and register it with their network. You MUST do that before they'll let you surf the web.
-
You don't need to use session_register().
Are you getting any errors? Is there any whitespace before you open the PHP tags before session_start()? -
Look for "upload_max_filesize" in your php.ini file.
-
$count is always going to be zero according to your code.
[code]echo '<div class="title">' . $row['cat_name'] . '</div>';
$query2 = 'SELECT * FROM admin_tools ORDER BY tool_num ASC';
if($r=mysql_query($query2)) {
echo '<table>';
$count = 0;
while ($row2 = mysql_fetch_array($r)) {
if($count == 0) {
echo '<tr>';
}
echo '<td>';
if($row2['tool_icon']){$a='<a href="' . $row2['tool_link'] . '"><img src="' . $row2['tool_icon'] . '" border="0" /> </a>';}
else {$a=' ';}
echo $a . '<a href="' . $row2['tool_link'] . '"><br />' . $row2['tool_name'] . '</a><br /></td>';
if(++$count == 3) {
echo '</tr>';
$count = 0;
}
}
echo '</table';
}[/code] -
My suggestion would be to use strtotime() to reduce the 2 dates to the unix timestamp and do your calculations based off of that.
-
My suggestion would be to build it with PHP4, since a lot of hosts are still hesitant to install and support PHP5. This is especially the case if you plan to give the CMS to other people to use on their own hosts.
-
Yes, you can use arrays in session variables, however I'm not sure that you can use 2 dimensional arrays in sessions.
What you should really be doing for something this complicated is setting up temporary database records. It would not only be more reliable, but it would probably be easier to work with than a bunch of multi-dimensional arrays. -
I'm going to assume that you deleted the connection info, otherwise that's going to be your biggest problem.
Are you getting any errors? What exactly is happening? Have you tried to echo various parts of the script to see if things are coming out how you expect? -
20MB of files or 20MB worth of DB info? My suggestion would be to run an export on the old database and then an import on the new one. I don't think a direct transfer is possible. To cut this down, you can only export certain tables, doing it in chunks. Keep in mind that depending on the options you choose in phpmyadmin, it's going to take a while for the file to be generated and sent to you as a download. I'd suggest doing the zipped version as well, as it'll take about 1/10th of the time.
-
I'm not 100% on the answer to the question, but if it can be done, it would be done with the headers that you send.
-
Using one giant table for all mail would be the preferred method. Setting up tables for each user is both inefficient and poor database design.
-
You need to apply the nl2br() function to the output.
echo nl2br($row['stuff']); will display the results with all the "returns" and whatnot put in there like it was entered.
Justifying in terms of alignment is all done in your CSS/styling and has nothing to do with the mysql output. -
The same can be done with the latest releases of Opera (the preview releases of 9, not the stable 8.53 public release). All you have to do is right-click, go to details in the box that shows up and add the link Eric provided above.
-
www.vbforums.com (It's not just for VB... that's a programming board with a LOT of languages). www.cprogramming.com/forums is another good one.
HELP: Search Engine DB
in PHP Coding Help
Posted