39,316 Topics

Member Avatar for
Member Avatar for dami06

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 …

Member Avatar for imza
0
7K
Member Avatar for PF2G

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'])) …

Member Avatar for diafol
0
96
Member Avatar for BlueCharge

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 …

Member Avatar for diafol
0
88
Member Avatar for naaniwifi123

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.......

Member Avatar for pritaeas
0
192
Member Avatar for PF2G

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; …

Member Avatar for pritaeas
0
157
Member Avatar for Ctechnology24

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, …

Member Avatar for Ctechnology24
0
2K
Member Avatar for pete harby

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 …

Member Avatar for hoffmen99
0
4K
Member Avatar for VenkataRamana.K

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

Member Avatar for edith_is_sex
0
179
Member Avatar for saadi06

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.

Member Avatar for chrishea
0
51
Member Avatar for kaleem_ullah

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 …

Member Avatar for cjohnweb
0
3K
Member Avatar for rockout15

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 != …

Member Avatar for mustafaneguib
0
1K
Member Avatar for Robert1995

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&quota=$equota Cheers, Robert

Member Avatar for pritaeas
0
58
Member Avatar for saadi06

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 …

Member Avatar for pritaeas
0
69
Member Avatar for divyakrishnan

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.

Member Avatar for divyakrishnan
0
140
Member Avatar for vijayram

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 …

Member Avatar for baig772
0
115
Member Avatar for brainfo

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 …

Member Avatar for baig772
0
113
Member Avatar for McLaren

$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 …

Member Avatar for cereal
0
321
Member Avatar for afrogfx

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 …

Member Avatar for Squidge
0
182
Member Avatar for sam230

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 …

Member Avatar for Echo89
0
89
Member Avatar for dany12

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 …

Member Avatar for priebd1
0
192
Member Avatar for vindom

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"); …

Member Avatar for vindom
0
3K
Member Avatar for divyakrishnan

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 ?

Member Avatar for divyakrishnan
0
2K
Member Avatar for Venom Rush

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 …

Member Avatar for Venom Rush
0
138
Member Avatar for rstandley31

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 '

Member Avatar for pritaeas
0
199
Member Avatar for Buppy

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

Member Avatar for cereal
0
139
Member Avatar for riahc3

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 …

Member Avatar for pritaeas
0
397
Member Avatar for tymaut

Hello I am working on a web page(php based). I want to put a `like` button, so that when a user clicks it, he is added to the likers list in my database.(like in the facebook). I wrote a php funtion to execute this database insertion, but since the event …

Member Avatar for IIM
0
315
Member Avatar for gotboots

Hi all, I have the following code to process through my requests, then use in a database. FIRST of all, I was wondering if i have it in the right order, and SECOND, if there are any other steps i could do to secure up my application. have a look, …

Member Avatar for veedeoo
0
254
Member Avatar for newbie1234

I am signin my lgoin page it will redirect to my home page. The probs is when i am pressing back button it will go to login page. Again come on home page by press forward button. Is there any method to stop all this things. means it should be …

Member Avatar for broj1
0
146
Member Avatar for divyakrishnan

I have a shared folder with images in a machine. How can I display images from that machine in a web page in another machine. I used the follwing code but obtained no output ** <?php $img_src="file://192.168.0.138/E:/img1/12/12N69/12N69$0001A1.JPG"; ?> <img src="<?php echo $img_src ?>" alt="" width="1000" height="220" id="myimg" />**

Member Avatar for vibhaJ
0
309

The End.