-
Posts
462 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Posts posted by Mudsaf
-
-
I got page that uploads first the files in foldersSWF > game/swf/IMG > game/img/Then it adds them to SQL query like img path game/img/$IMAGE_FILENAME$ I can link the codes of those pages when i get to home so you can see the structure a bit.
-
Im selecting data from my database, but i want the image to be smaller in one place and higer in other place. So i got like mainpage what selects 1 from latest news & mainpage doesn't have that much space at "Width" as the image or video would require, but is it possible to make the "img/video" smaller before i get it from database. Example i want the code at mainpage to have like 200 width150 height News page should show the video as it has been posted to MySQL. Example here 600 width (The amount set when inserting the post)400 heigh (The amount set when inserting the post) This might be bit confusing but i can try explain again if some1 doesn't get my point.
-
Here is the code if it helps anyone (Works like charm)
<script type="text/javascript">function conf_delete() {var r=confirm("Click the OK button now!");if (r==true){ alert("You pressed OK!");return true; }else{ alert("You pressed Cancel!");return false;}}</script></head><body><form id="form1" onsubmit="return conf_delete()" name="form1" method="post" action="#"> <label> <input type="submit" name="submit" id="submit" value="Submit" /> </label></form>
-
I'm wondering is it possible to make javascript that doesn't let the user go to example action="test.php" page if javascript says so. Example im having this javascript
<script type="text/javascript">var r=confirm("Click the OK button now!");if (r==true){ alert("You pressed OK!");<!-- THIS SHOULD ALLOW THE ACTION (SO IT WOULD ALLOW USER TO CONTINUE TO ACTION PHP PAGE) -->}else{ alert("You pressed Cancel!");<!-- THIS SHOULD CANCEL THE ACTION (SO IT WOULD NOT CONTINUE TO ACTION PHP PAGE) -->}</script>
So if user presses OK it allows user get to the next page and if user press cancel it doesn't let Oo found cool page with info at this http://www.htmlforums.com/client-side-scripting/t-how-to-cancel-submit-action-33810.html
- 1
-
Somehow i managed to ruin my whole database when trying to solve this . . . so lucky i've backed up this database/website few times. (Effect: Small rollback) -Somehow problem fixed with backup and other stuff dnno what the problem was but working now!
-
Yes thats correct Shows like this<a href='http://google.com' target='_blank'>http://google.com</a> when it should show it like thishttp://google.com/ PHP code looks like this (incase this helps you)
include 'inc/yhdista_tietokanta.php'; //Conncets to DB$query1 = "SELECT * FROM $table$ WHERE $column$ = '$text$' ORDER BY $column$ DESC LIMIT 1";$query2 = "SELECT * FROM $table$ WHERE $column$ = '$text$' ORDER BY $column$ DESC LIMIT 1";$result1 = mysql_query($query1);$result2 = mysql_query($query2);if (!$result1 || !$result2) {echo "There was error, try again later.";} else {$row1 = mysql_fetch_array($result1);$row2 = mysql_fetch_array($result2);$header1 = html_entity_decode($row1['$column$'], ENT_QUOTES);$text1 = html_entity_decode($row1['$column$'], ENT_QUOTES);$header2 = html_entity_decode($row2['$column$'], ENT_QUOTES);$text2 = html_entity_decode($row2['$column$'], ENT_QUOTES);echo "Header: " . $header1 . " <br>Added: " . $row1['$column$'];echo "</span></span></span>";echo "<p>" . $text1 . "</p>";echo "</a><a href='#'class='klink'>Continue to ... $linkplace$ >></a> </span></span><br>";
blablablala until it closes tags } + php every tag inside $$ is correct information, but since i didin't want reveal site coding i added $$. ... Variables $something2 are used later with same method Mispelled "Should" so had to update
-
No different effect since it decodes the HTML correctly but it won't show it as html. Instead it shows it like this
<a href='http://www.facebook.com/#LINK' target='_blank'>ROFLCOPTER</a>
-
Thanks, i did it with htmlspecialchars to textbox since textbox cant show html code.
-
Wondering how to get this to pure html code that works on page. For example
<a href='http://www.facebook.com/#$LINK$' target='_blank'>ROFLCOPTER</a>
The $LINK + text has been changed on that since i dont wan't to reveal code from my websites ATM im using
$header1 = htmlspecialchars_decode($row1['$BLABLA$']);
But its still pasting header like this on the page<a href='http://www.facebook.com/#LINK' target='_blank'>ROFLCOPTER</a>
- 2
-
Mostly was going to upload flash games with size of 1KB up to 15MBWhat kind of content are you uploading that's larger than 15MB?
Unfortunately my internet server provider is blocking the port 80 and secondly my internet connection isn't best. (Upload only 100kb/s)You can host the files yourself with WAMP. Also, new routers (you may have one of these kind) have a USB port attached to them for creating a temporary web directory for sharing files. -
Im wondering how to make textarea where is only letters a to z (lower & upper case) and numbers 0-9 allowed so people can't use any <a href='http://hurr-durr.com/'>Trollin'g Dog!</a> messages.
- 1
-
Does anyone know any free webhost that has PHP_MAX_FILESIZE > 15MB. I've tried 000webhost.com it was great with disk space + others, but the problem was i canno't upload higer than 4MB files trough PHP. (With membership limit would be 128M) Testing: http://www.byethost.com
multiple upload and storing path in db
in PHP
Posted · Edited by Mudsaf
No problem, hope my files will help you even little bit. Ima try to get home after 1 hr but if i cant get ill be on after 4 hrs. Im at (Work based learning) My files has been done with POST method, but you can easily change them to get or just check how i've done mine and upgrade urs.