39,320 Topics
| |
I'm working on a website project. I formerly designed and coded it on the mac. Everything was displaying and fucntioning correctly. When i tried loading my project through the pc, the pictures and headers are not showing up anymore. Plus the php codes are displaying on the page. | |
On index.php, change the functionality of your update button's click event so that: 1. when the user clicks on update button it "changes comment text to a textbox with the same value". This requires you to write a javascript to first hide your <div id="comment_1">the first comment</div> and then dynamically … | |
ok so here is my code: <html> <body> <?php $con = mysql_connect("localhost","username","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_DB", $con); //Get all the data from the table $result = mysql_query("SELECT * FROM Vehicles") or die(mysql_error()); echo "<table border = '1'>"; echo "<tr><th>ID</th><th>Year</th><th>Make</th><th>Model</th> <th>Milage</th><th>Description</th></tr>"; //keeps getting the … | |
I am using a wordpress template, and being that it's written in php, which I'm not so familiar with, I want to know the following: Is there a way for me to add code to the index.html of my template? What I want to do is make a solid white … | |
hi every one i have create a table with name upload id int notnull name varchar notnull type varchar notnull size varchar notnull content varchar not null and my code is the follwing but instead of iamge it show garbage value <form method="post" enctype="multipart/form-data" action="image.php"> <table width="350" border="0" cellpadding="1" cellspacing="1" … | |
Hello, I have products table like below Table products { -product_id- -categories- 1 2,4,5,6 2 1,4,3 4 3,5 } Table categories { -category_id- -en_label(catname)- 1 cat1 2 cat2 3 cat3 4 cat4 5 cat5 6 cat6 } i want to display categorynames using sigle query productid en_label 1 cat2,cat4,cat5,cat6 2 … | |
I have some text in a mysql table, stored as text and taken from an html <textarea>. For example of some text. Hi this is Glens webpage When I display this on my web page it comes out as Hi this is Gles webpage. How do I get it to … | |
I have a working bulk mail script which is supposed to be sent to thousands of users. I have started sending the mails but needed to abort because there was something wrong with the message body. How do I resume the mail from where it left off? Assuming it was … | |
![justmywheels1](/attachments/large/1/justmywheels1.png "justmywheels1") # Please see attached image # a User will click on an img which in return will either show - -if unchecked is visible, checked image will be visible (javascript used for this) -and vice versa. I have no idea how to achieve the following - If a … | |
Hello buddies, I have question about pagination am using this code $tbl_name="items"; //your table name // How many adjacent pages should be shown on each side? $adjacents = 2; /* First get total number of rows in data table. If you have a WHERE clause in your query, make sure … | |
Hello there I have question about how to update multi row in MySQL database, I used while function but this do the job with more time and no indecator when to finish the work, is there any efficient way to update like 1000 row with one button and make indecator … | |
Hi I have variables set in the head of the page as they are used for other parts of the page. I have a problem where by I am trying to get the variable to echo out in the result. I have tried several ways but either ther eis an … | |
I am new to zend framework and can anyone suggest me how to add twitter login to my website in zend framework? Thanks in advance | |
How to show image for the drop down list? have tried a few alternative but dont work. Thanks <tr> <td class="label"><label for="kelas">Kelas:</label></td> <td class="field"> <select id="kelas" name="kelas" > <option value="Pilih kelas" selected="selected"></option> <option value="1 Tekal" >1 Tekal</option> <option value="1 Tekad" >1 Tekad</option> <option value="1 Tekun" >1 Tekun</option> <option value="1 Tabah" … | |
Good Morning Ladies and Gents, I am having the following issue. I have implemented a captcha widget to my downloads page since there were a log of spam files that were coming through. After hours of working on this I have finally gotten the Captcha app to work and forward … | |
hi... i want to insert data from array using mysql from php..and now i using this code : for ($i = 0; $i < count($data1); $i++) { $insert_sql = sprintf("INSERT INTO detail_paket (id_paket, menu_paket) select paket.id,'\"%s\"' from paket where paket.nama_paket='$nama_paket'",%data1[$i]); mysql_query($insert_sql); } data1 is the array.. what is the correct … | |
>Hi guys,..i've two arrray data1 and data2 then i do intersect to get same value between data1 and data2, and >use count to get total same value,..how to ARSORT count result from intersect array multidimensional? <?php $data1 = array( array( '7' => 'chelsea everton', '8' => 'everton villa', '9' => … | |
I have the following code which works just fine... $result = mysql_query("SELECT * FROM test_prefixvehiclefeatures ORDER BY Feature ASC"); $count = 0; echo "<table border='1'> <tr> <th>Select a Feature</th> </tr>"; while($row = mysql_fetch_array($result)) { $count = $count + 1; echo "<tr>"; echo "<td>" . $row['Feature'] . "</td>"; echo "<td><img src='images/unchecked.png' … | |
I have a project developed in PHP in the Windows platform and it is running well. I am now trying to run it on LINUX (Red Hat and CentOS). It isnot going beyond the index page. I have zeroed in on line where where it is getting stuck. It is … | |
Anybody can help me with this?I would like to update the status of the user in the mysql database whether its disabled/enabled by inserting 0 or 1 through the edit page. | |
Hello! On my registration form I ask for a username and I only want a letters,numbers and underscores(_) in the username. How would I go about checking that? Thanks for any help! | |
I am trying to write a program in which the user will type a word into a search bar, submit it, and the program will search the contents of an array of files for that word and echo the contents of the files that contain the word into a text … | |
I have a question of dynamic elements in php loaded through mysql. The PHP code is as follow <?php $query = "SELECT * FROM `fee_table` WHERE fee_class_id = 6 "; $result = mysql_query($query) or die(mysql_error()); // Print out the contents of the entry echo "<table width='400'>"; echo "<th width='10' scope='col'>Qty</th>"; … | |
I am trying to get my code working so that I can store the path of an uploaded picture onto a table so that I can call upon the uploaded file whenever I need it. So what happens on the web page is, a person enters information on a vehicle … | |
<?php session_start(); # start up the session $host="localhost"; // Host name $db_username="root"; // Mysql username $db_password=""; // Mysql password $db_name="shop"; // Database name $tbl_name="users"; // Table name // Connect to server and select databse. mysql_connect("$host", "$db_username", "$db_password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // username and password sent from form … | |
I am new to PHP and I'd like the following form to require all fields. I am unsure whether or not this is possible since I am so new to this language. Here is the code. Any help would be useful! <?php $name = $_POST['name']; $email = $_POST['email']; $message = … | |
I have 3 select boxes, each one returns a different field from database i.e., in database - 2010 BMW 320i, record 2 2008 Aston Martin DB9 and so on. What I do is to first get user to select a year, then submit form so I can return all vehicles … | |
Hi. I'm looking for a way to perfrom a recaptcha verification pass on an html form then, if successful, submit the detail to salesforce via their Web2Lead feature (don't have API access unfortunately). Our salesforce integrated contact form has been subject to spam, like many others it seems, therefore I … | |
| Hi All, not the usual, "how can you help me" thread, but a heads-up on a templating engine I've been using for a while called RainTPL. A few users have posted threads of late asking about templates. I thought I'd give this one a plug, especially as Federico (the author) … |
The End.