39,320 Topics
| |
echo '<a href="javascript:void(0)" onClick="javascript:chatWith('.$result[3].')">'.$result[3].'</a>'; only the $result[3] between the <a> and </a> gets displayed....i want to display also the $result[3] within the javascript function call....is thr any error in it?? | |
Hello, I am currently passing some HTML through to preg_match and I want to access all the HTML between two tags, however as the same tags may be repeated afterwards my current expression isn't working. For example, my expression at the moment is [code]<li>(.*)</li>[/code] But as the HTML is like … | |
Hey guys, I have been trying to create a registration page for a while now, and I just can't seem to get it right. Could any of you help me? I currently have 3 php pages. The first is the homepage, which also includes a sign up form: [code] <form … | |
Hi, I am after some advice, any would be very much appreciated. I want to create a members area, members login and their information is displayed. I have created the login and register pages and now I am at the stage of having a MYSQL database with information in relevant … | |
[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 … | |
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. … | |
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'] … | |
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 … | |
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 … | |
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 … | |
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 … | |
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" | |
What is the easiest way; using a cms blog script or making html files | |
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 … | |
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); … | |
Hello, I cannot create upload progress bar with php.I am a new php programmer.Have any idea?Please help me. Thanks Amit | |
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 … | |
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 … | |
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? | |
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 … | |
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 | |
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) … | |
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. | |
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 … | |
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 | |
how to create an html form with emp_password,emp_address,emp_fname,emp_lname? | |
Is there anyway I can type wget command into a php and that will download file directly from another server to my own server? | |
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 | |
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 … |
The End.