39,402 Topics
![]() | |
I am using php to list out categories for a particular item while making blog.But i am listing out all the categories which are present in database in the list.I created a category table in my database.my code is listed as follows: [CODE] <?php include 'connection.php'; $list ="select name from … ![]() | |
Hi There! Can you please help me with this. On the first page of my page I created a Textbox named="Student", on the second page I just $_POST its name and the value goes through the textbox and now I wanted to show it Again on the Third box, I … | |
I had a category named movies,gadget.I want to display subcategories of each category in php.movies contain subcategories like new release,upcoming movies,songs and gadget contains subcategories like pc,mobiles.I want to display each category and its subcategories on the same page while clicking on category title.I created databases for each categories.Any help … | |
Hi, I am new to php, and I need to do multiply image upload. Right now I have single image upload which is not working.., so any adive would be appreciated. Here is part of form I use for image upload: [CODE] <i>Vyber obrázek:</i> <input type="file" name="imagefile" /> <br /><br … | |
Note: I'm very new to everything so please bare with me. Say I have a form on a website which asks for your first name, last name, and email address. Upon clicking submit, I want the data to be transferred and saved to a Microsoft Access Database. How do you … | |
I a form page in an iFrame that when a user submits it brings up a thank you page. But when the thank you page loads, because the initial form page is long users don't get to see the thank you message on the thank you page. So what I … ![]() | |
hi, another question here. i'm a beginner at php and i need a php script to automatically retrieve data from a database and fill in a form. all the data is in the database and I already have a script to search and return the results. I just don't know … | |
I'm Beginner. I need help, please. I am having a small problem in the script I am have in this script ( admin folder) Add contain articles (This page is working to add threads only) My problem in the Page (read_mor.php) i make a query with the database to bring … | |
hey, please help me sort this data out. Array ( [0] => Successful response for: set username [1] => Successful response for: set password [2] => Successful response for: set server [3] => Successful response for: services [4] => State Notification acquiring-network [5] => Successful response for: sign-in [6] => … | |
Hello, folks. I do have another issue here, haha. My Cancel script is not working, is not returning the tickets back to the database after I cancel them. I got completely wrong here, some help would be really appreciated. [CODE] <?php session_start(); $tickets = ['tickets']; //$tickets = $_SESSION['tickets']; //$id = … | |
Hello everybody - and thanks for fast reply. Well, I have the following need: Once a month I receive a text file with the following content (per line/line content with fixed lenght but different values): 00000035412012013100000000000000000120120131000000000 00000000000000000000000000+0000000002012010000000000200000000000171753-00000000000000000+00000000000000000+00000000000171753-000000000000000000000000000000000000000000+00000000000000000+00000000000000000+00000000000000000+00000000000000000000000LOHN/01 LG 000000000000000000000000000000000000000000000000000+000000000000000000000000000000+000000000000000000000000 0000000000000000000000 0* This is only one line with 480 digits. I … | |
hey there, as part of my application, I build an array of arrays. So, what I have is this: [CODE] $mainArray = array(); $mainArray = $somearray;//as built with results from a query $mainArray = $someOtherArray;//built same as above //I want to iterate: foreach($mainArray as $array) { foreach($array as $dataArray) { … | |
I need to pass close to 100 variables between pages and I'm not sure of the best way to do it. Any suggestions? | |
Hello, folks. I am facing a really annoying problem here. Well, basically I want my page to check if the user is an admin or not. Whenever I log in and try to access that page i am recieving the error message "You are not admin, leave" [CODE] <?php session_start(); … | |
I am new to Ajax and have only been learning jQuery on and off for a few months so I apologise if this should be simple. I have followed a tutorial to get shopping cart functionality working using PHP, jQuery and Ajax and it is nearly there but I have … | |
Hi, I am building a room availability form that contains a foreign key 'roomNumber' that references the multiple dropdown list that contains the data time starting from 07:00 AM to 09:00 PM from monday to saturday, i can already store the data into the database but my problem now is … | |
<?php ob_start(); ?> <?php include("connection.php"); //this makes the time in the past to destroy the cookie $aa=$_COOKIE['md']; $bb=$_COOKIE['li']; $h1=$_COOKIE['h']; $m1=$_COOKIE['m']; date_default_timezone_set('GMT'); if (date_default_timezone_get()) { 'date_default_timezone_set: ' . date_default_timezone_get() . '<br />'; date("l, F d, Y h:i" ,time()) .'<br />'; $date_str = date("l, F d, Y h:i" ,time()); //ex:from database $date … | |
[code=php] <div id="user-bar"> <div id="user-options"> <div class="notification-container"> <img src="media/gear-faded.png"> </div> <div class="notification-container"> <img src="media/courses-faded.png"> </div> <div class="notification-container"> <img src="media/chat-faded.png"> </div> </div> <span class="profile-container"> <img src="https://openlearning-cdn.s3.amazonaws.com/feblioz-avatar-24-ts1330811171.jpg" alt="" border="0" class="profile-image" align="absmiddle" width="24" height="24" id="myAvatar24"> <span>feblioz</span> </span> </div> [/code] do you know how to make all the images to be in a line? | |
[COLOR="red"][COLOR="red"]can anyone pls help me im still an IT student, and we have this case study Pizza Delivery system which the user can choose and check all the text box of the pizza size [/COLOR][/COLOR] [CODE]<INPUT TYPE=checkbox NAME="pica10" VALUE="S">10" Php300 <INPUT TYPE=checkbox NAME="pica14" VALUE="M">14" Php450 <INPUT TYPE=checkbox NAME="pica18" VALUE="L">18" Php650 … | |
Hello. I'm in the middle of updating a site for work and I'm stuck at the moment, so I was wondering could anyone help me out if possible. I'm new to PHP and HTML, been using them for nearly 2 weeks. What I'm doing is that there is 5 forms … | |
I am trying to add pricing to an existing website database, but when I enter a price for an item, it removes it on its own. Please assist me in finding the error? All the files and coding is that of a previous developer.. This is the only file with … | |
How can i Transfer my textbox value to the next page? $POST tag creates an error. | |
Hello, i have a problem with my query. any body give suggestion please. i have two tables named as "users" and "userimages" in the users table there are 1)userid (primary key) 2)name 3)subscription package (Brong or gold) and in the next table "userimages" fields are 1)auto_id 2)userid (foreign key) 3)image … | |
Please help me i having this problem, Current is my code: error at line "if(mysql_num_rows($result)!=0)" function getNewID($init,$field,$table) { $num = rand(1,100000000); $act_id = $init.$num; $query = "SELECT $field FROM $table WHERE $field = '$act_id'"; $result = mysql_db_query("ssimage_db", $query); if(mysql_num_rows($result)!=0) { $exist = true; } else{ $exist = false; } while($exist) … | |
Hello there. I was wondering if anyone here could help me out of this problem :)? So how do you retrieve a cookie? I have try this : ----------------- (Cookie value = Computer and name user ) This is my what is inside my php $myhyperlink=www.google.com/ $linktosite=$myhyperlink 'search='.$_COOKIE["user"]; header('location:'.$linktosite); ------------------------ … | |
i have a dynamic table whose values came from the database. the user will select records from the table then save the result to another table. i have the following code: <?php echo "<form method='post' action='save_result.php'>"; $subjects="table1"; $connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath("data.mdb").";"; $conn=odbc_connect($connstr,'','') or die("connect error: … | |
I'd like to get a list of folders that don't contain certain files. I'm using this to list directories & files: [code=php]$path = "media"; $dir_handle = @opendir($path) or die("Unable to open $path"); function list_dir($dir_handle,$path) { while (false !== ($file = readdir($dir_handle))) { $exclude = array(".","..","_player_thumbs","Thumbs.db"); $dir =$path.'/'.$file; if(is_dir($dir) && !in_array($file, … | |
Hey fellows, I have three database tables AUCTIONS auction_id name description place date BIDDERS bidder_id firstname lastname email signupdate BIDS bid_id auction_id bidder_id biddate I want to create a drop down menu to select and display BIDDERS signed up for each AUCTIONS. I have coded the following in PHP to … | |
can anybody help me how I can use four tables at the same time with different conditions to fetch records from my database? this is my sql code that im trying to modify because this is only for two tables: [CODE] <?php session_start(); if (isset($_SESSION['username'])) { include("database.php"); $username = $_SESSION['username']; … | |
I can't figure out while the table rows and columns are not display as intended. I have tried everything I could but no solution yet. I'm new to PHP/Mysql. What I actually wanted to see as the output is something like this: [ICODE][B]$days_of_week_rows['week_day'][/B] $period_rows['period'] $class_rows['class'] $time_rows['time'] $period_rows['period'] $class_rows['class'] $time_rows['time'] $period_rows['period'] … | |
Hello all, I'm want to do a PHP redirect within a <DIV>. Currently I have written the folowing code, that allows a database entry to be selected and be deleted. [CODE]<?php //This is from a file named delete.php $sql="SELECT * FROM $tbl_name"; $result=mysql_query($sql); if(isset($_POST['delete'])) { foreach($_POST['checkbox'] as $id){ mysql_query("DELETE from … | |
Let me say here at the start I am not a programmer, just interested.. I am trying to load a file to youtube on the first day of the month and set the file name as the lastmonth-thisyear.avi like March-2012.avi I have tried this but get an error: File to … ![]() | |
See am doing an android application,it has a web back end,am using wordpress,but how can i code web services in wordpress?suppose i need to fetch some contents from database and pass it as json to android phones.So where should i place the php script or how can i do this?Is … | |
Hi I have a PHP error that only occurs when I have a new router attached. I will post the complete code here but it works fine on one router but not another. I have put the problem on a forum for Hardware people but have had no replies. To … | |
lastlogin is getting saved as time() in my mysql table and it is varchar mode. querying the database to send out emails to remind my users that they have not logged in from past 30 days SELECT * FROM members WHERE lastlogin = DATE_SUB(CURDATE(), INTERVAL 30 DAY) i tried with … | |
This is something I can't find any data on. I've got two database. Database one has a list in it. Database 2 has a list in it as well. I am needing to delete all the entries from database 1 that database 2 also contains. So if database one had … | |
im having problem with this 2 pages of code i have.the only problem is when im going to display it in another page called view.php added.php [CODE] <?php $type = $_POST['type']; $size = $_POST['size']; $quantity = $_POST['quantity']; $prize = $_POST['prize']; $file = $_FILES['image']['tmp_name']; if (isset($_POST['submit'])) { include('sql.php'); if (!isset($file)){ echo … | |
Is this possible to pass the php variable to the url? my code is: [CODE] <?php $array1 = array("iphone", "ipad","iMac"); for($test = 0; $test <= 2; $test++) { echo '<a href="https://www.google.com?$array1[$test]">Click me</a><br />'; } ?> [/CODE] How do i do that when i click on the link it will show … | |
Hi!!! i'm final year student in computer science and have chosen virtual classroom systems to be done as a project for my final year.. i would like to know the enhancements and the new features that could be added to the project so that i could try to add them … | |
Heyy guys, need some help here...the thing i'm suppose to do is, update a value for a single row, but currently its updating the value for all the row... [CODE] <?php session_start(); $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="testing3"; // … | |
Does anyone know how to use youtube's api? I downloaded it from [URL="http://code.google.com/apis/gdata/articles/php_client_lib.html#php-path-installation"]here[/URL] But i cant figure out how to use a form to send a link to it and get back the name, keywords, html, description and thumbnail link..... Does anyone know how to get this info from youtube … | |
Can i get a simple php code for knowing the usage of model view controller(MVC) in php.It should also highlight comments also..Any help would be appreciated | |
hello, I have a problem with my code please help me,I am using sand box form { <form action="<?php echo $paypal_url; ?>" method="post" name="frmPayPal1"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value=""> <input type="hidden" name="lc" value="GB"> <input type="hidden" name="quantity" value="1" /> <input type="hidden" name="item_name" value=""> <input type="hidden" name="item_number" value=""> <input … | |
hi all, i have an array like this one [CODE]Array ( Array ( [0] => Array ( [id] => 12 [name] => praveen ) [1] => Array ( [id] => 14 [name] => pandu ) [2] => Array ( [id] => 16 [name] => phani ) [/CODE] and i have … ![]() | |
Hi, I'm using joomla.. I need to generate user name with ID. like: (different names for male-female, standart-member,gold-member,platinium-member) John567,John568,John569.... Jane345,Jane346,Jane347.... SilverJohn567,GoldJohn568, ![]() | |
Hi, I am building a web form which contains several groups of checkboxes with many items in each. I want to store these values in a database so they can be retrieved and updated when needed. What would be the best way to store the information from a checkbox group … | |
Greetings ;) Well i need some help here. I got a site and people click on link on my site Example! the link is www .mysite.com/redirect.php/url=www.google.com/search.php?word=computer&pages=195&country=us&ip=127.0.0.1 So when somebody click on it they will beredirect to my redirect.php file for a check at link. ----------------------------- <?php $url = $_GET['url']; $myPostbackUrl=$url; … ![]() | |
Hello, is there any way to show what the size of the records is? I mean, i have a database that almost 500Mb and I want to see what records are causing it. | |
Hi, I think by now I have the right syntax for joining 3 tables, but please correct me if it is wrong. The tables I am joining a as follows: PRODUKTER (GENERAL PRODUCT INFORMATION) VARE_TYPE (SHIRTS, JEANS ETC) SIZES (PRODUCT SIZES) What I want to do is to let the … | |
Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in C:\xampp\htdocs\xampp\display.php on line 5 Connection Failed: php is working fine, ran other simple php scripts... but this is the error when i connect to a ms … |
The End.