Adaugare anunt

Secţiune dedicată începatorilor.

Moderatori: Moderatori, Start Moderator

dincu
Average Member
Mesaje: 123
Membru din: Sâm Ian 21, 2012 7:22 pm

Mesajde dincu » Joi Ian 26, 2012 2:30 pm

:) daca as stii si ce variabile sa pun. am gasit ceva sa modifc in css dar nu reusesc sa il aplic

youtube com/watch?v=xdu8budQsRw&feature=player_embedded#!



dincu
Average Member
Mesaje: 123
Membru din: Sâm Ian 21, 2012 7:22 pm

Mesajde dincu » Joi Ian 26, 2012 5:14 pm


dincu
Average Member
Mesaje: 123
Membru din: Sâm Ian 21, 2012 7:22 pm

Mesajde dincu » Joi Ian 26, 2012 6:17 pm

am reusit insfarsit!!! am citit un milion de metode.. am gasit o metoda prea simpla.


Re: PHP Warning: Cannot modify header information - headers already sent by (output .

try placing this at the top of your page:
<? ob_start(); ?>

then at the bottom of the page place this line of code:

<? ob_flush(); ?>

dincu
Average Member
Mesaje: 123
Membru din: Sâm Ian 21, 2012 7:22 pm

Mesajde dincu » Joi Ian 26, 2012 7:59 pm

Am codul asta:

$cerereSQL = 'SELECT * FROM `produse` WHERE `sunt` LIKE "'.addentities($_POST['sunt']).'" AND `produs` LIKE "'.addentities($_POST['produs']).'" AND `numar` LIKE "'.addentities($_POST['numar']).'" AND `pret` LIKE "'.addentities($_POST['pret']).'"';
$rezultat = mysql_query($cerereSQL);
if(mysql_num_rows($rezultat) > 0) {
while($rand = mysql_fetch_array($rezultat)) {
$sunt = $rand['sunt'];
$produs = $rand['produs'];
$numar = $rand['numar'];
$pret = $rand['pret'];
$data = $rand['data'];
$cauta .= "


Atunci cand fac cautarea trec datele intr-un form si imi face cautarea in tabelul asta si printr-un echo imi afiseaza rezultatele.

Acum vreau sa mai adaug la cautare doua casute, "judet" si "localitate" dar campurile astea se afla in alt tabel si deci trebuie sa caut in alt tabel. In tabelul "utilizatori" am o coloana "utilizator" unde e numele utilizatorului cand se inregistreaza, iar in tabelul produse am o coloana "utilizator" unde imi trece automat numele utilizatorului. Pot sa fac ca la cautarea a trei campuri din "produse" si doua din "utilizatori" sa imi afiseze toate randurile din ambele tebele care se potrivesc cautarii?

Avatar utilizator
ispas
Senior Member
Mesaje: 656
Membru din: Mar Sep 14, 2010 1:35 pm
Localitate: Craiova
Contact:

Mesajde ispas » Vin Ian 27, 2012 10:32 am


dincu
Average Member
Mesaje: 123
Membru din: Sâm Ian 21, 2012 7:22 pm

Mesajde dincu » Vin Ian 27, 2012 12:10 pm


Avatar utilizator
ispas
Senior Member
Mesaje: 656
Membru din: Mar Sep 14, 2010 1:35 pm
Localitate: Craiova
Contact:

Mesajde ispas » Vin Ian 27, 2012 12:27 pm


dincu
Average Member
Mesaje: 123
Membru din: Sâm Ian 21, 2012 7:22 pm

Mesajde dincu » Vin Ian 27, 2012 6:10 pm


Avatar utilizator
ispas
Senior Member
Mesaje: 656
Membru din: Mar Sep 14, 2010 1:35 pm
Localitate: Craiova
Contact:

Mesajde ispas » Vin Ian 27, 2012 6:53 pm


dincu
Average Member
Mesaje: 123
Membru din: Sâm Ian 21, 2012 7:22 pm

Mesajde dincu » Vin Ian 27, 2012 7:18 pm


l33t
Senior Member
Mesaje: 216
Membru din: Sâm Mai 10, 2008 7:31 pm

Mesajde l33t » Vin Ian 27, 2012 7:31 pm


dincu
Average Member
Mesaje: 123
Membru din: Sâm Ian 21, 2012 7:22 pm

Mesajde dincu » Vin Ian 27, 2012 7:43 pm


l33t
Senior Member
Mesaje: 216
Membru din: Sâm Mai 10, 2008 7:31 pm

Mesajde l33t » Vin Ian 27, 2012 9:58 pm


Avatar utilizator
ispas
Senior Member
Mesaje: 656
Membru din: Mar Sep 14, 2010 1:35 pm
Localitate: Craiova
Contact:

Mesajde ispas » Vin Ian 27, 2012 11:11 pm


dincu
Average Member
Mesaje: 123
Membru din: Sâm Ian 21, 2012 7:22 pm

Mesajde dincu » Sâm Ian 28, 2012 12:42 am



Înapoi la “PHP Incepători”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 11 vizitatori