Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
4
Posts with Upvotes
3
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
3 Commented Posts
0 Endorsements
Ranked #1K
~12.8K People Reached
Favorite Forums
Favorite Tags

39 Posted Topics

Member Avatar for TMLAH

[QUOTE=TMLAH;788506]Hello, I have a script that allows user to upload a file to a mysql 5 database. That is working OK. The File size is accurate. However, my download script is for some reason downloading the files without any content - 0KB. The files are OK when I open them …

Member Avatar for abhisheklnt
0
6K
Member Avatar for nicolem443

[QUOTE=nicolem443;791123]Hi, I have the following peice of code which pulls data from a database: $rsfeed = mysql_query("select Title from Abstracts where (ID = '12')); $thearray = mysql_fetch_row($rsfeed); I can print the title using: print $thearray[0]; but theactual resultset is more then 1 row, and what i need to do is …

Member Avatar for joostklaver
0
137
Member Avatar for irx

[QUOTE=irx;790393]Hey all, I have been searching and searching no luck yet. I think what i have come up with is using apaches rewrite map, but clueless as to where to begin. Here is the situation I have. I have a url [url]http://www.somesite.com/post.php?id=13[/url] and want to turn it into a SEO …

Member Avatar for abohmeed
0
151
Member Avatar for mcx76

[QUOTE=mcx76;792742]Hi, I am making php from.Everhting is working fine.I am receving result as below.I want to space before Tel no.Please be advice how i can do. Thank you. --------------------------------------------------- Email Result -------------------------------------------------- General Info Request Name: Khan 1665 Bloor Street Mississauga L4X3T4 Tel:647-290-0000 Email: [email]hanyon@gmail.com[/email] Best Time To Contact:11am Message …

Member Avatar for mindful123
0
213
Member Avatar for akash_msrit

[QUOTE=ingeva;840589]You can keep a list of who is logged in, or you can use a cookie. A session variable won't do it because each session would have its own value.[/QUOTE] Cookie will not help at all because a second login attempt may come from a different browser. You just need …

Member Avatar for urtrivedi
0
137
Member Avatar for cosby

[QUOTE=cosby;827578]I have the permission to run chown using the command prompt, so the script that uploading file need to be root before executing chown.[/QUOTE] How do you chmod these files? Are you doing it yourself or do you have a php script that does chmod after the upload automatically? If …

Member Avatar for digital-ether
0
130
Member Avatar for Coward

Like this: [code=php]$BbParser = new HTML_BBCodeParser($settings); $BbParser->setText( $strContent ); $BbParser->parse(); $PrarsedContent = $BbParser->getParsed();[/code] $settings is array of settings $strContent is your content that contains bbcode and $ParsedContent is the html with all bbcode replaced by html tags

Member Avatar for Coward
0
174
Member Avatar for swearword

This is a very complicated topic and there are many possible solutions, each one would have different requirements. First of all - is your site database driven? If yes, then do you want to load-balance database server too or just keep one backend database server and several front-end web servers? …

Member Avatar for justinmichaels
0
1K
Member Avatar for RockNRoll

[QUOTE=RockNRoll;805859]How would i go about making a music uploader / player or were could a get a script that does that? I want the user to be able to listen as well as contribute music to the site..[/QUOTE] you can just let users to upload an mp3 file using an …

Member Avatar for uncle_smith
0
126
Member Avatar for shadiadiph

Define 'dangerous'? Also mime type can easily be forged, so keep that in mind if you plan to rely on mime type to check for potentially dangerous files

Member Avatar for uncle_smith
0
60
Member Avatar for shadiadiph

Consider using pear class Mail_Mime to generate Mime emails This class will take care or encoding your email properly, including attachments. [url]http://pear.php.net/package/Mail_Mime[/url] See how easy it is to send email with attached file: [url]http://pear.php.net/manual/en/package.mail.mail-mime.example.php[/url]

Member Avatar for shadiadiph
0
109
Member Avatar for mrcniceguy
Member Avatar for sarithak

[QUOTE=sarithak;800941]Hi frnds.. i need to know some ajax based small websites.... i mean website designed by using [B]ajax[/B] with [B]php.[/B]... Also send me some urls regarding ajax basics to learn ajax easily.. ....[/QUOTE] Correct me if I'm wrong but it looks like this forum uses Ajax for some of the …

Member Avatar for uncle_smith
0
125
Member Avatar for ade92uk

[QUOTE=ShawnCplus;796939][code=php] // assuming the string is called "someString" $words = explode(" ", $someString); $index = rand(0, count($words)-1); $choice = $words[$index]; [/code][/QUOTE] OK

Member Avatar for ShawnCplus
0
236
Member Avatar for dragon@dragon64

> Hi All > > I am trying to create a page to delete records from a database, but i cannot seem to get the right code in > > hereunder please find my code <?php require_once('Connections/conn.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = …

Member Avatar for dragon@dragon64
0
263
Member Avatar for gagan22

[QUOTE=gagan22;794921]Hi everyone, I want to use two radio button on a php page when we click on first radio button page will show different form below the radio button and when we will click or select second radio button then i want to show another form on the same php …

Member Avatar for diafol
0
142
Member Avatar for 6pandn21

[QUOTE=6pandn21;792343]Hello guys! I hope you don't mind me posting so quick again. I am struggling or better don't seem to have proper idea about what to do here. I want to make a simple birthday reminder. I have got a list of people in my database and I log in …

Member Avatar for 6pandn21
0
215
Member Avatar for serdas

[QUOTE=serdas;794002]i don't know if this is enough you to help me but looking at this could you tell me what i could do to fix it? [code] $user_check = mysql_query("SELECT userdb_user_name FROM default_userdb WHERE userdb_user_name='$reciever'"); $user_check = mysql_num_rows($user_check); Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in …

Member Avatar for serdas
0
174
Member Avatar for gordo58

[QUOTE=almostbob;791479][code=php] echo "<meta name=\"description\" content=\"".$row{'Name'}." - ". substr($row['Description'],0,strpos($row['Description'],' ',150)) ."\">\n";[/code] I think that this will break the string at the first whitespace after 150 characters anyone seen the fingers crossed icon :)[/QUOTE] Sorry, my mistake, for some reason I thought that strrpos was used, now I see it is strpos, …

Member Avatar for uncle_smith
0
134
Member Avatar for Jacky1

Apache already logs the access to your image (image view) All you have to do is configure apache to log access to certain files (like images) to a database instead of to the normal access log. If you have control over your server, then install something like mod_log_sql and configure …

Member Avatar for Jacky1
0
833
Member Avatar for mrcniceguy

[QUOTE=mrcniceguy;792665]as i`m creating a social network website,i would like to inhance members to upload photos to their personal albums. So i dont know how to get started,is there a free script i can use or somebody to explain to me what i need to do inorder to fulfill my needs. …

Member Avatar for mrcniceguy
0
129
Member Avatar for Andy2210

[QUOTE=Andy2210;792302]Hi am currently new to php i know all the basics etc but wanting to learn to do bigger more complicated things can anybody reccomend any gud software or books or anywhere could have help learning any help would be appreciated fanx[/QUOTE] Depends on what you call basic things. Do …

Member Avatar for almostbob
0
105
Member Avatar for vivichie

[QUOTE=vivichie;790944]Can i call a flash function from php?[/QUOTE] What exactly do you want to acheive? If you want to generate flash movie using php, then yes, it's possible

Member Avatar for almostbob
0
145
Member Avatar for gpittingale

[QUOTE=gpittingale;791009]Can anyone please help here I have a form that i wish the user to select a product from a drop down box and then query it in a mysql then i would like to the user to input a number in the next field the press the submit button, …

Member Avatar for Fest3er
0
139
Member Avatar for antwan1986

Salt has nothing to do with sutiation where cracker can keep guessing passwords. It will help in case where someone steels your database. You have to realize that md5 is not unhackable. There are many good ways to reverse the md5 hash back to the original value especially when the …

Member Avatar for antwan1986
0
103
Member Avatar for websurfer
Member Avatar for nicolem443

[QUOTE=nicolem443;791125]Hi i am trying to output data the way i want but just cant get it to go in the right place. The code i have used is: for($i=$n_start;$i<=$n_end;$i++) { echo "<img src='{$products[$i]['phonepic']}' width='100' height='100'>"; echo "<tr>{$products[$i]['modelNum']}</tr>"; echo "<tr>{$products[$i]['price']}</tr>"; echo "<tr><input type='text' name='item{$products[$i]['stockID']}' value='0' size='5'></tr>"; } As you can see …

Member Avatar for uncle_smith
0
83
Member Avatar for nicolem443

[QUOTE=nicolem443;791122]hello I've got two tables that I want to be connected(let's call the A and B), so I made a third table. In table A and B i got two primary keys a_id and b_id. Now I create the third table named AB. Inside that I create ab_id as primary …

Member Avatar for uncle_smith
0
96
Member Avatar for theimben

[QUOTE=!Unreal;790950]I have this... [code=php] <?php $links = explode("\n", $_POST['links']); foreach ($links as $links) { echo '[PART="NUM"]'.$links.'[/PART] <br />'; } ?> [/code] Where it says NUM I want the number of its position in the array. So if I fed this to this script: [CODE] http://www.google.com http://www.yahoo.com http://www.ask.com [/CODE] The script …

Member Avatar for almostbob
0
96
Member Avatar for aparnesh

[QUOTE=aparnesh;790861]I have developed a site in PHP 5.26, which is running perfectly from the development server. But after uploading the site to the Web server, it is not working. The server is running PHP 4.4. I haven't used any specific features of PHP 5, so the site should have worked …

Member Avatar for uncle_smith
0
149
Member Avatar for marcosjp

I used (tried) several wysig editors. Finally I made my choise: YUI RTE It's very easy to implement, easy to extend (add new features, new buttons), easy to use with Ajax based forms. It's free, lightweight, you can even include a javascript right from yahoo's server, they allow this. [url]http://developer.yahoo.com/yui/editor/[/url] …

Member Avatar for diafol
0
156
Member Avatar for MDGM

I think if you cast to integer, php will automatically do this for you. $val = '10.000'; $val = (int)$val; $val should become just 10 now. You can also try printf or sprintf functions to format your string and if you want to preserve the decimal points then try floatval() …

Member Avatar for MDGM
0
93
Member Avatar for khr2003

[QUOTE=khr2003;789961]hi I have a for loop that extracts information from news websites and insert them into my database. How do I make the loop stops after it successfully inserts 5 rows?[/QUOTE] count the number of inserts, add $numInserts <= 5 in the for loop condition [code=php]$numInserts = 0; for($i = …

Member Avatar for uncle_smith
0
58
Member Avatar for simplyV

[QUOTE=simplyV;788857]Please help me find errors in this code, because it is not displaying what i requested. PLease answer A.S.A.P [code=php] $query = mysql_query("SELECT * FROM member"); $result = mysql_query($query); while ($row = mysql_fetch_array($result)) { if(mysql_num_rows($result) == 0) $result = mysql_query("UPDATE member SET flgCurrent = 'false' WHERE idMember =" .$row[0]); echo …

Member Avatar for simplyV
0
96
Member Avatar for jakx12

[QUOTE=jakx12;789412]Ok so heres the code . The error is this: $row[title] $row[content] $row[date] $row[title] $row[content] $row[date] $row[title] $row[content] $row[date] i mean thats all i get! and the code is this [CODE]<html> <head> <link rel=stylesheet type=text/css href=style.css> <title> Blog </title> </head> <body> <?php $username = $_SESSION['username']; include("header.php"); include("dbcon.php"); dbcon(); $result = …

Member Avatar for almostbob
0
82
Member Avatar for rajeesh_rsn

[QUOTE=rajeesh_rsn;788526]Hi Please any one help me with a secure php image upload script... With out change the destination folder's chmod to 0777..... Please help me....... I am using php apache server... thx in advance[/QUOTE] 0777 is never necessary for upload scripts. 0666 is enough. an even better permission or 0660 …

Member Avatar for almostbob
0
99
Member Avatar for gpittingale

[QUOTE=gpittingale;788499][CODE]$result = mysql_query($sql_query,$conn) or die('Invalid query: ' . mysql_error()); $tip = $details['TotalHouseholds']; $perc = 21.33% $sumone= $tip*$perc;[/CODE]could anyone tell me if this is remotley correct i have tryed it in a browser but i get the page displayed normally with a nice line of code telling me am bit confused …

Member Avatar for almostbob
0
93
Member Avatar for Mapper99

[QUOTE=Mapper99;788399]I have a simple problem and I do not want to write 24 if statements. I am creating a URL string which requires precise formatting to work. This URL is getting created on the fly based on variables ($Layer1.','.$Layer2.','.$Layer3) I pass in to create the URL string. The URL string …

Member Avatar for uncle_smith
0
235
Member Avatar for jakx12

> The code is this: <html> <head> <link rel=stylesheet type=text/css href=style.css> <title> Search Results </title> </head> <body> <?php include("header.php"); ?> <center> <div class=indexboxlarge2> <?php SESSION_start(); include("dbcon.php"); $searchresult = $_POST['result']; dbcon(); $query = mysql_query("SELECT * FROM user_info WHERE 1_name LIKE '%$searchresult%' OR WHERE 2_name LIKE '%$searchresult%'") or die(mysql_error()); $total = mysql_num_array($query); …

Member Avatar for uncle_smith
0
139

The End.