39,326 Topics
| |
Hello, I was wondering if someone could help me. I am new to mysql/php and I was wondering if there is a way that I can have php create pages for me. What I want is that I no longer need to create new page, so I will have a … | |
I have a database, that has a type_code in it. There are 3 types of products and certain numbers and costs associated with each type. The type codes are not present in sequential order in the database. they are random and i have a csv file with only 2 columns … | |
I am a web designer and specialize more in front end design and graphic work. I need help developing the code for a interface for a client to upload text and PDF file descriptions to a MySQL database. The interface would also facilitate PDF file uploads to a directory plus … | |
Hi all, i am very new to php, this is my first post and the first project that i am working on. i have searched for my problem but i cant find a solution, i suppose i dont even know what im looking for so here goes! i have a … | |
I have the following code which displays something like this; William Science Monday William Math Tuesday William English Thursday but I want it to display without repeating the name William in the lines after the first line. [CODE] <?php $query = mysql_query("SELECT userId, quizTitle, addDate FROM quiz WHERE managerId='".$userid."' AND … | |
Hi webdevelopers, I am trying to INSERT INTO a table, a RETRIEVED gender SELECT FROM another table, but it misses a piece of code, to function: [CODE]$page_title = 'Register'; include ('./header2.html'); // Connect to the database. require_once ('./Script14.1_mysql_connect.php'); if (isset($_POST['submitted'])) { if (!empty($_POST['types']) && ($_POST['types_id']) > 1) { $g = … | |
Hi everyone! I am new in PHP. Is there a way to store a value from a combo box to an array? Can you show me an example. Thanks! :) | |
I am getting this error on other pages that lead to this one, but i can't find out what I'm doing wrong... can anyone help? The error reads: Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in ...on line 9. Can anyone help me? [CODE]<? if(!defined('TBL_ACTIVE_USERS')) { … | |
Hey guys, I'm trying to echo a link that has an onclick attribute attached to it, but when I click on the link on the page, just goes to the desired page, and doesn't preform the onclick action. Here's my code: [code=php]<?php if(session_is_registered("sesvar")){ echo ("<a href='../../admin/comment-delete.php?id=$id2' onclick='return(confirm('Are you SURE you … | |
How would I go about altering every table in a MySQL database? I have read several posts on this subject, regarding altering a table for foreign character sets and the like, or altering specific tables, but can find nothing for what I am trying to do, which is to use … | |
can we see the php codes of any website present online? for css there is a web developer tool in mozilla which shows the css codes is anything like that possible? | |
I have a script that is parsing rss feeds and the xml to a webpage, this is part of a blog aggregator system. However there are areas throughout the web system where I would like to only display a set number of posts, 10 for example I have tried a … | |
Hi, I'm an absolute noob to php, I know a little, enough to get me by so far by learning from snippets and suchlike. Before I dive into a new area (sessions) I'd like to know if what I am intending is possible or silly. [U]What I have[/U] I dont … | |
Is there some way I can loop through this code? using Ajax? Thanks for any recommendations. [CODE] <?php $paintingBack=$paintingNumber-1; $paintingNext=$paintingNumber+1; if ($paintingBack < 1) { $paintingBack = $paintingBack + 1;} ?> <a href="" id="link1" class='link'><img src='images/braceL.gif' alt='brace' width='20' height='11' valign='text-bottom'/></a> <script type="text/javascript"> var l = document.getElementById("link1"); l.onFocus = function() { … | |
guys, I am adding [CODE]<?php static_footer_pages(); ?>[/CODE] to Footer of Wordpress to display their built in policies (WP plugin(, instead it shows me all the pages somewhere on the side of the page. Can anybody help? | |
Hey everybody. So I am just trying to write a script to delete a row in a MySQL database. Unfortunately I seem to have something wrong...even though I don't get any errors. Here is a snippet of the code on the page to send the request: [CODE] echo "<tr><td width='138px' … | |
I have this piece of code: <img src="<?php echo img('Background9.jpg'); ?>" /> I would like the image (Background9.jpg) to be linked to this page: [url]www.example.html[/url] I have looked through a lot of posts and solutions here, but try as I might I cannot figure out exactly how to accomplish that. … | |
i want to send Variable to a php function when a link clicked how to do that??? so far i got to here but it doesn't work. :( plz help mee echo " <A href=\"Carscript.php\" onMouseOver=\"SwapOut('$name')\" onMouseOut=\"SwapBack('$name')\" onclick=\"func($name);\" > "; | |
Hi.. I want to make following series.. I try a lot but i am having confusion in loops. so please help me. 1 212 32123 4321234 So any one have idea about this . | |
When we send ajax request to some php file via post, we get the variables in php file from $_POST['varName'], and then send response as a text or html or JSON or whatever with echo or print. So, what if a lot of such ajax requests come simultaneously? what server … | |
Hello. I have a Javascript that generates 2 conditional select tags. If condition in 1st is being selected , the 2nd select shows different options. Here is an example : case "events" : document.formname.subcategory.options[0]=new Option("להקות והרכבים",""); document.formname.subcategory.options[1]=new Option("רביעיות כלי מיתר",""); document.formname.subcategory.options[2]=new Option("מעגלי מתופפים",""); document.formname.subcategory.options[3]=new Option("תקליטנים",""); document.formname.subcategory.options[4]=new Option("רקדנים ומופעי בידור",""); document.formname.subcategory.options[5]=new … | |
Hi, I have any dropdown box(combobox) for retrieve data ! this dropdown box list user for each user id. now when i filter result my code not work! my database is : member : id | name | age | datanum products : id | uid | name | cat … | |
Hallo daniweb!, Im new here *hehe* anyway I've been working on our companys website for a while now but I just cant get it to work... the error is @ the 26:th line. btw we're using: Cirtex hosting the defination "myusername" and "mypassword" is in the prev. .php file (main_login.php) … | |
Hello everyone, I got an error from the code which I am copy-pasting from a textbook. Could you please tell me what I am doing wrong? Here are the codes: login.php: [CODE]<?php session_unset(); ?> <html> <head> <title>Please Log In</title> </head> <body> <form method"post" action="http://localhost/movie1.php"> <p>Enter your username: <input type="text" name="user"> … | |
hey Guys,:) i m new to web development...n want to learn Drupal:-O :confused: ...so any one can help me:'( .. Thanx in advance:) | |
Hello I m a civil Engineer. I have little bit knowledge on php. I want to make a web application. Which will be easier. Drupal module creating or indivisual php application. Please Suggest me | |
Hi, I can pass an array through jquery ajax. [CODE] var regSubCodeArray = new Array(); var temp = 9; var i; for(i=0;i<temp;i++) { subname = 'sub'+i; subcode = 'sub_code'+i; subcredit = 'sub_credit'+i; regSubCodeArray[i] = document.getElementById(subcode).innerText; } $.ajax({ url: "testArray.php", type: "GET", data: "page="+regSubCodeArray, cache: false, success: function (html) { $('#ttl').html(html); … | |
Hi all. Im building a shopping cart using an online tutorial in youtube, but i have an error [CODE]<?php if(isset($_GET['action']) && $_GET['action'] == "add"){ $id = intval($_GET['id']); if(isset($_SESSION['cart'][$id])){ $_SESSION['cart'][$id]['quantity']++; } else{ $sql2 = "SELECT * FROM products WHERE id_products=$id"; $query2 = mysql_query($sql2); if(mysql_num_rows($query2) != 0){ $row2 = mysql_fetch_array($query2); $_SESSION['cart'][$row2['id_products']] = … | |
Hello i have a contact form which sends the message as an entire line i have the following code to combat this problem but not working [CODE]$messageBody = $_POST["messageBody"]; $messageBody = str_replace("\r\n", "\n", $messageBody); $messageBody = str_replace("\n", "\r\n", $messageBody);[/CODE] anyone have any ideas? thanks |
The End.