Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
77% Quality Score
Upvotes Received
6
Posts with Upvotes
6
Upvoting Members
6
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
3 Commented Posts
~37.3K People Reached
Favorite Tags

101 Posted Topics

Member Avatar for Sorcher

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.

Member Avatar for Widdit_Support
0
95
Member Avatar for nick3592

[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 …

Member Avatar for Sorcher
0
290
Member Avatar for n3xtgen

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 …

Member Avatar for subrata_ushasi
0
147
Member Avatar for Persi

[CODE]$name = end(explode(" ", $row['name'])); // Star $name = explode(" ", $row['name'])); // Five[/CODE]

Member Avatar for Persi
0
4K
Member Avatar for Poonam Jadav

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]

Member Avatar for Sorcher
0
299
Member Avatar for shielaolid

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.

Member Avatar for Sorcher
0
487
Member Avatar for pabzzmike

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 …

Member Avatar for karthik_ppts
0
150
Member Avatar for Sorcher

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 …

Member Avatar for Sorcher
0
118
Member Avatar for Sorcher

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){ …

Member Avatar for Sorcher
0
99
Member Avatar for gurmatchanan

What script it is? most likely custom built and not a open source cms.

Member Avatar for Cronless
0
171
Member Avatar for RobotFX
Member Avatar for Sorcher
0
252
Member Avatar for 18engineer

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]

Member Avatar for Sorcher
0
117
Member Avatar for Sorcher

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 …

Member Avatar for Sorcher
0
153
Member Avatar for yaseenmohd

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, …

Member Avatar for Stefano Mtangoo
0
556
Member Avatar for alexanderlegend

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 …

Member Avatar for Sorcher
0
203
Member Avatar for Sorcher

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 …

Member Avatar for Taywin
0
95
Member Avatar for Jones_nash

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.

Member Avatar for Ezzaral
1
190
Member Avatar for Sorcher

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 …

Member Avatar for Airshow
0
115
Member Avatar for saybabs

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.

Member Avatar for toms ace
0
154
Member Avatar for ebanbury

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 …

Member Avatar for ebanbury
0
221
Member Avatar for Sorcher

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...:(

Member Avatar for diafol
0
86
Member Avatar for ABUMIN
Member Avatar for Sorcher

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 …

Member Avatar for Sorcher
0
89
Member Avatar for DILO3D

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++) { …

Member Avatar for Sorcher
0
327
Member Avatar for Sorcher

[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 = …

Member Avatar for Sorcher
0
69
Member Avatar for Sorcher

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'' …

Member Avatar for karthik_ppts
0
141
Member Avatar for Sorcher

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 …

Member Avatar for Sorcher
1
81
Member Avatar for Sorcher

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

Member Avatar for Sorcher
0
82
Member Avatar for 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(): …

Member Avatar for IIM
0
106
Member Avatar for Sorcher

`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 …

Member Avatar for whiteyoh
0
120
Member Avatar for bob on whidbey
Member Avatar for mrcniceguy

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

Member Avatar for broswilli
0
2K
Member Avatar for Sorcher

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']; …

Member Avatar for Sorcher
0
62
Member Avatar for Sorcher

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 …

Member Avatar for Sorcher
0
185
Member Avatar for Sorcher

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, …

Member Avatar for MrDJK
0
92
Member Avatar for Sorcher

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 = …

Member Avatar for Ezzaral
0
126
Member Avatar for Sorcher

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 = …

Member Avatar for diafol
0
189
Member Avatar for Sorcher

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 …

Member Avatar for vibhaJ
0
107
Member Avatar for Sorcher

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 …

Member Avatar for Sorcher
0
78
Member Avatar for umeshMCA
Member Avatar for maxlipman

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.

Member Avatar for Sorcher
0
143
Member Avatar for loopylou8

[CODE]echo "<a href= 'details.html?ProductID=".$Row['ProductID']."'> details </a>";[/CODE]

Member Avatar for Sorcher
0
113
Member Avatar for Sorcher

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" …

Member Avatar for twiss
0
163
Member Avatar for Sorcher

[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); …

Member Avatar for WaltP
-1
140
Member Avatar for erza26

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]

Member Avatar for diafol
0
121
Member Avatar for Sorcher

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 …

Member Avatar for Wraithmanilian
0
142
Member Avatar for Sorcher

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

Member Avatar for Sorcher
0
158
Member Avatar for 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?

Member Avatar for diafol
0
76
Member Avatar for Sorcher

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. …

0
84
Member Avatar for Sorcher

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. …

0
83

The End.