39,320 Topics
| |
hey, i'm trying to insert data into my database with PHP5 i've created this code, <? //open the connection $conn = mysql_connect("localhost", "user", "pass"); //pick the database to use mysql_select_db("musiclist", $conn) //create SQL statement $sql = "INSERT INTO musiclist (artist, title)"; $sql.= "VALUES ("; $sql.= "'John Denver', 'Thank God I'm … | |
Good day to all members! Please help me :cry: Anybody could help me or could give me a php code. What I need is I want to put link on each data that I had retrieved through array from mySQL database so that when I'm going to click each of … | |
hello! I an a newbie in php. i am transfering value from one of my page to another(Mailign page) thru query string and the values gets dislayed in an input control. Then the user enters other required values on this mailing page and then clicks submit which sends a mail. … | |
I am a beginner for php. I just wrote three php pages to generate some information from a mySQL database. The first page set up criteria (such as state and industry for some company information) and a form for people to search from the mySQL database. The second page is … | |
I know this isn't strictly PHP...but it does deal with the integration of RSS with a PHP forum, so I thought this forum was the best fit... I am using the original (re: free) release of IPB 2.0.0 for my college newspaper (we're very broke, or else we'd pay for … | |
Good day to everyone! :D Anybody could give step by step PHP code or explanation with examples of how to get the information to other page. For example my main page is index.php inside of it I have three links to the following PHP files: roland.php, haydee.php and ricky.php. Now, … | |
I have got this code, which am trying to display it in white writing. I could get the first part in white but couldn't get the variable ($HTTP_SESSION_VARS['items'] to come up in white. echo '<font color="#ffffff"><b>Total Items = </b></font>'.$HTTP_SESSION_VARS['items']; I have also tried the code below but got an error … | |
[b]Configuring PHP with MySQL[/b] [B]Intro[/B] To use PHP with MySQL, of course you need to install MySQL server on you system first. On my local system, I have MySQL server installed in \mysql directory. If you need help on installing MySQL on your system, please read "Herong's Notes on SQL". … | |
Am not too sure what this code does can someone help me please? I know it starts a session but what all that xtra validation? // start the session session_start(); if (!get_magic_quotes_gpc()) { if (isset($_POST)) { foreach ($_POST as $key => $value) { $_POST[$key] = trim(addslashes($value)); } } | |
I currently run a fully modified phpBB forum and I like it. I do have lots of errors though and its starting to annoy me. Im thinking of switching to vBulletin but I need to know some stuff first. How easy to install is it? Is it as easy or … | |
hi i ahve developed one artcicle submit site. in taht i have done list of authors and the number of article submitted by them. but in the first page taht is fine but in second page onwards the number of article shows 0. i cna show the website http://articlenetworks.com/authors.php this … | |
hi i ahve a mysql databse in which list of name is stored. i wnate to retrive the data form that databse. i have problem in retriving it. if i have name jack 3 times in my databse, but when i wnat to show the names i get jack jack … | |
I see that the vBulletin has the possibility of Sub-Categories.. By question is: [b]Does phpBB have this option, or not?[/b] And if not, WHY!? | |
[COLOR=Navy]Hello, Ps can anyone enlighten me on how to learn PHP. I mean I am a novice and would like to know if it requires a compiler etc like C++,C ..to compile codes. In essence what are the things needed to learn PHP...and how can I really develop myself well … | |
Good day to everyone! Anybody could give step by step PHP code or explanation with examples of how to get the information to other page. For example my main page is [U]index.php[/U] inside of it I have three links to the following PHP files: roland.php, haydee.php and ricky.php. Now, if … | |
Hey there, im not very great at php and im wondering how i could fix this error [CODE]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home2/blindst/public_html/forumbeta/vtopic.php on line 328 No replys to this topic.[/CODE] This is line 328 [CODE]$sql2=("SELECT * FROM `reply` WHERE tid = '$id' … | |
I'm trying to add an RSS feed to my videogame website, but it isn't working. These are the steps I have done so far: A) I have copy and pasted the RSS reader to a blank notepad file, and named it rssfeed.php. This is that code: <?php $olderror_reporting =error_reporting(0); include … | |
i ahve a summary for example hsssssssssssssssssssssssssssssssssssssssssssssssssssss hsssssssssssssssssssssssssssssssssssssssssssssssssss sbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb i wante to break these summary and dispaly only first line. hsssssssssssssssssssssssssssssssssssssssssssssssssssss which function i have to use? any body please help me | |
Hello Everybody, Can anyone help me? I want to download the phptriad.exe 2.2 I have I want php 5 with php triad please let me know and give me the url if anyone knows this... thanks in advance... Milind | |
<form action="php.php?b=<?php echo $b; ?>" method="post"> Enter your news/rumor: <input type="text" name="name" /> Enter your news/rumor: <input type="text" name="website" /> Enter your news/rumor: <input type="text" name="comment" /> <input type="submit" /> </form><br /> then on php.php: $t=$_GET["b"]; mysql_connect("db.lepslair.com", "username", "my password"); mysql_select_db("lepslair"); mysql_query("INSERT INTO nonmembers($name, $website, $comment)) VALUES(name, website, post_text) "); … | |
In some of the site i have seen rss feeds for example ezinearticles.com. i can see rss feeds. please any body tell what is the use of that? thanks | |
i ahve site in which people can submit the article for free. but now i am trying to add feature in that article distribution. if person pay me $50 i can distribute his article to many sites. so i need the site such taht he can pay through credit card … | |
Hi PHPers, Firstly, a [COLOR=Red]Very Happy New Year To ALL!![/COLOR] Hope everybody enjoyed this festive season :cheesy: Back to work, sigh... I am encountering this problem, below is a code which i have written, but the page only displayed the result of my code which is line 27. But when … | |
Hello to all,and happy new year. I have simplemachines forum 1.1 rc1 installed on my site. I was just in the admin section doing really nothing and all of a sudden without really doing anything I got this when I clicked on something. It was not a delete buttom or … | |
i wrote this basic codes to check against gd library existence: [PHP]$image = @imagecreate(480, 250) or die ("Cannot Initialize new GD image stream"); $background_color = imagecolorallocate ($im, 0, 0, 0); $text_color = imagecolorallocate ($im, 255, 0, 0); imagestring ($im, 255,255,0, "A Simple Text String", $text_color); header ("Content-type: image/gif"); imagegif($im);[/PHP] result: … | |
I have a website that lists customer's jobs that have shipped. When they click on the carrier's name it links to the carrier's website, but it uses the current window. Can I force the link to come up in a new window so my customer can see both my site … | |
For some reason i cant get the mssql function to be inabled. When i go to view the phpinfo.php that i made to view the extension that are enabled it gives me an error saying that it cant load the extension. So i try to enable the pdf.dll in php.in … | |
I belong to a forum on forumer.com. Recently, we had a member sign up (it's a support group for parents of premature babies) using STOLEN pictures from other members' websites and this new member was trying to pass these babies off as her own. Although it is NOT against forumers … | |
Ok so I am trying to create some BB code from scratch, and my big problem is the \S and \s and .* are very greedy. For example, when I try to use bb code on something like this: [php]$text = "[b]abcdefg[/b] !@#$%^&* [b]0123456789[/b]"; $text = preg_replace("/\[b\](.*)\[\/b\]/","<b>\\1</b>",$text); //same thing: //$text … | |
I know how to create standard php files, but how would I add the ?blabla to the end of the url. IE my forum url looks like this /index.php?act=home How would I make it look like that? Thanks |
The End.