![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
fugix
-
Posts
1,483 -
Joined
-
Last visited
Posts posted by fugix
-
-
from the information that you gave me, that code should work..debug your query, insert
mysql_query(" UPDATE studenti SET $kol = '$k1D' WHERE ID = {$_SESSION['ID']}") or die(mysql_error());
-
either that is not an actual input box or they are setting some sort of onchange event to display window.form.value=the names out of the db inside of a span or div
-
can you give me an example of what you are trying to do, i dont fully follow
-
replace user_id with whatever the name of the column that holds the id's is
-
how many fields total are in the table that you are trying to insert into
-
mysql_fetch_array() is already placing your column values into an array, to draw a val out all you need to do is echo $row['column_name']
-
jQuery is worth using simply for its AJAX API.
Agreed, simple and effective Ajax API
-
i did some research on this topic because i was curious about it myself, i believe that the same rule applies for most special characters with obdc queries. doubling up the special char to escape it
-
use the <hr> tag, stands for horizontal line
-
Thank you fugix and web-developer for the nice comments.
I do simple designs at dkntemplates.com but my expertise is on converting designs to html/css, Joomla template and wordpress themes.
I've tried using joomla before, skill in its own..heh
-
try setting the overall width of the div to 100%
-
can you show your full looping code please
-
$(document).ready(function() { if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { $("#news_feed).html(xmlhttp.responseText); } } xmlhttp.open("GET", "../news_feed.php, true); xmlhttp.send(); });
This will display the news feed automatically when the page gets loaded, and input what's returned in the div container "news_feed". Pretty self-explanatory, but if you want to use this function to load the data on triggered events, give the function a name and write it into your html.
BTW, this uses jQuery, so I'd recommend downloading it before trying to use this code. Hope this helps!
only problem with this is, the page will need to be loaded before the news feed loads. Could cause slow loading time if there is a lot of content on the page.
I'll just go the php route to start. thanks
no problem.
-
make these changes according.
if(mysql_num_rows($queryN) == 1) { $resultID = mysql_fetch_assoc($queryN); $resultID['user_id'] = $_SESSION['user_id']; //change your $ID to $resultID $_SESSION['user'] = $_POST['user']; header("location:indexn.php"); }
-
$(document).ready(function() { if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { $("#news_feed).html(xmlhttp.responseText); } } xmlhttp.open("GET", "../news_feed.php, true); xmlhttp.send(); });
This will display the news feed automatically when the page gets loaded, and input what's returned in the div container "news_feed". Pretty self-explanatory, but if you want to use this function to load the data on triggered events, give the function a name and write it into your html.
BTW, this uses jQuery, so I'd recommend downloading it before trying to use this code. Hope this helps!
only problem with this is, the page will need to be loaded before the news feed loads. Could cause slow loading time if there is a lot of content on the page.
-
background is nice, peaceful. I believe that the font at the top could be a bit smaller, as it is right now its a bit overwhelming. I like the hover effects. hover effects for the link at the bottom are hardly noticeable, would make them stand out more when hovered over, possibly underlined. Overall I would say that its clean, i like it
-
glad we could help, please mark this as solved, lower left hand of page
-
if you are talking about simply load the feed and what language to use to do so, php will give you a quicker response since it is a server side language
-
not sure what your logic behind doing that is, how would you grab the correct data for the user?
-
welcome, good to have some linux experience on board. I'm sure we can teach you many things about php, just let us know what your questions are
-
just saying
-
But, this is an odbc query? Can I still generate a MySQL connection, store mysql_real_escape_string() into a variable, and then use that value with my odbc query?
i must have posted that without thinking, you cant call that function without a valid link established. maybe you can try using htmlentities() to insert data, and html_entity_decode()to draw them out of your db
-
escape the special chars using mysql_real_escape_string()
-
since your question is vague and basic. i will simply point you in the direction of how to create a file using file_put_contents() and delete a file using unlink()
Add Spans to an Input?
in PHP Coding Help
Posted
heh...yeah, shouldn't be too difficult, but im expecting to see you post another thread about it.![;D](https://forums.phpfreaks.com/uploads/emoticons/default_wink-01.gif)