39,388 Topics
![]() | |
Hello, I currently have this setup for a "download a mp3" php page: [CODE] <?php include "class.php"; $account = new account(0); $id = $_GET['id']; $u = $_COOKIE['username']; $a = mysql_fetch_array(mysql_query("SELECT * FROM items WHERE id='$id'")); $file = $a['actualPath']; header("Cache-Control: public"); header("Content-Description: File Transfer"); header("Content-Disposition: attachment; filename=$file"); header("Content-Type: audio/mpeg"); header("Content-Transfer-Encoding: binary"); … | |
I have a website which holds articles. So right now theres a page called viewarticle.php and i use GET to send the article id so that it will be retrieved by MySQL database (for eg. viewarticle.php?id=2 loads article no. 2) But instead of that is there a way of refering … | |
![]() | Hi I have a question. I haven't try this yet but rather have someone tell me that it will work or not. For example I have this let's call this **1.php** file **1.php** has these two categories SKU: <?php echo stripslashes($row1['sku']);?> Item ID: <?php echo stripslashes($row1['itid']);?> I want to submit … ![]() |
I think I have a relatively simple problem, but forgive me, I'm new at this. I'm trying to take output from a dynamically created checkbox in php to a foreach statement to make a new string that I can use to request an update from mysql. In the foreach loop, … ![]() | |
Hi, currently working on tutorial on how to create simple login php for my juniors. I learnt to create login php using dreamweaver cs4 and xampp, it works. This time, I try to modify the code and using zymic database [http://mysqlquery.zymichost.com](mysqlquery.zymichost.com) first i create the index.html <html> <form action="login.php" method="POST"> … ![]() | |
![]() | I would be great if someone could spot the problem with this code please. I have a MySQL table that was populates an Options list which works well when adding new records to another database table. The code is: $query="SELECT id, types FROM $table ORDER BY types ASC"; $result = … |
Hi everybody, I created the userlogin page.user give username and password .afterthat this error was comming.but this code work in online server.i adding the new module so,i copied and paste the my local drive. ![]() | |
OK. I have an Ajax getproduct() function that calls getproduct.php page with the id of li tag elements from multiple uls in #sidebar div. The id of each li tag references a table in the database as `'$q=$_GET["q"]'`. All the rows in the tables called are the same and each … | |
hi i installed wamp5 1.7.4in windows 7 and started wamp server using komodo edit i created a file with a test command <? php phpinfo(); ?> but all i get is blank page i tried html it would work fine but none of the command for php is working | |
HI everybody, I have this error.i created a user login page using sfguard user.(symfony framework) but i include php.ini Windows: "\path1;\path2" ;include_path = ".;c:\php5.3.8\PEAR" but still same error was comming.what is the problem.plz anybody help me. Fatal error: require() [function.require]: Failed opening required '/' (include_path='.;C:\php\pear') in C:\wamp\www\public_html\lib\vendor\symfony\lib\view\sfPHPView.class.php on line 75 | |
I got this error on my page when I tried to login, I don't know what happened please someone help me. What do I need to do? Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'steve_wff'@'208.113.246.18' (using password: YES) in /home/steve_wff/worldfamousflags.com/usssa/system/database/mysql.php on line 6 Error: Could not make a database connection … | |
Good Morning everyone, could some one please send me and image of an enrollment System for high school for my reference? | |
I have a question that will probably be easy for someone to answer. I have a form with about 20 fields +- to be entered... When submitted, I check for the validity and existance of a few of the fields that are important, but not all of them What I … | |
How to replace local file path to insert url link [download.php](https://github.com/apps-vn/download.php/blob/9ffc7c80efe57ad8d29f10897f04155c463778e3/.gitignore) // Free Downloads if (isset($_GET['free'])) { $row = $android->getFreeDownload($_GET['free']); if ($row) { $fname = basename($row['filename']); $file_path = ''; $android->fetchFile(BASE_DIR, $fname, $file_path); $fsize = filesize($file_path); $fext = strtolower(substr(strrchr($fname, "."), 1)); if (!file_exists($file_path) || !is_file($file_path)) { redirect_to(($core->seo == 1) ? $core->site_url … | |
hi i'm trying to create a search function for my website and I keep getting this error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a7526299/public_html/SearchResult.php on line 158 <form action='SearchResult.php' method= 'get'> <input type='test' name='k' size='50' value='<?php echo $_GET['k']; ?>' /> <input type='submit' value='search' /> … ![]() | |
Hi, I have Folder Which Name is **LAPO** and There are three Folders insider whihc names are **North**, **Central** and **South**. In North Folder there are many Folders Like **9876** , **9877** , **9333**, **9853** etc. In all Folders there are files Named PO.pdf There are more then 1400 Folders … | |
<select name="country" id="country"> <option value="IN">India</option> <option value="PK">Pakistan</option> <option value="UK">United Kingdom</option> <option value="US">United State</option> </select> When a user selects a country and clicks submit php gets the **value=""** ie, country code instead of country name. | |
Any examiner, webmaster,graduate students in computer science or related in here? If yes can you please confirm if an online movie or concert/theatre/attractions booking system using php ,apache, mysql is a suitable topic as final year project? I would like the site to look a bit like stargreen.com or similar … | |
Hello Friends, i have created a page, here a sql query retrieve students name from database and put these values in drop down options. now i want, i select a value from drop down and send it ot another page. but it is not working. on my next page nothing … | |
How to make url like like this, http://www.facebook.com/username | |
Hi all, i need your experties where i now in trouble. How can i avoid data jump to next row if user enter "," even data actually in same field..in CSV the row saperate by ",".. so my CSV file is look not stabil when the data convert to wrong … | |
first off hi again. Now i dont know where to start this one script or let alone how to execute it. This is what i would like to learn how to do. I would like to output the current DB structure then take that and update another db with the … | |
Hi every body, I have this error anybody plz help me. Parse error: syntax error, unexpected '>' in C:\wamp\www\public_html\apps\frontend\modules\personal\templates\indexSuccess.php on line 30 this is the line 30. **>getPrimaryAlbumId()."_".$personal->getProfilePicture(), true) ?>" alt="Profile Picture" /></a>** <?php use_javascript('addTalk') ?> <?php use_javascript('schedule') ?> <?php use_javascript('sync') ?> <div id="profileName"> <?php foreach ($personals as $personal): ?> … | |
Hi all, After spending 2 days going through this code, going through search engines and endless forums trying to find a solution, i find myself still on Square 1. Therefore just before I begin hitting my head against the wall (have pity on the poor wall) I thought I'd give … | |
I am new to PHP/MySQL and currently working on a project to learn it a little better. I have a bit of PHP code and it has a problem that I'm having a little trouble figuring out. Basically, it is taking session data and writing it to a MySQL database. … | |
I need to create a dynamic HTML form using PHP. I am only considering the following fields : Text, Text box, Radio, Check Box, Drop down. I am thinking of the creating the following database design. Field ID | Field Type | --- Other Attributes, such as length and others … | |
I autoload the Session library in CodeIgniter. However, sometimes there are controllers that output XML, JSON, an image, or other mime types, and I don't want these sending back cookies in the header. Is there a way to suppress this on a per-controller basis? ![]() | |
I have the following warning only when paword is wrong Warning : mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\mijn_stamboom\login\login.php on line 23 <?php include_once '../common.php'; include("config.php"); if($_SERVER["REQUEST_METHOD"] == "POST") { $myusername1=addslashes($_POST['username']); $mypassword1=addslashes($_POST['password']); $ip = $_SERVER["REMOTE_ADDR"]; $pass1 = md5($mypassword1); $sql1="SELECT * FROM stamboom_admin WHERE username='$myusername1' and password='$pass1' … | |
[admin.php](https://github.com/apps-vn/admin.php/commit/f2e3c157d42750c39e1778a58abf271f8ddb5f82) <tr> <td><?php echo MOD_DS_PRODFILE;?>: <?php echo required();?></td> <td><input name="filename" type="file" size="40" class="fileinput mask" /> <span style="margin-left:80px"><?php echo tooltip(MOD_DS_PRODFILE_T);?></span></td> </tr> <tr> <td><?php echo MOD_DS_PRODFILE;?>: <?php echo required();?></td> <td><input name="filename" type="file" size="40" class="fileinput mask" /> <span style="margin-left:80px"><?php echo tooltip(MOD_DS_PRODFILE_T);?></span></td> </tr> [admin_class.php](https://github.com/apps-vn/admin_class.php/blob/9fc485be7667cd0d559e74b3e99c71941044bbd6/.gitignore) */ public function getPaidDownload($token) { global $db, $core; $id = … | |
Array ( [TIMESTAMP] => 2012%2d05%2d01T17%3a19%3a07Z [CORRELATIONID] => 3aeb192ad6388 [ACK] => Failure [VERSION] => 51%2e0 [BUILD] => 2764190 [L_ERRORCODE0] => 10527 [L_SHORTMESSAGE0] => Invalid%20Data [L_LONGMESSAGE0] => This%20transaction%20cannot%20be%20processed%2e%20Please%20enter%20a%20valid%20credit%20card%20number%20and%20type%2e [L_SEVERITYCODE0] => Error [AMT] => 10%2e00 [CURRENCYCODE] => GBP ) Hello everyone, Can you please suggest on how to parse responses? It is the … ![]() |
The End.