-
Confused: Warning: Cannot use a scalar value as an array
it was exactly that, i had miss declared some error report variables, all sorted now thanks for your help
-
htaccess confusion? lil help
as title really i have made my own seo urls with htaccess, and this all works fine, however on one i have for the username all work apart from one username S25-DAN i noticed that having -D creates the error as if i use -d then it works fine? any pointers or ideas how to get around this? here is my current htaccess rule RewriteRule ^([-_!*$@~a-zA-Z0-9]+)$ users.php?username=$1
-
Confused: Warning: Cannot use a scalar value as an array
Ok im stumped and thats why im here, i have a form with 6 images to upload. I have done these in arrays to save code. This all works but i noticed with errors turned on it brings up Warning: Cannot use a scalar value as an array in *blah* on line 61; heres the code LOTS OF OTHER CODE UP HERE $imgs = array("1", "2", "3", "4", "5", "6"); foreach($imgs as $imgnum){ if (!empty($_FILES["picture".$imgnum])&∅($error)){ $ext = strtolower(strrchr($_FILES["picture".$imgnum]['name'], '.')); $type = $_FILES["picture".$imgnum]['type']; $filesize = filesize($_FILES["picture".$imgnum]['tmp_name']); if (empty($_POST["label".$imgnum])){ $error["label".$imgnum] = "You must add a title for your image."; } else if ($filesize >= $maxfilesize){ $error["pic"] = $lang['pictures_error_maxsize']; } LOTS MORE CODE DOWN HERE any pointers?
-
Web Developer From York
Hi all, im James, ive been self taught in web design for 6 years now, and i am now doing a degree. Its always nice to ask questions and opinions and meet others in the profesion so here i am
-
please can anyone help?
ok i need a script for a stock photography site, it needs to be similar functions to say bigstock or istock, and allow photographers to upload images, have a credit system etc. ive searched high and low and i found one i bought however it doesnt work and he wont respond to my emails. the softwares called photo stock so avoid at all costs btw!! but yeh so can any one recomend a decent one to use? and obviously the cheaper the script the better i look forward to seeing your comments
-
Please help
ok im stuck, ive looked for ages and i cant see whats wrong, my host states all the config details are correct here is my code its to add info to a database, but when you submit it just says error, failed. <html><head><title>- Add Your Car Club</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"><!--.box { font-family: Arial, Helvetica, sans-serif; font-size: 12px; border: 1px solid #000000;}--></style> </head> <body> <?php if(isset($_POST['save'])){ $title = $_POST['title']; $site_url = $_POST['site_url']; $banner = $_POST['banner']; $email = $_POST['email']; $location = $_POST['location']; $make = $_POST['make']; $content = $_POST['content']; if(!get_magic_quotes_gpc()) { $title = addslashes($title); $site_url = addslashes($site_url); $banner = addslashes($banner); $email = addslashes($email); $location = addslashes($location); $make = addslashes($make); $content = addslashes($content); } include 'admin/car-club-config.php'; include 'admin/car-club-opendb.php'; $query = " INSERT INTO car_clubs (title, site-url, banner, email, location, make, content) ". " VALUES ('$title', '$site_url', '$banner', '$email', '$location', '$make', '$content')"; mysql_query($query) or die('Error ,query failed'); include 'admin/car-club-closedb.php'; echo "Article '$title' added";}?> <form method="post"> <table width="700" border="0" cellpadding="2" cellspacing="1" class="box" align="center"> <tr> <td width="100">Club Name</td> <td><input name="title" type="text" class="box" id="title"></td> </tr><tr> <td width="100">Website URL (Please include (http://.....)</td> <td><input name="site_url" type="text" class="box" id="site_url"></td> </tr> <tr> <td width="100">Banner Image (image must be 468x60px)</td> <td><input name="banner" type="text" class="box" id="banner"></td> </tr> <tr> <td width="100">Email Address</td> <td><input name="email" type="text" class="box" id="email"></td> </tr> <tr> <td width="100">Specific make (if applicable)</td> <td><input name="make" type="text" class="box" id="make"></td> </tr> <tr> <td width="100">Location (if applicable)</td> <td><input name="location" type="text" class="box" id="location"></td> </tr> <tr> <td width="100">Description</td> <td><textarea name="content" cols="50" rows="10" class="box" id="content"></textarea></td> </tr> <tr> <td width="100"> </td> <td> </td> </tr> <tr> <td colspan="2" align="center"><input name="save" type="submit" class="box" id="save" value="Save Article"></td> </tr> </table> </form> </body> </html>
-
OK After trying to accomplish this myself i now realise i need help!
well this is for a car club so is why it needs to be free and is basicly for the members not really for any competition with myspace. i think i may be getting boomex up n running but i will see what happens thanks for the comments though
-
OK After trying to accomplish this myself i now realise i need help!
ok i have tryed: Elgg = not what i was thinking, was too hard and complicated and just didnt interest my members phpizabi = same as above very dull boring and extremely confusing. Dolphin = looks amazing would love to try it but there appears to be alot of bugs in this and it keeps giving a database error. i have seen the mod for a phpBB forum to make a myspace profile but it doesnt really hold a professional look that i am after. SO WHAT MY QUESTION IS.... can anyone recomend any other free myspace clone to try???? or should i just give up on the idea now?? thanks in advance James
-
MY SQL DATABASES
ok so i think i get that. so with that theory in mind does this mean that you could use the same my_sql database for each seperate section of a site? Edit - jsut re-read the last post this is a lil over my head now, luckly my mate is a desiner and knows more than i so i shall ask him to read what you have said thanks for the input
-
MY SQL DATABASES
yes sorry, as i said im fairly new to all this and so dont use technical talk lol. but yeh basicly its all on 1 domain, but there are many different sections of the site requiring you to register or logon, but i want 1 single login for all, could i just use the same my_sql database?? or would that just make everything fcuk up?? thanks for the reply James
- MY SQL DATABASES
-
MY SQL DATABASES
ok here is my issue, im making a site that needs to have php script replicas of, Myspace, Ebay, autotrader and loads more. now i have all the php scripts for this however each one will require a different login?? is there a way (eg using the same my_sql database) or any way possible to make it so you can use just one login for the whole site?? thanks in advance and please speak easy language as im still picking up webdesign as im going along. James