I am trying to create a thumbnail image of an image being uploaded, but for some reason it fails to create the thumbnail but uploads the original image. Here is the code I am using:
$pic =...
Type: Posts; User: Titan85; Keyword(s):
I am trying to create a thumbnail image of an image being uploaded, but for some reason it fails to create the thumbnail but uploads the original image. Here is the code I am using:
$pic =...
I am trying to make a script that will allow me to create multiple sql tables through one query in php. Here is what I was trying to use:
mysql_query("
CREATE TABLE `admins` (
`id` tinyint(4)...
I did that and it did make a difference, but there is still a problem. Now it simply takes the content off of the page instead of running the php. I think that register_globals() is not set. Is there...
I made a login script for my a cms and it worked perfectly while on my server, but when it was transfered to my clients server, it quit working. All the code is exactly the same as the code on mine,...
So the code should be
<input type="checkbox" name="checkbox[]" value="<?php echo $l['id']; ?>" /> or do you mean:
$del_id = $checkbox[$i][];
Thanks
I have made a delete script with multiple delete. Everything runs great until the delete ID being fed hits 10 or more, then it splits it into 1 and 0 instead of 10. Here is the delete PHP:
######...
I am not sure exactly what you mean, but I don't think that will work in this case because I need the top of the border (410px high) to be one thing and then the rest to be another image that expands...
I am coding a relatively simple template but have been stumped by what to do with the border/background. I want the border to extend as the page extends, but the top part of the border can not repeat...
Sorry for the late response, been pretty busy lately. I tried what you said, but I still get the same positioning error. I can not think of any reason for this at all. Any other suggestions?
Thanks
Well, I used padding instead of margin and it made no change. All the math adds up and the position is right in the code. For some reason, IE 7 has decided that it wants it moved about 200px to the...
For some reason, on this page: http://resonant-media.com/client_work/atar/coding.html in IE 7, the large box with the picture is not positioned where it should be, but the position is correct in...
Hey, sorry for the really delayed response, been tied up with work. I have been looking into the no ID problem and can't seem to find the problem. Here is the pages full code:
<?php
$level =...
Well, I am using this code to do multiple deletes at one time:
// If delete was hit
else if ($_POST['delete']) {
if ($level >= 18) {
for ($i=0; $i<$chk; $i++) {
$del_id = $checkbox[$i];...
Well, I am trying to make a script that will allow a user to upload a picture and then it will resize it to the appropriate size if the image being uploaded is not the specified size. Here is the...
That doesn't seem to be the problem. That code is for the row colors and not for the results display. I did try changing it to 0 and got no change. Any other ideas?
I found that when I add a...
Thanks, thats made it work :)
I have a script that is simply supposed to show all links in the database. For some reason, it does not show the newest link in the table. Here is my code:
<?php
$level = $_SESSION['level'];
...
I found the problem, I just had "WHERE" in the query twice. Thanks for the help though. :)
I originally tried the if instead of the while, but it didn't work. I think the reason for this is that once the script finds the point where $r == $u['level'] is true, it will read it as true for...
Well, I am running a for statement that show numbers up to the rank of the user viewing it. Here is the code:
<?php
$id = $_GET['id'];
$level = $_SESSION['level'];
// Get User Data
$get =...
Ok, that helps me out a lot and cuts down the code significantly :). Can I use this code to also delete users after 8 days of inactivity by changing it to this:
DELETE FROM `users` WHERE status =...
Well I am trying to get the script to take only links that have a permission level of below or equal to their own. I tried doing a WHERE level <= '$level' , but that didn't work. How can I do this?...
Well, I am making a script that will update all users ranks every 7 days. What I came up with was to just include this page in another page that will be accessed all the time:
<?php
$get =...
Well, I am trying to make a search script that will search for the keyword in all databases for the site. I am confused as how to get it to search through more than one database or even to search...
Well, I have been going around and around trying to make my login script (which has worked in the past) work. I finally got it down to one problem with some help from others. The problem now is that...