39,323 Topics

Member Avatar for
Member Avatar for Subless

How can I take the below array and make it an in-line array? // Store user-data in array $USER = array(); // first user info $USER[1] = "username"; $USER[1] = "password"; $USER[1] = "rank"; $USER[1] = "session id"; // second user info $USER[2] = "username"; $USER[2] = "password"; $USER[2] = …

Member Avatar for Subless
0
192
Member Avatar for omoayan

Hi, I am trying to build an archive for a website that will be publishing journals. However, I am having challenges building the archive where past journals will be stored and retrieved for future references and reading. My major challenge is how to retrieve the datetime from the DB and …

Member Avatar for omoayan
0
86
Member Avatar for Sanchixx

How can i upload an image in my php comment box here it is: <?php $act = $_POST['act']; if($act == "post") { $name = $_POST ['name']; $area = $_POST ['area']; @$fp = fopen("comments.php", 'a'); if (!$fp) { //The file could not be opened echo "There was an error! Please try …

Member Avatar for diafol
0
188
Member Avatar for Squidge

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

Member Avatar for siteky
0
110
Member Avatar for Albert Pinto

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 …

Member Avatar for sasankasekhar
0
1K
Member Avatar for clydiex

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 …

Member Avatar for clydiex
0
227
Member Avatar for seblake

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

Member Avatar for sasankasekhar
0
135
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
180
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

The End.