39,323 Topics
| |
I created a mobile version of a client's website. I created a subdomain called mobile.sitename.com In the past I have used this code on the index.php page: [CODE]<?php $mobile = "http://mobile.cogistix.com"; if(preg_match('/Windows CE/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");} elseif(preg_match("/iphone/i",$_SERVER["HTTP_USER_AGENT"])) { header("location: $mobile");} elseif(preg_match('/Blackberry/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");} elseif(preg_match('/PalmOS/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");} elseif(preg_match('/PalmSource/i',$_SERVER['HTTP_USER_AGENT'])) { … | |
I am running a form that pulls data from multiple mysql tables. However whenever the php/mysql code is in the html form tags it will not read the php/mysql nor will it read any php for exampl echo "here";. I have done this several times before so I imagine it … | |
Hi guys, I'm wanting a PHP code snippet which will search a database table based on 9 individual text boxes containing 1 character each. And then return all entries which contain those characters in any order using each character only once. So if it were the following characters; H E … | |
[code] <?php include("conn.php"); include("session.php"); ?> <html> <head> <title></title> </head> <body> <form action="user.php" method="post"> <table border="0" align="center" width="100%"> <tr> <td align="center"><a href="editevent.php">Edit Event</a></td> <td align="center"><a href="addevent.php">Add Event</a></td> <td align="right"><a href="logout.php">Logout</a></td> </tr> <tr> <td colspan="3"><b>List of events</b></td></tr> <?php $str="SELECT * FROM eventdesc "; $res=mysql_query($str); if(mysql_num_rows($res)!=0) { while($data=mysql_fetch_array($res,MYSQL_ASSOC)) { echo '<tr> <td>'. $data['eventdesc'].'</td> … | |
Hi everyone! Thanks for reading my post. I have 2 questions, first I have a PHP site where it reads the pages from a folder and shows it in a php frame, for example the contact us page with the file name of contact.php will be shown as http://www.<DOMAIN>?page=contact. and … | |
If I run my php file manually I am getting the output as follows: [{"org_id":"39575","orgname":"ARTHRITIS FOUNDATION - VIRGINIA CHAPTER","orgcity":"RICHMOND","orgstate":"VA"}] The php code is as folows: [code=php] <html> <body style="background-color:#33990f"> <?php // connect include require ("connect.php"); $query = "SELECT * FROM orgs WHERE org_id = 39575"; $result = mysql_query($query)or die(mysql_error()); if … | |
hey i despritly need some help getting this phpmyAdmin up and running again. i'm using wamp with mysql but can't get into my PhpmyAdmin for some reason. i've uninstalled it and re-installed it. the extension mysql.dll is there in the php.ini file uncommented the php extension for mysql is checked … | |
Hi to all, How to send the instant message to yahoo messenger by using the xmpp or any other application .If some one knows kindly provide the url and links. Thank you, With Regards, Premnath.M | |
Hi, I just installed ssl on my apache/centos server. Php works fine over the regular http connection but when I try to reach php files over the https connection for some reason they do not get parsed and delivered directly as text files. Below is the virtualhost section from my … | |
I have created a login system based in PHP and MySQL, where upon registration, users enter the information required in the form. However, there is another page where they can review their information once they have logged in. I am new to PHP but I would like to know the … | |
hi friends, i have a problem in my code here is paste the code [code=php] foreach ($entries as $entry) { $preview = textPreview($entry['texts'], 15); echo '<div class="leftnavi"> <h2>'.ucwords($entry['title']).'</h2> <p><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.example.com" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;"></iframe></p> <div class="tags"> <p>'.ucwords($entry['tag']).'</p> </div> <div class="quotes"> <p>'.stripslashes($preview).'</p> <p><a href="index.php?p=blog&cat='.$entry['catid'].'&fv='.$entry['id'].'">Read More</a></p> </div> </div>'; } [/code] … | |
| Hello, I am starting to freak out with my php codes because it is just a mess and i get an error when i close my php tag. This php file is going to upload an image and set a name,description, and signature from the player, but i get this … |
Hello all - I'm having some trouble UPDATING my mysql using php. I'm working on a event planning system; the user can click on the company to see a small report that has some areas which must be editable (payment status, etc.). I get these values into a form to … | |
Hi) I needed to make it possible for the user to upload many files from many directories of his pc to server. Here is the html and js code html [CODE] <div id="addPhoto" > Path and Title of the Photo. <br /><br /> <input type="file" name="flImg0" /> <input type="text" name="txtTtl0" … | |
Hi all, I have ben tring to write some code that will help protect my forms \ data input I have wrote the following for anyone to use \ comment \ edit and improve. Im new to php and have read alot about securing data input from sql injection. If … | |
Hi guys, I have a query which returns 0 (zero) as a result not as a row in MySQL interface. However, when I run it in PHP the query doesn't return anything although there is one value which is 0. It is a Decimal type. Neither of these work. Result … | |
currently im working on my php code which display username,date and comments. how can i copy the username andinsert it into the other table using mysql? here's the table looks like table_1 ID USERNAME table_2 ID DATE COMMENTS | |
Hi Coders, I recently found a script online that clears tweets from a twitter account. The script is written in coldfusion which is not supported by most web hosts as you guys know. I'm a programming newbie, so I want to know if it's possible to code this same script … | |
Hi, I was making a search box and was trying to highlight the words that the users will enter in the search box,for example if the user enter "kids" in the searchbox it should highlight the "kids" word in the result............. is anyone have an idea how to do that | |
Hi All, I need to validate the telephone number entered by the user in a form. Following are the conditions. 1. The length of the string should be 10. 2. The first character should be ZERO. 3. Remaining 9 characters can be any digits from 1-9. I am using the … | |
I have a search engine that searches through my sql table called `sheets`. Inside this table are the following columns: id int(11) No artist varchar(100) No title varchar(100) No url varchar(2083) No timesdownloaded int(11) No lastdownloaded date No todaydownloads int(11) No date date No active varchar(3) No duplicate int(1) My … | |
Hi all, I have three inputs required at a prompt in the index file below which requires the following data a number which will be the title code such as tt0892318 and a number that will be prefixed with tt and be interpreted as the title code such as 0892318 … | |
Hello Friends, I am looking for a web based music player which has functionality like these 1. Play/Pause button 2. Shuffle button 3. Repeat button 4. Search from playlist option 5. Volume Up/Down button 6. Next/Previous button I am currently using wordpress to on my site & uploading sons through … | |
I have installed a software program and i am not able to call it out : Here is the error message which i do not have any clues of as i am non IT literate , that's why i come to this forum . Warning: include(../config.php) [function.include]: failed to open … | |
Hi I have a session variable I wish to display in the title of a web page. This works well with IE. However, when I switch to Firefox it only works when viewed from my personal server. And not when I view my page when I go online using Firefox. … | |
HI Guys, I am trying to make a Result Management Sytem for our department on PHP. This system will add results online as well show up results. I have downloded a PHP inventory system named PHP Inventory 1.2 I want to change it into a Result System like I want … | |
Here is a snippet of my codes[CODE]<?php $animesql = "Select titles.name FROM titles WHERE titles.cat_id = 1 ORDER by name ASC"; $animeres = mysql_query($animesql); echo "<table id='MISC' style='display:none;' width='200' border='0' cellspacing='0' cellpadding='0'>"; echo "<tr><td><p class='al_toggle_txt'>"; while ($anime_list = mysql_fetch_assoc($animeres)) { //$str = str_replace(" ","",$anime_list['name']); $str = preg_replace('/[^a-zA-Z0-9]/','',$anime_list['name']); echo "<span style='cursor:pointer;' … | |
New to programming. I am using fopen, fwrite fead to read and add content to a flat txt file. I can check to see if file_exists no problem, but if file exists but its empty... not sure how to check for that. Was hoping to at least get pointed in … | |
hi, thanks for u precious helps... Now i need to know if it is possible to edit an online docx template and save it back to docx locally? wat i mean by template is that it enters specific values on the template as per a form entry | |
The above classes provide an interface for reading the PHP session data. PHP alone only gives you access to the current users session. This class allows you to read all session files, and thus allow you to read session data across different users. This may be useful if you want … |
The End.