- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
20 Posted Topics
in the below code, everything works. However if the user is logged in (where is says html goes here) it wont display anything at all. [CODE=php]<?php // Connects to your Database mysql_connect('host', "user", "password") or die(mysql_error()); mysql_select_db("database") or die(mysql_error()); //checks cookies to make sure they are logged in if(isset($_COOKIE['ID_'])) { … | |
ok first off please look at the following images [url]http://monstermonsterstudios.com/clients/dropdesignstudio/Picture%207.png[/url] [url]http://monstermonsterstudios.com/clients/dropdesignstudio/Picture%208.png[/url] What i want to do is if the window width is smaller than the width of the image i want it to keep going passed the left margin if that makes sense? [CODE]<div style="position:absolute; overflow:hidden; top: 58px; width:100%;" align="center"><img … | |
Re: Try adding this in at the start of the code. However, where it says "Australia/Melbourne" change that to your timezone. Supported ones can be found here: [URL="http://au2.php.net/manual/en/timezones.php"]http://au2.php.net/manual/en/timezones.php[/URL] [ICODE]date_default_timezone_set('Australia/Melbourne');[/ICODE] hope it helps | |
Ok so heres the site: [URL="http://allegro1dancestudio.com/"]http://allegro1dancestudio.com/[/URL] Ive made an event calendar for that site which uses a flat-file database. The calendar part works fine, however, the code is able to make the file but will not write to it and therefore I dont know if i can even get event … | |
im trying to set up a calendar using the code from the following site, however i have only got up to the code displayed below, which the site says it should show a calendar however im getting this error. I do however want to set up the whole calendar to … | |
Im not sure if this is a php problem or javascript, but since the actual photo gallery is run by javascript I'll post it here, sorry if its not though. Everything works fine but when I click on another image to change the main image the caption wont change with … | |
in the following piece of code the else part of my if/else statements doent seem to work it just adds nothing, thanks. btw genre is a dropbox (and yes i have added the values) and genre2 is a text box, same with the filehost and filehost2. [CODE=php]$name = $_POST['song']; $artist … | |
Well heres the code im using, can anyone either fix this code to make it work or suggest a better way of doing this, thanks. [CODE=javascript]function ValidateForm() { if (document.submitform.email.value=="") { alert("There is no email entered!"); return false; } if (document.submitform.email.value=="Enter your email...") { alert("Please enter an email!"); return false; … | |
Can anyone tell me why this code isnt working? [CODE=php]<?php $username = $password = $database = $email23 = $_POST['email']; $con = mysql_connect('localhost',$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $sql = "SELECT * FROM `user_user` WHERE `email` = '$email23'"; $query = mysql_query($sql) or die('Error: ' . mysql_error()); $r = mysql_fetch_row($query); … | |
Ok so I used Adobe Photoshop to generate my Photo Gallery Code, the default index.html page it creates works fine when i upload it to my site but as soon as I add my sites layout around the code it does not seem to work, can anyone please help me. … | |
ok lets make this a little simpler than my last topic. I found this [URL="http://wiki.dreamhost.com/index.php/PHP.ini"]site[/URL] which everyone who follows it seems to be getting results from, though it says "You are expected to be knowledgeable in the UNIX shell." which i have got no idea what that even is. I … | |
My webhost currently allows for 2mb uploads via php (default settings). Now I can not access the main php.ini file and .htaccess is not allowed on free accounts. So what I wanted to know is am I able to set up a custom php.ini to change the upload settings. I … | |
Ok below is my display script, though I have no idea how to make an edit script so could someone either make one for me or if thats too much to ask atleast help me make one. [CODE=php]<? $username=""; $password=""; $database=""; $con = mysql_connect('localhost',$username,$password) or die('Error: ' . mysql_error()); mysql_select_db($database) … | |
In my last topic i quess i was asking to much so no one would help me, so this time ill take it one step at a time, heres my first problem. [CODE]<? include("dbinfo.inc.php"); mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query="SELECT * FROM tutorials WHERE tut_program='Photoshop' AND tut_category='Text … | |
Ok im trying to upload an image and a .zip file to 2 different loactions at once aswell as put their links on my mysql database, heres my script, at the moment it displays nothing, does nothing and seriously needs fixing. [CODE=php]<?php $username="my_username"; $password="my_password"; $database="my_database"; $font_name = ucfirst($_POST['font_name']); $letter = … | |
Couls someone help me fix this code, I think I need to put in a function and a return but i'm not quite sure. All the code does is return the value # for everything even letters [CODE=php]$letter = ucfirst($_POST['tut_name']); $letter2 = $letter{0}; if($letter2 = 1) { $letter3 = '#'; … | |
Is there anything wrong with this script? [CODE]<?php $username=""; $password=""; $database=""; $rom_name = $_POST['rom_name']; $rom = $_FILES['rom']['name']; function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } if (empty($rom)) { $result = '<font color=FFFFFF>Please choose a ROM … | |
Alright this is my code, the error im getting is in red [CODE]<?php include("dbinfo.inc.php"); $tut_name = $_POST['tut_name']; $tut_link = $_POST['tut_link']; $tut_program = $_POST['tut_program']; $tut_category = $_POST['tut_category']; $tut_video = $_POST['tut_video']; $tut_download = $_POST['tut_download']; $tut_image = $_FILES['tut_image']['name']; function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) … | |
I know this one gets asked a lot but after reading about 5 topics about this I still can't figure out what i have to do. Can anyone help me change this script so it will upload images, then tell if there is a specific way to display them or … | |
Im quite new to php and mysql but ive figured out how to upload and display content from my database, but im still facing quite a lot of problems. - First how do you display an image uploaded in the database? - Second how do you make the content only … |
The End.