- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 3
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
39 Posted Topics
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: 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 | |
Re: 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? … | |
Re: [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 … | |
Re: 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 | |
Re: 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] | |
Re: [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 … | |
Re: [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 | |
Re: > 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 = … | |
Re: [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 … ![]() | |
Re: [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 … | |
Re: [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 … | |
Re: [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, … | |
Re: 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 … | |
Re: [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. … | |
Re: [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 … | |
Re: [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 | |
Re: [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, … | |
Re: 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 … | |
Re: What is this? I mean is this like a blogging engine or what? | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: 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] … ![]() | |
Re: 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() … | |
Re: [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 = … | |
Re: [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 … | |
Re: [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 = … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: > 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); … |
The End.