Jump to content

Boxerman

Members
  • Posts

    275
  • Joined

  • Last visited

Everything posted by Boxerman

  1. Hi thanks for your reply. I have changed the $_GET if(isset($_GET['flag'])) This now redirects to watchtest.php?id=**?flag but does not execute the sql etc..? Any ideas?
  2. Hi guys.. I've got a problem im trying to issue where when a user clicks Broken it does not work.. here is the php for it: <h2 class="title2">Recently Added</h2> <p> <?PHP $con = mysql_connect("localhost","*******","*********"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("movies", $con); /* function to return the first N words of a string */ function shorten_string($string, $wordsreturned) { $retval = $string; $array = explode(" ", $string); if (count($array)<=$wordsreturned) { $retval = $string; }else{ array_splice($array, $wordsreturned); $retval = implode(" ", $array)." ..."; } return $retval; } /* check to see if an article has been selected */ if(!$_GET['id']) { $id = 0; }else{ $id = (int) $_GET['id']; } /* set the number of words for the brief */ $N = 15; /* if id is set display the news */ if($id>0) { $query = "SELECT * FROM movies WHERE id='$id' ORDER BY id DESC"; $result = mysql_query($query); $row = mysql_fetch_array($result); $title = $row['title']; $timestamp = $row["added"]; $format='F j, Y, g:i a'; $formatedTime = date($format, strtotime($timestamp)); ?><p> <b><font size="5"><?PHP echo $title; ?></font> </b><br /> Story: <?PHP echo $row['desc'] ?></p><br> <?php $iphone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone"); $android = strpos($_SERVER['HTTP_USER_AGENT'],"Android"); $palmpre = strpos($_SERVER['HTTP_USER_AGENT'],"webOS"); $berry = strpos($_SERVER['HTTP_USER_AGENT'],"BlackBerry"); $ipod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod"); if ($iphone || $ipod == true) { echo "<iframe width='200' height='150' src='movies/".$row['filename']."' frameborder='0' allowfullscreen></iframe><br>"; } ELSE { echo "<video id='video' autobuffer height='240' width='360' controls='controls' autoplay='autoplay'><source src='movies/".$row['filename']."'></video>"; } ?> Posted At: <?php echo $formatedTime ?> <br><br> <?php if(isset($_POST['flag'])) { $con = mysql_connect("localhost","*******","*********"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("movies", $con); $id = (int) $_GET['id']; $sql = "UPDATE movies SET flag = 1 WHERE id = $id"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "<font color='green'>Thanks for reporting!</font><br><br>"; mysql_close($con); } ?> <a href="watchtest.php?id=<? echo $id ?>?flag"><img src="img/flag_red.png" />Broken</a> <BR><BR><BR> <?PHP }else{ echo "nothing here"; } ?> Im aware of the badness of the coding, i will rewrite soon.. but hope the code helps you on the FLAG section
  3. Ok thanks so it is SQL. Would this be correct? UPDATE movies SET flag=1 WHERE id='$_GET['id']' ?
  4. Hi guys, sorry if this is the wrong section but its a mixture of sql and php.. however i believe it may be sql... sorry if i am wrong. I'm having an issue with a script... the SQL in this is the following: <?php if(isset($_GET['flag'])) { $con = mysql_connect("localhost","*******","****************"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("movies", $con); $sql="UPDATE movies WHERE id = '$_GET['id']' set flag VALUES ('1')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "<font color='green'>Thanks for reporting!</font><br><br>"; mysql_close($con); } ?> What the aim of it is... to update a coloum in movies database called flag and just put 1 in there. Again sorry if i am wrong! Thanks, B
  5. Sorry I don't understand? This script is standalone, no other pages are included (the db connection details are missing i know).
  6. I copied this to a blank page test.php and that is the error.. thats the only code on that page. Parse error: syntax error, unexpected T_STRING in C:\Inetpub\vhosts\******\httpdocs\test.php on line 23
  7. Evening all, I've ran into a dead end, my php isnt the best. What i am trying to do is get a simple voting script working. User clicks vote up.. it updates the table +1 user votes down -1. Simple enough. However this is what i have so far... <?php if(isset($_POST['voteup'])) { $sql = "UPDATE movies SET ratings = increment + 1 WHERE id = '".$_GET['id']."'"; mysql_query($sql); } ?> <a href="?voteup">VOTE UP</a> | <a href="?votedown">VOTE DOWN</a> <?php if(isset($_POST['votedown'])) { $sql = "UPDATE movies SET ratings = increment - 1 WHERE id = '".$_GET['id']."'"; mysql_query($sql); } ?> Error i get is: Parse error: syntax error, unexpected T_STRING on line 23 As you can see there is only 15 lines here? Extra info: the page is called watch.php?id=15 vote will be near bottom of page. table has a column called ratings set as INT (32) If you need anything else please let me know!
  8. Hi there, Sorry for my dumbness.. here is the submit.php file... <?php include("include/config.php"); include("include/functions/import.php"); $SID = $_SESSION['USERID']; if ($SID != "" && $SID >= 0 && is_numeric($SID)) { $ctime = 24 * 60 * 60; $utime = time() - $ctime; $query = "select count(*) as total from posts where time_added>='$utime'"; $executequery = $conn->execute($query); $myuploads = $executequery->fields['total']; $quota = $config['quota']; if($myuploads >= $quota) { $error = $lang['188']; $theme = "empty.tpl"; } else { $t = cleanit($_REQUEST['t']); if($t == "v") { $post_type = cleanit($_REQUEST['post_type']); if($post_type == "Video") { $nsfw = intval(cleanit($_REQUEST['nsfw'])); $source = cleanit($_REQUEST['source']); $tags = cleanit($_REQUEST['tags']); $title = cleanit($_REQUEST['title']); $url = cleanit($_REQUEST['url']); if($url == "") { $error = $lang['98']; } elseif($title == "") { $error = $lang['95']; } if((!strstr($url, 'youtube.com/watch?v=')) && (!strstr($url, 'funnyordie.com/videos/'))) { $error = $lang['99']; } if($error == "") { if(strstr($url, 'youtube.com/watch?v=')) { $youtube_url = $url; $position = strpos($youtube_url, 'watch?v=')+8; $remove_length = strlen($youtube_url)-$position; $video_id = substr($youtube_url, -$remove_length, 11); $addme = ", youtube_key='".mysql_real_escape_string($video_id)."'"; } elseif(strstr($url, 'funnyordie.com/videos/')) { $fod_url = $url; $position = strpos($fod_url, 'funnyordie.com/videos/')+22; $remove_length = strlen($fod_url)-$position; $video_id = substr($fod_url, -$remove_length, 10); $addme = ", fod_key='".mysql_real_escape_string($video_id)."'"; } $approve_stories = $config['approve_stories']; if($approve_stories == "1") { $active = "0"; } else { $active = "1"; } $query="INSERT INTO posts SET USERID='".mysql_real_escape_string($SID)."', story='".mysql_real_escape_string($title)."', tags='".mysql_real_escape_string($tags)."', source='".mysql_real_escape_string($source)."', nsfw='".mysql_real_escape_string($nsfw)."', url='".mysql_real_escape_string($url)."', time_added='".time()."', date_added='".date("Y-m-d")."', active='$active', pip='".$_SERVER['REMOTE_ADDR']."' $addme"; $result=$conn->execute($query); $pid = mysql_insert_id(); header("Location:$config[baseurl]/gag/".$pid."?new=1");exit; } } $theme = "submit2.tpl"; } else { $file = cleanit($_REQUEST['file']); if($file == "1") { $post_type = cleanit($_REQUEST['post_type']); if($post_type == "Photo") { $nsfw = intval(cleanit($_REQUEST['nsfw'])); $source = cleanit($_REQUEST['source']); $tags = cleanit($_REQUEST['tags']); $title = cleanit($_REQUEST['title']); $uploadedimage = $_FILES['image']['tmp_name']; if($uploadedimage == "") { $error = $lang['93']; } else { $theimageinfo = getimagesize($uploadedimage); if($theimageinfo[2] != 1 && $theimageinfo[2] != 2 && $theimageinfo[2] != 3) { $error = $lang['94']; } else { if($title == "") { $error = $lang['95']; } else { $approve_stories = $config['approve_stories']; if($approve_stories == "1") { $active = "0"; } else { $active = "1"; } $query="INSERT INTO posts SET USERID='".mysql_real_escape_string($SID)."', story='".mysql_real_escape_string($title)."', tags='".mysql_real_escape_string($tags)."', source='".mysql_real_escape_string($source)."', nsfw='".mysql_real_escape_string($nsfw)."', time_added='".time()."', date_added='".date("Y-m-d")."', active='$active', pip='".$_SERVER['REMOTE_ADDR']."'"; $result=$conn->execute($query); $pid = mysql_insert_id(); if($uploadedimage != "") { $thepp = $pid; if($theimageinfo[2] == 1) { $thepp .= ".gif"; $thepp2 = ".gif"; $processgif = "1"; } elseif($theimageinfo[2] == 2) { $thepp .= ".jpg"; $thepp2 = ".jpg"; } elseif($theimageinfo[2] == 3) { $thepp .= ".png"; $thepp2 = ".png"; } if($error == "") { $myvideoimgnew=$config['pdir']."/".$thepp; if(file_exists($myvideoimgnew)) { unlink($myvideoimgnew); } $myconvertimg = $_FILES['image']['tmp_name']; move_uploaded_file($myconvertimg, $myvideoimgnew); if($processgif == "1") { do_resize_image2($myvideoimgnew, "700", "5000", true, $config['pdir']."/t/l-".$thepp, $config['pdir']."/t/z-".$thepp); do_resize_image2($myvideoimgnew, "460", "3000", true, $config['pdir']."/t/".$thepp, $config['pdir']."/t/z-".$thepp); do_resize_image2($myvideoimgnew, "220", "220", true, $config['pdir']."/t/s-".$thepp, $config['pdir']."/t/z-".$thepp); } else { do_resize_image($myvideoimgnew, "700", "5000", true, $config['pdir']."/t/l-".$thepp); do_resize_image($myvideoimgnew, "460", "3000", true, $config['pdir']."/t/".$thepp); do_resize_image($myvideoimgnew, "220", "220", true, $config['pdir']."/t/s-".$thepp); } if(file_exists($config['pdir']."/".$thepp)) { if($config['wm'] == "1") { $watermark = $config['imagedir']."/".$config['watermark']; if($thepp2 == ".png") { $img=imagecreatefrompng($config['pdir']."/t/l-".$thepp); } elseif($thepp2 == ".jpg") { $img=imagecreatefromjpeg($config['pdir']."/t/l-".$thepp); } else { $wskip = "1"; } if($wskip != "1") { $img_width=imagesx($img); $img_height=imagesy($img); $watermark=imagecreatefrompng($watermark); $watermark_width=imagesx($watermark); $watermark_height=imagesy($watermark); $image=imagecreatetruecolor($watermark_width, $watermark_height); imagealphablending($image, false); $dest_x=$img_width-$watermark_width-5; $dest_y=$img_height-$watermark_height-5; imagecopy($img, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height); imagesavealpha($img, true); imagejpeg($img, $config['pdir']."/t/l-".$thepp, 90); } if($thepp2 == ".png") { $img=imagecreatefrompng($config['pdir']."/t/".$thepp); } elseif($thepp2 == ".jpg") { $img=imagecreatefromjpeg($config['pdir']."/t/".$thepp); } else { $wskip = "1"; } if($wskip != "1") { $img_width=imagesx($img); $img_height=imagesy($img); $image=imagecreatetruecolor($watermark_width, $watermark_height); imagealphablending($image, false); $dest_x=$img_width-$watermark_width-5; $dest_y=$img_height-$watermark_height-5; imagecopy($img, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height); imagesavealpha($img, true); imagejpeg($img, $config['pdir']."/t/".$thepp, 90); } } $query = "UPDATE posts SET pic='$thepp' WHERE PID='".mysql_real_escape_string($pid)."'"; $conn->execute($query); header("Location:$config[baseurl]/gag/".$pid."?new=1");exit; } } } } } } } } else { $post_type = cleanit($_REQUEST['post_type']); if($post_type == "Photo") { $nsfw = intval(cleanit($_REQUEST['nsfw'])); $source = cleanit($_REQUEST['source']); $tags = cleanit($_REQUEST['tags']); $title = cleanit($_REQUEST['title']); $url = cleanit($_REQUEST['url']); if($url == "") { $error = $lang['96']; } elseif($title == "") { $error = $lang['95']; } else { $pos = strrpos($url,"."); $ph = strtolower(substr($url,$pos+1,strlen($url)-$pos)); if($ph == "jpg" || $ph == "jpeg" || $ph == "png" || $ph == "gif") { $query="INSERT INTO posts SET USERID='".mysql_real_escape_string($SID)."', story='".mysql_real_escape_string($title)."', tags='".mysql_real_escape_string($tags)."', source='".mysql_real_escape_string($source)."', nsfw='".mysql_real_escape_string($nsfw)."', url='".mysql_real_escape_string($url)."', time_added='".time()."', date_added='".date("Y-m-d")."', active='0', pip='".$_SERVER['REMOTE_ADDR']."'"; $result=$conn->execute($query); $pid = mysql_insert_id(); $uploadedimage = $config['pdir'].'/'.$pid.'-temp.'.$ph; if(!download_photo($url, $uploadedimage)) { $error = $lang['97']; $query = "DELETE FROM posts WHERE PID='".mysql_real_escape_string($pid)."'"; $conn->execute($query); } else { $theimageinfo = getimagesize($uploadedimage); if($theimageinfo[2] != 1 && $theimageinfo[2] != 2 && $theimageinfo[2] != 3) { $error = $lang['94']; $query = "DELETE FROM posts WHERE PID='".mysql_real_escape_string($pid)."'"; $conn->execute($query); unlink($uploadedimage); } else { $approve_stories = $config['approve_stories']; if($approve_stories == "1") { $active = "0"; } else { $active = "1"; } if($uploadedimage != "") { $thepp = $pid; if($theimageinfo[2] == 1) { $thepp .= ".gif"; $thepp2 = ".gif"; $processgif = "1"; } elseif($theimageinfo[2] == 2) { $thepp .= ".jpg"; $thepp2 = ".jpg"; } elseif($theimageinfo[2] == 3) { $thepp .= ".png"; $thepp2 = ".png"; } if($error == "") { $myvideoimgnew=$config['pdir']."/".$thepp; if(file_exists($myvideoimgnew)) { unlink($myvideoimgnew); } copy ($uploadedimage , $myvideoimgnew); if($processgif == "1") { do_resize_image2($myvideoimgnew, "700", "5000", true, $config['pdir']."/t/l-".$thepp, $config['pdir']."/t/z-".$thepp); do_resize_image2($myvideoimgnew, "460", "3000", true, $config['pdir']."/t/".$thepp, $config['pdir']."/t/z-".$thepp); do_resize_image2($myvideoimgnew, "220", "220", true, $config['pdir']."/t/s-".$thepp, $config['pdir']."/t/z-".$thepp); } else { do_resize_image($myvideoimgnew, "700", "5000", true, $config['pdir']."/t/l-".$thepp); do_resize_image($myvideoimgnew, "460", "3000", true, $config['pdir']."/t/".$thepp); do_resize_image($myvideoimgnew, "220", "220", true, $config['pdir']."/t/s-".$thepp); } if(file_exists($config['pdir']."/".$thepp)) { if($config['wm'] == "1") { $watermark = $config['imagedir']."/".$config['watermark']; if($thepp2 == ".png") { $img=imagecreatefrompng($config['pdir']."/t/l-".$thepp); } elseif($thepp2 == ".jpg") { $img=imagecreatefromjpeg($config['pdir']."/t/l-".$thepp); } else { $wskip = "1"; } if($wskip != "1") { $img_width=imagesx($img); $img_height=imagesy($img); $watermark=imagecreatefrompng($watermark); $watermark_width=imagesx($watermark); $watermark_height=imagesy($watermark); $image=imagecreatetruecolor($watermark_width, $watermark_height); imagealphablending($image, false); $dest_x=$img_width-$watermark_width-5; $dest_y=$img_height-$watermark_height-5; imagecopy($img, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height); imagesavealpha($img, true); imagejpeg($img, $config['pdir']."/t/l-".$thepp, 90); } if($thepp2 == ".png") { $img=imagecreatefrompng($config['pdir']."/t/".$thepp); } elseif($thepp2 == ".jpg") { $img=imagecreatefromjpeg($config['pdir']."/t/".$thepp); } else { $wskip = "1"; } if($wskip != "1") { $img_width=imagesx($img); $img_height=imagesy($img); $image=imagecreatetruecolor($watermark_width, $watermark_height); imagealphablending($image, false); $dest_x=$img_width-$watermark_width-5; $dest_y=$img_height-$watermark_height-5; imagecopy($img, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height); imagesavealpha($img, true); imagejpeg($img, $config['pdir']."/t/".$thepp, 90); } } $query = "UPDATE posts SET pic='$thepp', active='$active' WHERE PID='".mysql_real_escape_string($pid)."'"; $conn->execute($query); unlink($uploadedimage); header("Location:$config[baseurl]/gag/".$pid."?new=1");exit; } } } } } } else { $error = $lang['94']; } } } } $theme = "submit.tpl"; } } } else { header("Location:$config[baseurl]/login");exit; } //TEMPLATES BEGIN STemplate::assign('menu',3); STemplate::assign('error',$error); STemplate::assign('message',$message); STemplate::display('header.tpl'); STemplate::display($theme); STemplate::display('footer.tpl'); //TEMPLATES END ?> I can't find where to add the php code you told me too?
  9. Hi guys, Hope i provide enough information for you all. I'm having an issue with my site where, when you upload an image it creates the "hyperlink" for it, but the image does not exist. here is an example: http://www.truvibefm.com/gag/8?new=1 I've looked in the apache error log: [Tue Jun 19 14:13:40 2012] [error] [client **.**.**.**] File does not exist: C:/xampp/htdocs/pdata/t/l-8.jpg, referer: http://www.truvibefm.com/gag/8?new=1 As you can see im using a windows server 2008 64-bit web. I'm stuck into why it doesnt create the physical file but it works there :S Can anyone help me please? Thanks, J
  10. mysqli_insert_id() is perfect thank you
  11. Hi guys, I'm using a twitter script that grabs the title and publishings it like so: "Title - Read More at..." I was wondering how i would be able to post the direct link into twitter.. like news.php?id=1 for example. $tweet->post('statuses/update', array('status' => ''.$_POST[title].' - more at MY URL')); This part is in the script to publish automatically when the users adds to the news database. How am i able to get the ID just after the posting of the news? Thanks!
  12. Hi thanks for your reply! I'm now getting a error "No input file specified." This is on most php pages.
  13. Hi guys, I'm getting the following error when i try to upload an image: Warning: copy() [function.copy]: open_basedir restriction in effect. File(C:\Windows\Temp\phpAF5B.tmp) is not within the allowed path(s): (C:\Inetpub\vhosts\truvibefm.com\httpdocs\) in C:\Inetpub\vhosts\truvibefm.com\httpdocs\testarea\imageupload\upload.php on line 25 Out of commonsense i check the open_basedir in php.ini and it is set too: C:\Inetpub\vhosts\truvibefm.com\httpdocs Thanks for you time! J My php script is: <?php $SafeFile = $HTTP_POST_FILES['ufile']['name']; $SafeFile = str_replace("#", "No.", $SafeFile); $SafeFile = str_replace("$", "Dollar", $SafeFile); $SafeFile = str_replace("%", "Percent", $SafeFile); $SafeFile = str_replace("^", "", $SafeFile); $SafeFile = str_replace("&", "and", $SafeFile); $SafeFile = str_replace("*", "", $SafeFile); $SafeFile = str_replace("?", "", $SafeFile); $uploaddir = "uploads/"; $path = $uploaddir.$SafeFile; if($ufile != none){ //AS LONG AS A FILE WAS SELECTED... if(copy($HTTP_POST_FILES['ufile']['tmp_name'], $path)){ //IF IT HAS BEEN COPIED... //GET FILE NAME $theFileName = $HTTP_POST_FILES['ufile']['name']; //GET FILE SIZE $theFileSize = $HTTP_POST_FILES['ufile']['size']; if ($theFileSize>999999){ //IF GREATER THAN 999KB, DISPLAY AS MB $theDiv = $theFileSize / 1000000; $theFileSize = round($theDiv, 1)." MB"; //round($WhatToRound, $DecimalPlaces) } else { //OTHERWISE DISPLAY AS KB $theDiv = $theFileSize / 1000; $theFileSize = round($theDiv, 1)." KB"; //round($WhatToRound, $DecimalPlaces) } echo <<<UPLS <table cellpadding="5" width="300"> <tr> <td align="Center" colspan="2"><font color="#009900"><b>Upload Successful</b></font></td> </tr> <tr> <td align="right"><b>File Name: </b></td> <td align="left">$theFileName</td> </tr> <tr> <td align="right"><b>File Size: </b></td> <td align="left">$theFileSize</td> </tr> <tr> <td align="right"><b>Directory: </b></td> <td align="left">$uploaddir</td> </tr> </table> UPLS; } else { //PRINT AN ERROR IF THE FILE COULD NOT BE COPIED echo <<<UPLF <table cellpadding="5" width="80%"> <tr> <td align="Center" colspan="2"><font color=\"#C80000\"><b>File could not be uploaded</b></font></td> </tr> </table> UPLF; } } ?>
  14. Thank you for your time buddy! Great stuff! Thanks!
  15. I am still getting the same issue <?PHP $con = mysql_connect("localhost","****","***"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("samdb", $con); /* check to see if an artist has been selected */ if(isset($_GET['artist']) && $_GET['artist'] != '') { $artist = mysql_real_escape_string($_GET['artist']); } /* if artist is set display the artist */ if($artist="") { $query = "SELECT * FROM songlist WHERE artist='$artist'"; $result = mysql_query($query); $row = mysql_fetch_array($result); $artist = $row['artist']; $song = $row['title']; ?><p> <b><font size="5"><?PHP echo $artist; ?></font> </b><br /> Songs: <?PHP echo $song; ?></p> <br> <br> <a href="artist.php">Back to artist listings</a> <?PHP }else{ /* create query */ $query = "SELECT * FROM songlist GROUP BY artist ORDER BY artist DESC LIMIT 10"; /* execute the query */ $result = mysql_query($query); while($row=mysql_fetch_array($result)) { $artist = $row['artist']; $song = $row['title']; ?><p> <b><font size="5"><?PHP echo $artist; ?></font></b> <br> <a href="artist.php?artist=<?PHP echo $row['artist']; ?>">See more</a></p> <?PHP } } ?>
  16. I see so i need to remove <0? If so what will it need to be changed too? as Artist in the db is a name, i.e rizzle kicks etc..
  17. Hi guys, I'm pretty much stuck and require someones help, I've got this script: <?PHP $con = mysql_connect("localhost","****","*****"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("samdb", $con); /* check to see if an artist has been selected */ if(!$_GET['artist']) { $artist = 0; }else{ $artist = $_GET['artist']; } /* if artist is set display the artist */ if($artist>0) { $query = "SELECT * FROM songlist WHERE artist='$artist' ORDER BY id DESC"; $result = mysql_query($query); $row = mysql_fetch_array($result); $artist = $row['artist']; $song = $row['title']; ?><p> <b><font size="5"><?PHP echo $artist; ?></font> </b><br /> Songs: <?PHP echo $song; ?></p> <br> <br> <a href="artist.php">Back to artist listings</a> <?PHP }else{ /* create query */ $query = "SELECT * FROM songlist GROUP BY artist ORDER BY artist DESC LIMIT 10"; /* execute the query */ $result = mysql_query($query); while($row=mysql_fetch_array($result)) { $artist = $row['artist']; $song = $row['title']; ?><p> <b><font size="5"><?PHP echo $artist; ?></font></b> <br> <a href="artist.php?artist=<?PHP echo $row['artist']; ?>">See more</a></p> <?PHP } } ?> It lists the artist right and thats great, however when i click on a artist's name it shows the same page does not go anywhere? I've tired everything, it might be so simple its infront of me.. any help will be great! Thanks J
  18. This worked.. Thank you for your time!
  19. Hi all, I'm abit stuck, i've got two variables which are: $timestamp = $myrow["t_stamp"]; - Grabbed from DB - stored like 2012-04-03 14:02 (for example) $format='F j, Y, g:i a' I'm trying to get it to display like Tuesday, 3rd April 14:02 or something like that but i just cant :-\ $timestamp->format($format) is what i've tired working with etc but nothing seems to work as it is only displayed as F j, Y, g:i a as text :S Can anyone help me please. Many thanks! J
  20. Hi guys, I'm trying to create a script which changes on curtain times, heres a example: 3pm - Dance Session 4pm - Indie Session 5pm - RnB Session What i want the desired outcome to be is Display current time with whats playing (say its 3pm) 3pm - Dance Session Then at 4 i want it to remove the 3pm and display the 4pm - Indie Session Is it possible? If so how? Many thanks for you time guys! J
  21. I understand that, my statement was suppose to come across as the most simplist way of doing it. But all simple CMS i have found don't support php only html.
  22. I must be able to add my own php into it.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.