- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 6
- Posts with Upvotes
- 6
- Upvoting Members
- 6
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
101 Posted Topics
Why is widdit loading on my website? it never stops loading and i havent used widdit before in any codes...etc. The widdit load is ruining my site. | |
Re: [B]I know that this thread is old but i needed the same thing and found a really nice solution.[/B] [CODE]$string = substr($string,0,30);[/CODE] The string variable is now set to the following. [CODE]$string = 'This string is too long and wi';[/CODE] This example highlights the major problem with this function in … | |
Re: I agree with Ardav. Also if you want to create a CMS take a day or two to plan how you want to go with it. Sketch the MYSQL tables(if any), create the basic template, maybe browse CMS systems you find useful or interesting and figure out a way to … | |
Re: [CODE]$name = end(explode(" ", $row['name'])); // Star $name = explode(" ", $row['name'])); // Five[/CODE] | |
Re: Hey, change [CODE]$sql = "UPDATE ccs_user_registration SET password='".$new_pwd."', confirm_password='".$con_pwd."' WHERE user_id=".$id;[/CODE] to [CODE]$sql = "UPDATE ccs_user_registration SET password=$new_pwd, confirm_password=$con_pwd WHERE user_id=$id LIMIT 1";[/CODE] | |
Re: And make sure you secure those $_POST[] :S for instance.. $posapp = mysql_real_escape_string($_POST['txtapplied']); I could easily mess up your database with a simple injection. Dont ever trust the classic "they dont know how this code look" thought. | |
Re: Well if you want to do this in PHP its very simple... [CODE]<form action="downloads.php" method="POST" enctype="text/data"> <input type="text" name="Field1NAME" placeholder="First Name"/> <input type="submit" name="SubmitForm" value="Continue"/> </form>[/CODE] downloads.php [CODE]<?php session_start();error_reporting(E_ALL); if(isset($_POST['SubmitForm'])){ if(empty($_POST['Field1NAME'])){echo 'Please fill in your name.'; die;} //continue with whatever code you use for the form inputs, remember to use … | |
Hello i am trying to make my Ajax fetch the right <input button value. The <button is generated by PHP and will look like this. [CODE] <input type="button" value="Private" id="txtCustomerId" onclick="requestAlbumInfo()"/> <input type="button" value="Public" id="txtCustomerId" onclick="requestAlbumInfo()"/> <input type="button" value="Nature" id="txtCustomerId" onclick="requestAlbumInfo()"/>[/CODE] My Ajax needs to fetch the value="" and send … | |
This code does not update my mysql. [CODE] //the $q is sent from ajax and looks like this thumbsup.546 or thumbsdown.567 //the $q is sent trough a working ajax function and looks like this <a href="#" onclick="thefunction(thumbsup.'.$row['wallid'].');">[+]</a> $q = mysql_real_escape_string($_GET['q']); $findme = 'thumbsup'; $pos = strpos($q, $findme); if($pos == TRUE){ … | |
Re: What script it is? most likely custom built and not a open source cms. | |
Re: Thanks evstevemd and Ardav, this was helpful content! :) | |
Re: You wont learn much by receiving full scripted codes.. Copy&Paste is not good practice. Start here; [URL="http://www.w3schools.com/php/php_ajax_database.asp"]http://www.w3schools.com/php/php_ajax_database.asp[/URL] | |
Hello! I am fetching some names from MySQL and i want to remove duplicated strings. Currently got this code: [CODE]function get_PublicAlbums(){ $sql = "SELECT * FROM `ue-userfile` WHERE public=1"; $result = mysql_query($sql); $html = ""; while($row = mysql_fetch_array($result)) { $albumname = $row['albumname']; $html .= '<p><a href="index.php?page=public-albums&an='.$albumname.'">'.$albumname.'</a></p><br/>'; } /* It might … | |
Re: If you are asking for a "real-time" logout action after some time i guess you'd have to use some Ajax/Javascript. But i would use[CODE]<meta http-equiv="Refresh" content="300; url=http://www.example.com/logout.php">[/CODE] This will redirect the page after 300 seconds(5 min). Obviously the meta code will restart its timer when a user clicks a link, … | |
Re: Hello Alexander. i am using ColorBox myself. As i view your source code i see you have not set the <a href that comes right before the <img link correctly. You are missing the rel="" The jQuery code provided from ColorBox looks like this: (i removed some that i personally … | |
I need to make this code set "str" as "Recent" if the "str" got no value. Right now i have to use this: [CODE]<form> <select name="users" onChange="showUser(this.value)"> <option value="">Select album:</option> <option value="Recent">Somealbumname</option> </select> </form>[/CODE] but its really annoying to have to use the select, i want the code to load … | |
Re: Ready made frameworks is okay if your an old PHP veteran. If you haven't done your own "framework" at least once, then you will have holes in your knowledge. | |
Hello guys, im a PHP system programmer. My javascript/ajax skills are very limited. What i need to do is updating a div tag whenever an XML file updates. And if you cant help me with that i can do with just updating a div tag with PHP script inside every … | |
Re: If you just need an FTP account mate i got unlimited of them from my iPage host. Just PM me and i'll create one for you. Cant give you a domain, but i can give you a sub-domain for testing purposes. | |
Re: Alright....lets fire this thread up with some real code... [B]resizeImage.php:[/B] [CODE]class SimpleImage { var $image; var $image_type; function load($filename) { $image_info = getimagesize($filename); $this->image_type = $image_info[2]; if( $this->image_type == IMAGETYPE_JPEG ) { $this->image = imagecreatefromjpeg($filename); } elseif( $this->image_type == IMAGETYPE_GIF ) { $this->image = imagecreatefromgif($filename); } elseif( $this->image_type == IMAGETYPE_PNG … | |
Hello! i didnt see any primary forum this should be in, so i'll ask the animals of PHP. I really want the url [CODE]http://www.mysite.net/index.php?page=images[/CODE] to be [CODE]http://www.mysite.net/index/images[/CODE] Anyone got any idea? i've been searching and trying all day, but my brain capacity is not online today.. I will hug you...:( ![]() | |
It outputs blank for some reason, here is my current code. [CODE]<table> <?php $puserid = $anothervalue; echo public_Images($puserid); ?> </table>[/CODE] [CODE]function public_Images($puserid){ $sql = "SELECT * FROM `ue-userfile` WHERE userid = '$puserid' AND albumname ='Public' ORDER BY date DESC"; $result = mysql_query($sql); $count = 0; while($row = mysql_fetch_array($result)){ if ($count … | |
Re: Here is a simple ajax search... [CODE]<?php require "../db_connect.inc.php"; $query = "SELECT username FROM login"; $result = mysql_query($query); $a=array(); while($row = mysql_fetch_array($result)){ $a[]=$row['username']; } //get the q parameter from URL $q=$_GET["q"]; //lookup all hints from array if length of q>0 if (strlen($q) > 0) { $hint=""; for($i=0; $i<count($a); $i++) { … | |
[ICODE]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-userfile WHERE id='642' AND userid='459'' at line 1[/ICODE] This is the code [ICODE] $query = "SELECT * FROM ue-userfile WHERE id='$imageid' AND userid='$userid'"; $result = … | |
Do anyone see what im doing wrong with the update query? i get this mysql_error message; You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-xxx WHERE id = '616' AND userid = '15'' … | |
How am i supposed to insert a word into a blank row? [CODE]$sql = "INSERT INTO ue-userfile WHERE id='$imageid' AND userid='$userid' (`albumname`) VALUES('$newalbum')";[/CODE] ? [CODE]$sql = " INSERT INTO `ue-userfile` ( ``, ``, ``, ``, ``, ``,``,`albumname` ) VALUES ('{$albumname}')";[/CODE] ? God damn annoying to not find any solution on … | |
Hello. I have no idea how, so i'll ask you. I need /s/index.php?i=123 to be /s/123 any direction or tips would be appreciated! cheers, Sorcher | |
[CODE]$query = "SELECT * FROM image_share WHERE to='$username'"; $result = mysql_query($query); while($row = mysql_fetch_assoc($result)) { echo '<tr> <td width="100%" align="left" valign="top"> <div style="border-bottom:1px solid #6F6F6F;"><span style="color:#C0B184;"><a href=""><img src="'.$row['image_sharelink'].'" width="150" height="137"/></a></span><br/> <br/> </td> </tr>'; } [/CODE] cant figure out why it wont work. I got my error display on E_ALL mysql_fetch_assoc(): … | |
`Hello guys im trying to make this php code; [CODE]if(file_exists("u/txt/Chat/logged.txt")){ $file = $_SERVER[PHP_SELF]; if($file=="/systemchat.php"){ $file = file_get_contents("u/txt/Chat/logged.txt"); if(!strpos($file, $username)) { $myFile = "u/txt/Chat/logged.txt"; $fh = fopen($myFile, 'a+') or die("Can't open file"); $stringData = '<b>'.$username.'</b><br/>'; fwrite($fh, $stringData); fclose($fh); } } [/CODE] refreshed every second with Ajax, wondering how i should do … | |
Re: [CODE]<?php trim($filename); ?>[/CODE] ![]() | |
Re: This is the reason the script world got few good ones. Stop using PHP frameworks and actually make something from the beginning, maybe you will learn something | |
I dont know why this code will not show any data from the mysql......................... [CODE]$query = "SELECT * FROM g_attack WHERE winner ='$username' ORDER BY created ASC LIMIT 10"; $row = mysql_query($query) or die("Could not connect to db"); while ( $result = mysql_fetch_assoc($row)) { $created = $row['created']; $looser = $row['looser']; … | |
Alright so whatever i do i cant get this to work. Now...im not a wizzard or anything but why does it have to be so damn hard to find out if its more than 2 minutes or more in difference by the time in database to now. The "timed" in … | |
Hello guys. I am a freelancer, been doing html, css, php, mysql and such for a few years now, but i really never learned javascript and ajax, so i feel like an unpolished diamond because i know i can make advanced unique php systems, but cant really fancy them up, … | |
Hello peeps! I am wondering, how can i make this to not require manually writing. [CODE]if($attackerSoldiers >10){$ASoldierPercent = "1";} if($attackerSoldiers >20){$ASoldierPercent = "2";} if($attackerSoldiers >30){$ASoldierPercent = "3";} if($attackerSoldiers >40){$ASoldierPercent = "4";} if($attackerSoldiers >50){$ASoldierPercent = "5";} if($attackerSoldiers >60){$ASoldierPercent = "6";} if($attackerSoldiers >70){$ASoldierPercent = "7";} if($attackerSoldiers >80){$ASoldierPercent = "8";} if($attackerSoldiers >90){$ASoldierPercent = … | |
Does anyone else see the problem here? i get ""userdetails did not match"" But the $myusername is set correct. [CODE]error_reporting(E_ALL); if($_POST['tSubmit']){ $points = $_POST['pointamount']; $price = $_POST['price']; $reciever = $_POST['reciever']; $mypassword = $_POST['mypassword']; $myusername = $_POST['myusername']; include "../db_connect.inc.php"; $sql= "SELECT password, loginid FROM login WHERE username = '$myusername'"; $result = … ![]() | |
Hello guys, i got a small problem here. I can write and press "send" to submit a private message to a memeber, right... but if i refresh the page, the message gets sent again.. Anyone know a small php script i could put on top of the page to avoid … | |
Hello guys! I want to make a viewer function that adds up everytime the script runs. I want to do it with a text file, something like this i guess.. [CODE]$fp = fopen("video1.txt", 'a'); ///I guess i need to get the current value of the file, then add an additional … | |
Re: [url]http://lmgtfy.com/?q=optimization[/url] | |
Re: Go to uexploreus.com and check out the PM system there, just PM sorcher via the member list and i'll reply as soon as i see it. | |
Re: [CODE]echo "<a href= 'details.html?ProductID=".$Row['ProductID']."'> details </a>";[/CODE] | |
Hello. i was wondering if this can be done,personally my knowledge of Java / ajax is bad.. How can i make the submit button unable to be clicked if there is no data in the input (usermsg)? [CODE]<form name="message" action=""> <input name="usermsg" type="text" id="usermsg" size="100" /> <input name="submitmsg" type="submit" id="submitmsg" … | |
[CODE]#include<stdio.h> #include<graphics.h> #include<conio.h> #include<malloc.h> #include<stdlib.h> #include<dos.h> #include<iostream.h> int k=1, i, user=0, dice=0, x1=50, y1=410, x2=70, y2=410, dir1=0, dir2=0, ch; int cnt1=1, cnt2=1; void *obj1, *obj2, *o1, *o2, *dot, *back, *turn, *ready; unsigned int size; void ladder1() { int m,n; for(m=0;m<=250;m+=250) for(n=0;n<=m;n+=250) { setcolor(DARKGRAY); line(53+m,57+n,55+m,55+n); line(53+m,57+n,133+m,137+n); line(55+m,55+n,135+m,135+n); line(133+m,137+n,135+m,135+n); setfillstyle(SOLID_FILL, YELLOW); floodfill(55+m,58+n,DARKGRAY); … | |
Re: Does it have to be a pre-made random id? or can you do like this: [CODE] $randId = rand(1234ab,12345ab); [/CODE] [CODE] <form> <input type="hidden" name="randomid" value="<?php echo $randId ?>"> </form> and then insert it to mysql? [/CODE] ![]() | |
Hello! i didnt know where to put this post but i know the PHP section is stuffed with cyber animals who loves to help ;) I need to find a web host that does not police the file copyrights, that allows flash stream from website. I am not interested in … | |
Hello guys! i got a small problem here.. [CODE]<script type="text/javascript" src="jwplayer.js"></script> <script type="text/javascript"> jwplayer("mediaplayer").setup({ flashplayer: "player.swf", file: "data/vid/CHANGETHISNAME.flv", image: "preview.jpg" }); </script> [/CODE] I need to change the file name in this code by a PHP variable gotten from [CODE]$row['movietitle'];[/CODE]. I have no clue, please give me something.. Cheers, Sorcher | |
Hello! Quick question, i got a file uploader that can do huge files, so if i want someone to upload 1GB, what do i set the max_execution_time in php.ini to? ![]() | |
hello guys! I am looking for a large upload script. A script that can carry files like a movie on 1GB up to my server. # i got the host and the required settings. But i need a script with progress bar etc. I am willing to pay for it. … | |
hello guys! I am looking for a large upload script. A script that can carry files like a movie on 1GB up to my server. # i got the host and the required settings. But i need a script with progress bar etc. I am willing to pay for it. … |
The End.