robert_gsfame
Members-
Posts
876 -
Joined
-
Last visited
Everything posted by robert_gsfame
-
Can't connect to MySQL server on 'localhost' (10061
robert_gsfame replied to Pieter Lategan's topic in PHP Coding Help
set it up from your database. choose privileges and create your username and password. -
Uploading pictures using php ( Need HELP )
robert_gsfame replied to radiations3's topic in PHP Coding Help
<img src="yourimagefolder/yourimagesource"> if you are thinking of directly retrieving the images once uploading it, then you have to use AJAX -
Uploading pictures using php ( Need HELP )
robert_gsfame replied to radiations3's topic in PHP Coding Help
very simple. use this to learn http://www.w3schools.com/php/php_file_upload.asp -
Can't connect to MySQL server on 'localhost' (10061
robert_gsfame replied to Pieter Lategan's topic in PHP Coding Help
if nothing wrong with it then just set privileges in localhost -
Can't connect to MySQL server on 'localhost' (10061
robert_gsfame replied to Pieter Lategan's topic in PHP Coding Help
are you sure for the script? $localhost="localhost"; $username="your_username"; $password="your_password"; $database="database_name"; mysql_connect($localhost,$username.$password); mysql_select_db($database); -
I wish to rewrite url using apache..n i wish to test it on my local server. how can i do that? thx in advance
-
use AJAX, once you click on the post button....insert those comments and retrieve it using AJAX.
-
What i want is exactly like what http://wimg.ca/ can do.. suppose user type whatever the URL, then let say a script will run and capture the image of related URL and put it into specified folder assume "image_folder"
-
Can anyone give me the logic on how to capture an image of a website URL like using w3snapshot?? thx in advance
-
yup..if this your full code then the error is because the $_SESSION doesnt contain any array. you only create a $_SESSION['50'] but nothing inside the session. see the bold one $value="50"; $search = "test"; if(in_array($search,$_SESSION[$value])) { $duplicate = 1; }else { $duplicate = 0; } echo $duplicate;
-
$_SESSION['50']=$value ?????? I dont really get that part...do u mean this? $value=array("50","100"); $_SESSION['myArray']=$value; $search="test"; if(in_array($search,$_SESSION['myArray'])) { $duplicate = 1; }else { $duplicate = 0; } echo $duplicate;
-
in_array([search text],[array haystack]); I don't really get what you need (especially the $_SESSION) but probably $value=array("50","100"); $search="test"; if(in_array($search,$value)) { $duplicate = 1; }else { $duplicate = 0; } echo $duplicate;
-
sure you got that error cause $_SESSION[$value] is not an array
-
When looking for certain words let say IPAD through GOOGLE, i always get irrelevant website appears on the search result but when i click on it..usually the page stated "cannot find IPAD blablabla". I view their source, but the meta tag appears exactly the same on what typed on google I wonder how to do that?? is that part of the SEO?? brings traffic but somehow it is so annoying can anyone explain this to me? thx in advance
-
I really wonder how to create a 3d games using actionscript let say i have created a 3D character and also 3D scene then assume it's a 3D war game. How can i move the scene along with the character??? is that a script or only bunch of scenes which is reloaded each time and depends on the calculation based on the event??
-
mysql_connect("$host", "$username", "$password")or die("cannot connect to server"); i create a connection and let say there is a problem with the server so that the connection can't established my question is how can i avoid the default error to be displayed which is WARNING: mysql_connect() blablabla as it is annoying to see such error message. thx in advance
-
thx a lot
-
let say i have this <a href="myuploadfolder/picture1.jpg">Picture</a> and when user click on the link, they can see in which folder their picture were kept...is this dangerous?? if yes then how to hide it?? thx in advance
-
okay.....thx a lot
-
SELECT * FROM `table1` VS SELECT * FROM table1 Which one is the best one to be used? n what is the difference? Is using backticks can prevent me from sql injection which means better to use?? thx in advance
-
let say i have a function function checkme($x) { if(strlen($x)>10) { return $x; } else { return false; } } $variable=checkme("5"); so two questions i wish to ask... 1. If i wish to get the empty string for the $variable, then is it correct to have return false there? 2. If it is true that return shall not be used twice in a function as it will somehow reduce bytes space or something like that?? thx in advance
-
tbl_user ------------------------- name email tbl_ban ------------------ email so if tbl_ban is ignored then i can use SELECT * FROM tbl_user * what if i want to show all names where email is not listed in tbl_ban * show all names where email is listed in tbl_ban i try this SELECT * FROM tbl_USER WHERE email IN(SELECT email FROM tbl_ban) for the first question and SELECT * FROM tbl_USER WHERE email NOT IN(SELECT email FROM tbl_ban) for the second one..but it didnt work any guides? thx in advance
-
thx so much MrAdam!!!really helpful