-
Posts
351 -
Joined
-
Last visited
Everything posted by ricmetal
-
see someone that knows what they are talking about
-
position is a read only property. like the way you set it up in your script, it's returning 0 and 0/1000 = 0 to start if from a certain place in time just start(5) whish will start at 5 seconds rgaards
-
yes use a php file to retreieve data from mysql to flash from flash call loadVars to call the php reagrds
-
yeah anyway if you're still stuck then break it down and not the 80 rap music the code break it down! here comes the hammer lol break down the code into pieces its too much code to figure out what you could possibly be doing wrong and a jippy
-
i thought configuring in one place sounded better --- anyway, not so lucky, my host said "a no no" so, back to writing code i have the connection in a single php and again it sounds better to extend mysqli but i never did that, and you have a guru tag so you must know one thing or two. so ill go with what u r saying. but i am looking at how i set up the code include '../phpincludes/dbCon.php'; if (mysqli_connect_errno()) { include '../phpincludes/errorConnecting.php'; }else{ if($mysqli->set_charset("utf8")) { if($stmt = $mysqli->prepare("SELECT... --code body... how can i go about implementing the if charset statement in the single php file? i dont's see how i can, except including at the top and bottom of the code body.
-
cool if im lucky my webhost can change these ini settings for me and i avoid having an extra line of code on too many php files! thanks for the replies mchl!
-
hi guys im getting alot of crap characters where specials characters like é should be, in mysql. not "yet, another encoding post", i've done a few things to try and get the right encodings but i havent figured it out. any extra help is appretiated. here's what i've done. my phps are utf-8 encoded and the meta is declared before any php code to send data to the server. <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> i created the database and tables with utf8 encoding, plus i altered the database right before creating the tables. i manually created the database with all utf-8 encoding options i could find. then altered it. ALTER DATABASE db_name CHARACTER SET utf8 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT COLLATE utf8_general_ci ; created the tables in sql: CREATE TABLE `tableName` ( `user_email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `id` int(50) NOT NULL DEFAULT '0', PRIMARY KEY (`user_email`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_general_ci; more: iconv (whatever that is) on my server is set to ISO-something so far the only way i can convert the encoding and make the special characters appear in the database correctly is by writing mysqli->set_charset("utf8") after each mysqli connection but i wanted to set it up so i dont have to make that encode thing. please any help?
-
hi everybody im here reading about html form enctypes and learning how to treat international characters through html forms. i read than enctype=urlencoded is inefficiant for sending int chars, so should i use multipart when sending international characters?
-
thanks for the tip
-
hi i need to know if i can check what php is actually reading from the database, aka the raw data, cause im looking at the database and two columns with the same values are tested for equality from within two php variables and return not equal...anyone?
-
your were right my password column wasn't large enough to hold an md5 string. thanks
-
hi everyone im having a bit of a pickle with a prepared mysqli statement the AND is breaking my code if($stmt = $mysqli->prepare("SELECT id,user_email,user_activated FROM users WHERE user_email = ? AND user_pwd = ?")) { $stmt->bind_param('ss', $emailSend, $md5pass); $stmt->execute(); $stmt->bind_result($rtv_id, $rtv_email, $rtv_activated); $stmt->fetch(); $userId = $rtv_id; $userEmail = $rtv_email; $userActive = $rtv_activated; echo $userId; if i remove the AND, and the rest of the attached code to the second variable (user_pwd) the whole code works. the userId is echoed correctly, else it just fetches the default 0 value of the column when i use the AND. echoing the userEmail for instance, also seems to bring out the default value when using AND because it returns nothing, which is in fact the default value for the column. without the AND is echoes the correct email. i've searched for tutorials on prepared statements with the AND but only found one or two, and they both use the AND how i think i am using it. the mysqli column user_pwd exists, and both bind_param vars exist in the code ($emailSend and $md5pass) any idea why the AND is breaking? the problem should be simple, its seems that its just the way the AND is being used but like i said, the few tuts i found online are setup the same way that i've set up mine. thanks
-
meh, i dont want ads, thanks i want a clean code and clean visual to integrate on my website, and not look like a third party application im looking into cometchat, but it's not free, but it's looks very good to integrate into standalone sites
-
anyone looking for the same thing here goes http://stackoverflow.com/questions/2018492/detecting-local-file-dragndrop-with-html-javascript
-
hey head over to dynamicdrive and html goodies for scripts. in dynamic drive ther's a bunch like the ones you want.
-
hey, my idea is to create the following code "when dragged text is released on a div, get the text and set it into a javascript variable". so, how do i access the dragged text that comes with the mouse? so i need to get text that is dragged from outside the browser. basiclly any text. how do i it?
-
ish i should have said "on a free host". from your reply im guessing free will not get me a great little chat board :/
-
hi what do i need to use to get a simple chat room that supports a large number of users? free, preferably.
-
yeah its frsutrating not getting an answer but you're just lazy thats probably why nobody replied or perhaps you dont have enough info for someone to help you without having to do your job. im not a programmer but i usually end up like you, clueless - what i do is search google on what i know. in your case you know its the httprequest with firefox. why dont you google httprequest + firefox + opera (your post will probably pop up hehe) but most importatly other might appear to! i know that the requests are made differently from browser to browser, but i can only guess if it has anything to do with your problem seeing you didnt post much more information about it but here's what i use var xmlHttp; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } var url = "file.php"; var params = "variable="+jsvar; xmlHttp.open("POST", url, true); xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlHttp.setRequestHeader("Content-length", params.length); xmlHttp.setRequestHeader("Connection", "close"); xmlHttp.onreadystatechange = function() { if(xmlHttp.readyState == 4) { if(xmlHttp.status == 200) { suck sex } else { not so much! } } else { //error with readyState } } xmlHttp.send(params); } i know there's something going on with the xmlHttp.open("POST", url, true); aka bug, so search that too and next time post more info and dont be lazy people have their own issues
-
it's not possible to edit text on a jpg file
-
okay, thanks devil i got it working in that order although i had to add a few functions i got it working like this: execute(), store_results(), num_rows(), bind_results(), fetch() thanks again mchl, just ordering the functions correctly
-
if you're not going to have any other buttons besides the "click anywhere" create a button with the same size of the flash movie and place the code on(press) { getURL("http://www.genuine-ptcs.com"); } the button's shape should be alpha 0% so you can see the background if you're going to have more buttons on the stage then you have to look into mouse events
-
hi im looking at the manual and i dont get it easily should i call num_rows() after fetch()? or should i call store_results() after execute(), and then num_rows() and not call fetch() if num_rows() == 0?
-
yeah, Doom 2 really made my day(s)/weeks ocassionaly i run sim city 3000 and play for days but i dont put it aside "as nothing productive comes from it" instead i start flash and try and program a game or a website
-
cache ctrl+f5 on Win to refresh without using cache