39,320 Topics
| |
Hi all, Does anyone have a good rss class? i am looking to use one where i have a list of feeds in a database and you can select which feed to display via CMS | |
Hi people, got some weird issue. My update query isn't working once I upload my files on server, It works perfectly on localhost and delivers what its intended to do. I echoed my update query On local host it gave me: UPDATE displayusertrip SET displaytripmnth='JAN', displaytripyr='2012', displaytriptrps=' Goa Trip, Bengal … | |
Hello and Good day. I wanted to create a simple login / logout script in php. I have tried/copied all the available tutorials here in the web but I seem to have the same problem to all the scripts. Everytime I hit the login button i get redirected to a … | |
Good evening. I've never used php before... I tried... A simple query told me to use this syntax: <?php include 'Max-TechFooter.php'; ?> Another one showed the div's around it, so I tried that, too That's the way it is now: <!-- Footer --> <div class="footer"> <?php include 'Max-TechFooter.php'; ?> </div> … | |
I'm getting an error as i'm trying to create a login page which will allow users to be directed to the right page. e.g a student will be directed to the student page and the staff will be directed to the staff page but i don't know whats wrong with … | |
Hi, i'm editing results, but i want that all info of the result i select appears in the respective textbox's, waht happens to me is that everything is blank even the first combo box: admin.php <td width="5%"> <a href="edit.php?id=<?php echo $row_cont_lang['id']; ?>">Editar</a> </td> edit.php <?PHP include 'db_connect.php'; session_start(); if (isset($_GET['id'])) … | |
Hello Everyone, Thanks for reading, I have a string containing the html content of another file on my server, the content of this file is different depending on the $_GET['id'] as it's a PHP file. However, this file contains <div> tags and other things which mess up the result of … | |
actually my code is displyed var/www/html / folder contents only displayed on gui, i want to display the /home/Desktop folder contents on gui,,,....... plz any one help me....... | |
Hi, i'm trying to tell my sql no to delete if the results are 1 and that it has to be at least one user. but i can't: <!------------------------------------------> <script language="JavaScript"> function confirmBox(id) { if (confirm("Tem a certeza que pretende eliminar este registo?")) { location.href="remover_user.php?id="+id; } else { return false; … | |
Guys please give a simple code (specific syntax) on how can I integrate a jquery in my PHP site using codeigniter. and what configuration should be made in my other php files to make it work. I also cannot display any image in my php files inside the views folder, … | |
Hi I am really struggling here and cant see the syntax error. It is probably a " but could really do with a hand as to why I get the error: unsxpected T_STRING on line 14 My php code is as follows: [php]<?php include_once("php/library/lib.php"); include_once("php/library/template.php"); include_once("php/library/database.php"); // //$database = new … | |
Hi, Can anyone tell, how to detect whether PHP is installed or not? I want to find out this with the help of Registry in Windows? Is it possible? Regards, K.VenkataRamana | |
Hi, I want to test my website in IPAD but I dont have IPAD and I need to test the website on an emulator. Is there any authentic IPAD emulator on which I can test my website.Thanks in advance. | |
I have developed a contact us page and also PHP code that works perfect. Know the only problem is that after submitting the form it shows only "Message sent" on a new page. I want that after submitting the form page will redirect back to home page. It is only … | |
i want to add my dynamically created table rows.. to the database .. however i cant add it .. badly needed your help guys... thanks in advance heres my code: <?php include('connect.php'); if(!isset($_SESSION['user_id'])) { header('Location: login.php'); } $user_id = $_SESSION['user_id']; ?> <?php $date = $_POST['date']; if (isset($_POST['submit'])) { if($date != … | |
Hello everyone. I want to do this. I have a website for example www.rusuandreirobert.com . I want to create via PHP an email address 3rrgtbf@rusuandreirobert.com . I don't want to use this : http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass"a=$equota Cheers, Robert | |
Hi, I have two tables and they have one to many relationship.The two tables are fares and fare preferences.Now in fares table there is a unique user id and username and the user id is related to multiple preferences.Now I want to make a query that displays the username once … | |
Hi.. How to count no of files in a directory which is in another machine? I used the following code.But it is not working. <?php $dir_path ="file://192.168.0.138/img/$sub_code/$sub_code".N."$churunano/*.*"; $count = count(glob($dir_path)); $files = glob($dir_path); ?> The above code returns the count as 0. | |
hi everybody, i created three table planbook,like and user table. what is the problem in this code. nothing to error msg display.but did not like count store in database class planbook public function get_like_count($planbookId) { $planbook_id= $planbook_id; $planbook_obj=Doctrine_Query::create() ->select('p.planbook_like')->from('planbook p') ->where('p.planbook_id =?', $planbookId); $result=$planbook_obj->fetchArray(); } public function add_like_count($planbookId) { $stmt=mysqli_prepare($this->connection,"update … | |
Hello all, Since a day i was working on a site www.needmine.com . i had made a lot of changes in site. Even it was working till then. Suddenly the site stops displaying. When i clear the cache of the broswer and again ctrl refresh the site shows but in … | |
$all_confirmed = (count($changed_coefs_ids) == 0) AND (!$payout_too_big); $all_confirmed = (count($changed_coefs_ids) == 0) && (!$payout_too_big); How do you think, should those code lines get the same result? I got different result (comment out one line, then uncooment and comment out another) Wasted time till I noticed that, since that doens't make … | |
how can i create automatically tumbling .. I need when i upload original image automatically create thumb and add thumb ( size 200 x 200 ) in folder and insert path of thumb in database $thumb .. i need help .. any one can help me ? <?php error_reporting(0); if … | |
i have installed ssl on my server. i m just running payment part in https and rest of the website in http. when i try to use session variable from http to https. i got blank result, i think https destroy my session variables. i want to use session variable … | |
Hello I was wondering how to create an array with all fields in a email form and then send the email <?php if(isset($_POST['submit']))//array{ $content=array( $name=strip_tags($_POST['name']); $email=strip_tags($_POST['email']); $phone=strip_tags($_POST['phone']); $address=strip_tags($_POST['address']); $city=strip_tags($_POST['city']); $title=strip_tags($_POST['subject']); $message=strip_tags($_POST['message']); ); } $to = "email@domain.com"; $subject =$title; $from = $name; $headers = "From:" . $from; mail($to,$subject,$content/*change array to string … | |
Trying to redirect from inside an iframe ... that's the code: <?php include'file_constants.php'; $imgid = $_GET['id']; $con = mysql_connect($host, $user, $pass) or die("Can not connect to database: ".mysql_error()); mysql_select_db($db_name) or die("Can not select the database: ".mysql_error()); $sql = mysql_query("SELECT * FROM comments WHERE ImageID = '$imgid' ORDER BY Date DESC"); … | |
Hi.. I want to hide/rewrite the URL of my php project. I found many forums regarding this. I have a doubt in .htaccess file. Is it need to create a new .htaccess inside my project folder ? | |
I have a url with parameters appended to it. I want to know if there's a way (similar to explode) that seperates a string based on a delimiter and makes the string on the left of the delimiter the key of an array and the string on the right of … | |
well here it is crashing on line 76 and throwing the error in the Preg_match statement Why? Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /home/content/73/9352073/html/includes.php on line 76 line 76 reads if(preg_match("index.php", $_SERVER[SCRIPT_NAME])) I cannot see a syntax error can you? Thanks Rob ' | |
Hi, I have a problem with strtotime displaying months. See the code: print(date('M-d')); //prints May-31 print(date('M-d',strtotime('-1 month'))); //prints May-01 Since i need it to get the previous month, why is the function ignoring the fact that there are 31 days in May? Thanks | |
Hey When I try to interpret thru PHP, a Java web service that returns a boolean type, this error (more like a warning) pops up: Notice: Object of class stdClass could not be converted to int in C:\testing\page.php on line 29 How can I make the PHP page understand true … |
The End.