39,326 Topics

Member Avatar for
Member Avatar for AMADH

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 …

Member Avatar for pixelsoul
0
822
Member Avatar for scorpio222

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 …

Member Avatar for smantscheff
0
92
Member Avatar for printman55

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 …

Member Avatar for smantscheff
0
67
Member Avatar for designalex

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 …

Member Avatar for smantscheff
0
85
Member Avatar for facarroll

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 …

Member Avatar for facarroll
0
135
Member Avatar for Masks.be

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 = …

Member Avatar for Masks.be
0
79
Member Avatar for elson.james

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! :)

Member Avatar for elson.james
0
881
Member Avatar for Thunder--

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')) { …

Member Avatar for erry
0
75
Member Avatar for Sanit

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 …

Member Avatar for leo_gatmaytan
0
2K
Member Avatar for JBLDW

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 …

Member Avatar for JBLDW
1
109
Member Avatar for ridzii

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?

Member Avatar for ballchain
0
50
Member Avatar for lit108

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 …

Member Avatar for lit108
0
125
Member Avatar for Suzie999

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 …

Member Avatar for Suzie999
0
220
Member Avatar for ksquared

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() { …

Member Avatar for ksquared
0
101
Member Avatar for teambuilding

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?

Member Avatar for joban.ali
0
139
Member Avatar for UzuNarU

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' …

Member Avatar for UzuNarU
0
154
Member Avatar for Igorcats

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. …

Member Avatar for Igorcats
0
93
Member Avatar for tcollins412
Member Avatar for tcollins412
0
68
Member Avatar for y2kshane

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);\" > ";

Member Avatar for UzuNarU
0
183
Member Avatar for panhwer

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 .

Member Avatar for diafol
0
91
Member Avatar for Acute

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 …

Member Avatar for pritaeas
0
98
Member Avatar for samsambm

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 …

Member Avatar for diafol
0
122
Member Avatar for OpenBSD

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 …

Member Avatar for OpenBSD
0
133
Member Avatar for holmiboii

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) …

Member Avatar for holmiboii
0
234
Member Avatar for newbiecoder

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"> …

Member Avatar for newbiecoder
0
202
Member Avatar for shobhit25

hey Guys,:) i m new to web development...n want to learn Drupal:-O :confused: ...so any one can help me:'( .. Thanx in advance:)

Member Avatar for HemantPHP
0
74
Member Avatar for arctushar

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

Member Avatar for HemantPHP
0
103
Member Avatar for six_sic6

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); …

Member Avatar for pritaeas
0
2K
Member Avatar for Imratzio

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']] = …

Member Avatar for Imratzio
0
245
Member Avatar for dragostone

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

Member Avatar for blocblue
0
59

The End.