39,316 Topics

Member Avatar for
Member Avatar for scourge.hellion

[CODE]<html> <body> <?php $var=$_GET['stuff'] . "\n"; $fh=fopen('savedstuff.txt','ab'); fwrite($fh,$var); fclose($fh); ?> </body> </html> [/CODE] well i have noticed that $var only takes string of length 250 anything greater than that it doesnt write it in the savedstuff.txt i.e [CODE]javascript:void(document.location="hellion/test.php?stuff=" +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxaaaaaaaaaa)[/CODE] the number of x's = 250 so when run the above …

Member Avatar for chrishea
0
69
Member Avatar for azegurb

Hi all I have one problem. I have created one little admin panel. and when i submitted a post and i refresh it again it automatically posts the post again. it posts as many as i click refresh. who can help me to eliminate this problem. here is my problem. …

Member Avatar for azegurb
0
118
Member Avatar for attism

This is the code from my main.template.php: [CODE=php] <div class="', ($var % 2 == 0 ? 'index_left':'index_right') ,'"> <div class="content_box"> <h2>', $category['title'] ,'</h2>'; foreach ($main['files'][$category['id']] as $file) { echo ' <div class="file file_index"> <div class="icon"> <a href="', $file['url'] ,'"><img src="', $file['image'] ,'" width="', $settings['image_width'] ,'" height="', $settings['image_height'] ,'" alt="', $file['title'] …

Member Avatar for attism
0
95
Member Avatar for miganper

Hi, i have working with an aplication ... this: [url]www.plantasic.es[/url] and like you can see, by clicking in a line at the right, each one displays a different image. When the image is loaded, there's a javascript code for re-measurement, for adjusting to the available screen area. The easy implementation …

Member Avatar for miganper
0
255
Member Avatar for muralibobby2015

hello, i have to display google images in my website. i would like to add google images in my wishlist simply drag the image into dropbox. it will add into my wishlist. for this i am using this code. this code is from [URL="http://demos.hacks.mozilla.org/openweb/DnD/"]mozilla[/URL] but it is not working in …

Member Avatar for madCoder
0
131
Member Avatar for ddggttff3

Well im currently coding up a paypal payment system to go with a user system for a site, and when someone goes through paypal, paypal pushes info to this script. Problem is, the script does not log anything to MySQL, and I can't figure out why. Anyone here want to …

Member Avatar for ddggttff3
0
249
Member Avatar for prettyrein

Now, I have another problem about duplication validation of my data in db.. the message "...already exist" if function validate was through. now if I add a new data, same message pop up...and i can't add new data. I try to reverse my return value and I can add but …

Member Avatar for prettyrein
0
127
Member Avatar for Mi-Dia

Thanks to a little guidance here I have written a function for getting part of a string returned. [CODE]function getcontent($tag,$string) { $pos1 = stripos($string, '<'.$tag.'>'); $pos2 = stripos($string, '<'.$tag.'>'); $content = substr($string, $pos1, $pos2); return $content; }[/CODE] [CODE]print $content('row','Hello world <row> bladh </row>');[/CODE] output would be "bladh"

Member Avatar for blocblue
0
277
Member Avatar for shafeequeom
Member Avatar for quibbie

Ok, here is the problem. I have an article directory and there are over 200 categories. When you go to a category it shows like 15 articles and at the top right and lower left it has like: Page: 1 2 3 4 5 6 7 When you are on …

Member Avatar for diafol
0
162
Member Avatar for prettyrein

Hi, I have this error Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\Program Files\xampp\htdocs\nsubackend\lib\model\classLabType.php on line 9 & same in line 52. here's my code: [CODE]function __construct($id=0){ $con = new connection(); $query = "SELECT * FROM tbllabtype WHERE labtypeID='".$id."'"; $res = mysql_query($query); if(mysql_num_rows($res)>0){ $row = mysql_fetch_array($res); …

Member Avatar for diafol
0
219
Member Avatar for amit_kuetcse2k5

Hello, I cannot create upload progress bar with php.I am a new php programmer.Have any idea?Please help me. Thanks Amit

Member Avatar for blocblue
0
150
Member Avatar for chicagoan

Seems simple enough right? I have put many hours into a solution...and nothing. I have tried multiple scripts and codes. Finally, I decided to ask for help. Here is the background... - PHP web site - Homepage shows images from database - Images are pulled randomly and displayed on homepage …

Member Avatar for branding4you
0
289
Member Avatar for edmundoswald
Member Avatar for prettyrein

Hi, i have this error : Strict Standards: Non-static method department::showAllDepartment() should not be called statically, assuming $this from incompatible context in /opt/lampp/htdocs/nsubackend/lib/controller/mainController.php on line 577.. and heres my code: [CODE]574 function showDepartment(){ 575 require_once('lib/model/classDepartment.php'); 576 new department(); 577 $departmentID = department::showAllDepartment(); 578 579 if(isset($_POST['addDepartment'])) $this->addDepartment(); 580 if(isset($_POST['updateDepartment'])) $this->updateDepartment(); 581 …

Member Avatar for prettyrein
0
183
Member Avatar for edmundoswald

how do i create php page with the following attributes(emp_id,emp_password,emp_address,emp_fname and emp_lname)tha will be posted to the data base?

Member Avatar for lyrico
0
267
Member Avatar for prezblog

Hi all! I'm putting together a WordPress blog, and I'm trying to make it work with a standard template called "Tribune." It uses custom tags on posts to apply thumbnails and featured images. I can't quite figure out where to place the code in the index file to get it …

Member Avatar for Kraai
0
183
Member Avatar for arunss

Hi, I have a bulk of pdf documents. I want to read that using php script. I searched a lot, but everyone is about creating pdf files. Here I dont want to create pdf file but I want to read it. Is there any way to read it php? -Arun

Member Avatar for chrishea
0
194
Member Avatar for showman13

Hi All, Hopefully someone will have a quick answer for this question, because I'm in the middle of a time critical project and this is a stumbling block. Here is what it is... I have a temp_transaction table (mysql) that has various fields, one of which is a trans_date (datetime) …

Member Avatar for showman13
0
248
Member Avatar for fumnimda

hi all. i have very good experience in html and css. now i want start work on theming joomla. how long will it take from me to get professional in this field? (joomla theming). and any suggested source for it? thank you.

0
98
Member Avatar for phpDave

Still stuck on images with php. I want users who are logged in to see the images they uploaded. I got scripts working but the get image file is not bringing image according to specific user. The problem seem to be in the query. I always get the first image …

Member Avatar for phpDave
0
77
Member Avatar for deecoup

Hii.... i have word press based website in which i am using SEO plugin named All in SEO in wp-theme (dyna Blue).but i ma facing one problem this plugin not working in internal pages ......plz any one can hellp me Waiting for response Thanks in Advance

Member Avatar for 2hamed
0
98
Member Avatar for edmundoswald

how to create an html form with emp_password,emp_address,emp_fname,emp_lname?

Member Avatar for 2hamed
0
41
Member Avatar for desiguru

Is there anyway I can type wget command into a php and that will download file directly from another server to my own server?

Member Avatar for ctsjoe
0
1K
Member Avatar for haribo83

I have a dedicated server running wamp server, everything is almost ready to do but I can only access the site using the IP address. I have a domain registered with 123-reg and need this to link to my site. Does anybody have any idea how to do this? Thanks

Member Avatar for Borzoi
0
115
Member Avatar for andrewliu

Hello. I have an image that is stored in a folder directory, and I was wondering how I can use php to retrieve that image by its name and directory with a search. I do have a search that will retrieve information on mysql, but I don't know the code …

Member Avatar for andrewliu
0
173
Member Avatar for arctushar

Hello I m having problem as below I have a file named [B]index.php[/B] and its code is [CODE] <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Hello!</title> </head> <body> <?php $abc=file_get_contents("file.php") ; echo $abc; ?> </body> </html> [/CODE] and the code of [B]file.php[/B] is [CODE] <?php echo "tushar"; ?> [/CODE] When I browes index.php its …

Member Avatar for mschroeder
0
110
Member Avatar for shafeequeom

when we are loging out we will get a php page.when i save that page i am not getting that box.i need source code of that page to get that box.Or please say me how to make that box Iam attaching the image of the logout page

Member Avatar for Kraai
0
163
Member Avatar for styleest

Please i need someone to help me on how to set my SMTP so that i can send mails. I work in an office that uses intranet and i was given the SMTP server and port no. but i dont know how to configure it. Pls someone help me

Member Avatar for Borzoi
0
216
Member Avatar for aitha

Hi, I am trying to write a .htaccess script that can redirect example.com to example.com/subdomain. This is my code but it's not working. Can you please suggest. RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] RewriteRule ^(.*)$ [url]http://www.example.com/subdomain/[/url] [R=301,L] Thanks in advance

Member Avatar for Borzoi
0
120

The End.